| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
|
| |
Also cleanup references to SenTest (no longer supported)
Document differences between gTest and how GTMGoogleTestRunner executes tests.
|
| |
|
|
|
|
|
|
| |
XCTAssertAsserts is for testing if NSAssert or NSParameterAssert is called.
It is a no-op if NS_BLOCK_ASSERTIONS is defined.
Update project to match "Xcode" standard with regards to having assertions off in release.
|
| |
|
|
|
|
|
| |
Let the library build cleaning in the modes folks should migrate, their code
will still get the warning using things.
|
|
|
| |
It wasn't being used anywhere.
|
| |
|
|
|
| |
It should all be replaced with XCTestExpectations.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In https://crbug.com/747643, a new version of Clang produces warnings
when attempting to format NSInteger as %zd (which is normally used for
ssize_t). Acquiesce by casting NSInteger to long and formatting using
%ld.
In the process, I audited all occurrences of %zd in GTM and found that
the remainder were being used to format size_t, which ought to use %zu,
so I’ve corrected those.
I also audited the existing uses of %zu and found them all to be
correct.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Starting in the 10.6 SDK, the non-underscored and all-lowercase macro
names in <AssertMacros.h> were deprecated. In the 10.13 SDK shipping in
Xcode 9 beta 3 (but not previous betas of Xcode 9), Apple has made good
on its promise to eventually disable these names. Update GTM to use the
new underscored mixed-case names.
Provided that nobody needs to target anything older than the 10.5 SDK
anymore, this should be a safe change.
Aside from GTMCarbonEvent.m, which is used by Chrome, this change is
untested, and was made by mechanically replacing uses of the various
check, require, and verify macros found in GTM.
|
|
|
|
| |
Same as what is in UnitTesting/GTMIPhoneUnitTestMain.m.
|
| |
|
| |
|
|
|
|
| |
SENTEST as a framework doesn't exist anymore so there's no point in supporting it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove a bunch of code that Google stopped using/maintaining rather than trying
to update it it. Some would be hard to update, some actually has system provided
replacements; others are patterns that just don't seem as common now.
Prune out the code related to macOS <= 10.5, start pruning some of the really
old iOS support also.
Get the projects mostly limping again with modern Xcodes so tests can be run.
If someone ends up on this commit via history for something they still find
as useful, feel free to do a pull request to bring the snippet of code back to
life and update it for current SDKs.
|
| |
|
| |
|
|
|
|
|
|
|
| |
- Remove GTM_ENABLE_LEAKS (pretty stale at this point).
- Remove imageFromResource from GTMSenTestCase (asset catalogs, etc. have changed patterns).
- Remove XCTest macros that are now supplied by XCTest directly. Checked back to Xcode 6.4 and they are built into XCTest.
- Start removing SenTest support.
|
|
|
|
|
|
|
|
|
|
| |
Remove GTMCGPointToNSPoint, GTMNSPointToCGPoint, GTMCGRectToNSRect, GTMCGSizeToNSSize
Note that Apple's NSGeometry.h sometimes defines
NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
so there's some reason to believe the CG and NS structs can compile incompatibly.
Fix a typo in GTMSenTestCase.h
|
| |
|
|
|
|
| |
current runloop of the caller.
|
|
|
|
|
| |
- Support for GCC_WARN_STRICT_SELECTOR_MATCH
- Fix long busted XTCAssertEqualCStrings
|
|
|
|
|
|
|
|
| |
As of Xcode 7, supportedDeviceTypesByName was replaced by supportedDeviceTypesByAlias.
This is from latest chromium build.
Downstream hash is 9dd179a339c0457f8754069e0774b38f69c258a8.
The latest merge was to upstream ef05b7da00844c0d500c4a7f20d4095dab56e7fe
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(Source bassed of chromium hash 10318845b6eaca2658d96df562c34579df5a08f2)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- We now add selectors to the class because Xcode 6.1 appears to take the test
name from the selector instead of from the -[XCTest name] method.
|
|
|
|
|
| |
tests to fail. The projects that have more test targets are more vulnerable to
the issue. When the simulator fails to open, we should reset it and try again.
|
|
|
|
|
|
| |
to kill the simulator process.
DELTA=8 (7 added, 0 deleted, 1 changed)
DELTA_BY_EXTENSION=sh=8
|
|
|
|
| |
DELTA=2 (0 added, 0 deleted, 2 changed)
DELTA_BY_EXTENSION=h=2
|
|
|
|
|
|
| |
Turn off deprecated warnings when we do have to use the symbols.
DELTA=17 (16 added, 0 deleted, 1 changed)
DELTA_BY_EXTENSION=h=5,m=12
|
|
|
|
|
|
| |
This is required if the Xcode path contains "Xcode6-Beta6 2.app" for example.
DELTA=1 (0 added, 0 deleted, 1 changed)
DELTA_BY_EXTENSION=sh=1
|
|
|
|
|
| |
Adds support for Xcode 5.x and Xcode 6.
Note: Xcode 6 renamed the simulator device types, so any values being passed
will need to update.
|
|
|
|
|
|
|
|
|
| |
a) only define GTM_IPHONE_USE_SENTEST if it hasn't been defined on Mac. It's a horrible name, but
it does control us using SENTEST instead of XCTest.
b) Object is now found in the runtime on both iOS and MacOS
c) MethodCheck had a potential memory leak
DELTA=47 (18 added, 5 deleted, 24 changed)
DELTA_BY_EXTENSION=h=30,m=12
|
|
|
|
|
|
| |
Means it doens't compile when that macro is used.
DELTA=1 (0 added, 0 deleted, 1 changed)
DELTA_BY_EXTENSION=h=1
|
|
|
|
|
|
| |
asynchronous behavior.
DELTA=4 (4 added, 0 deleted, 0 changed)
DELTA_BY_EXTENSION=h=4
|
|
|
|
| |
DELTA=2 (1 added, 0 deleted, 1 changed)
DELTA_BY_EXTENSION=h=2
|
|
|
|
|
|
|
|
| |
new version of
Xcode 5 comes out with __IPHONE_8_0 declared in the iOS 7 SDK.
DELTA=2 (0 added, 0 deleted, 2 changed)
DELTA_BY_EXTENSION=h=2
|
|
|
|
| |
DELTA=42 (30 added, 0 deleted, 12 changed)
DELTA_BY_EXTENSION=h=42
|
|
|
|
|
|
| |
googlemac/opensource/google-toolbox-for-mac/
DELTA=1 (0 added, 0 deleted, 1 changed)
DELTA_BY_EXTENSION=m=1
|