| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Let the library build cleaning in the modes folks should migrate, their code
will still get the warning using things.
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
GTM_USING_XCTEST to 1 to use it.
DELTA=486 (352 added, 0 deleted, 134 changed)
DELTA_BY_EXTENSION=h=467,m=15,mm=1,txt=3
|
|
|
| |
DELTA=12 (6 added, 0 deleted, 6 changed)
|
|
|
|
|
| |
GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton.
DELTA=447 (49 added, 296 deleted, 102 changed)
|
|
|
| |
DELTA=31 (1 added, 29 deleted, 1 changed)
|
|
|
|
| |
- Get NSImage defined.
- Add framework to linking.
|
|
|
|
|
|
|
| |
Adds [GTMTestCase imageFromResource:], as a helper method during tests.
R=thomasvl
APPROVED=thomasvl
DELTA=46 (44 added, 0 deleted, 2 changed)
|
|
|
|
|
|
| |
@impl doesn't need the superclass.
R=dmaclach
DELTA=2 (1 added, 0 deleted, 1 changed)
|
|
|
|
|
|
| |
Some more google toolbox cleanup.
TBR=thomasvl
DELTA=25 (6 added, 2 deleted, 17 changed)
|
|
|
|
|
|
| |
Clean up all of our format string issues amongst some other fun stuff.
R=thomasvl
DELTA=167 (90 added, 8 deleted, 69 changed)
|
|
|
|
|
|
|
| |
Add a CPP gate to prevent the install of the atexit hook for running
leaks.
R=dmaclach
DELTA=2 (0 added, 0 deleted, 2 changed)
|
|
|
|
|
|
| |
Skip sending -class to to self in class methods.
R=dmaclach
DELTA=3 (0 added, 0 deleted, 3 changed)
|
|
|
|
|
|
| |
But a pool around each invoke test to make sure all objects that go into
the pool are cleaned up sooner.
R=dmaclach
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move a bunch of tests over onto the GTM test base class.
Fetch some test images from the bundle the test is compiled into instead
of assuming main app.
Change the default iOS logging directory to just be the documents directory
since it should work for all iOS versions.
Add initial support for using SenTestingKit instead of our custom version
to allow the Xcode 4 UI for unittesting.
Add a target for using SenTestingKit.
Add a shell app for the TEST_HOST for SenTestingKit usage (since there are
UI tests, we need to use a real app and not the octest binary).
R=dmaclach
DELTA=517 (482 added, 9 deleted, 26 changed)
|
|
|
|
|
|
|
|
|
| |
Move the test for abstract unittest support out into a file that can be
shared with iOS.
Add the unittest to the iOS project.
Fix up the iOS unittesting support to handle abstract tests.
R=dmaclach
DELTA=156 (105 added, 20 deleted, 31 changed)
|
|
|
|
|
|
|
| |
Fix a few warning in release mode, when _GTM* expands to not use it's arguments.
R=thomasvl,sharvil
APPROVED=sharvil
DELTA=6 (6 added, 0 deleted, 0 changed)
|
|
|
|
|
|
| |
Fixed invocation of leaks by iPhone Simulator builds. Fail build jobs properly if leaks invocation failed. (http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=56)
R=dmaclach,thomasvl
APPROVED=thomasvl
|
|
|
|
|
|
|
| |
Fix up GTMSenTestCase by making special code simulator only. This fixes building on Tiger
and isolates the interesting case.
R=thomasvl
DELTA=8 (6 added, 1 deleted, 1 changed)
|
|
|
|
|
|
| |
Fix up GTMSenTestCase on iOS4 (and 3.2)
R=thomasvl
DELTA=10 (8 added, 0 deleted, 2 changed)
|
|
|
|
|
|
| |
Fix up the test case code so that it reports the correct state, and matches OCUnit.
R=thomasvl
DELTA=1 (0 added, 0 deleted, 1 changed)
|
|
|
|
|
|
|
| |
Turns on the undeclared-selector warning. This may cause builds to fail if they are using
our configs. Also cleaned up some whitespace issues.
R=thomasvl
DELTA=94 (71 added, 22 deleted, 1 changed)
|
|
|
|
|
|
|
|
| |
Makes GTMSenTestCase work better with abstract test classes in cases where
we want to tag a class as being an abstract test case even if it doesn't
have any subclasses.
R=thomasvl
DELTA=36 (0 added, 19 deleted, 17 changed)
|
|
|
|
|
|
| |
Fix up build on iPhone device.
R=jfaller,thomasvl
DELTA=1 (0 added, 0 deleted, 1 changed)
|
|
|
|
|
|
|
| |
Fix up the unit testing stack that I broke on iPhone. This makes the unittesting stuff on iPhone
much closer to the original SenTestCase design.
R=thomasvl,altse
DELTA=180 (96 added, 61 deleted, 23 changed)
|
|
|
|
|
|
|
|
|
| |
Add support for more complex unit test class hierarchies than what is
available out of the box in SenTestCase. I currently have the release notes
checked out as part of a separate change, and will update them accordingly
for this as well.
R=thomasvl,mrossetti
DELTA=80 (79 added, 0 deleted, 1 changed)
|
|
|
|
|
|
|
|
| |
Change build script so that it removes all of the gcda files for the current
config project wide, which in general is what people will want.
Added unit testing to GTMHotKeyTextField. From about 6% up to 90%.
DELTA=10 (3 added, 0 deleted, 7 changed)
R=thomasvl
|
|
|
|
|
|
|
|
|
|
| |
"correctly". Based on some excellent code by Michael Ash.
http://www.mikeash.com/?page=pyblog/key-value-observing-done-right.html
This has been added for iPhone and OS X.
- Fixed up GTMSenTestCase on iPhone so that it has a description that matches
that of OCUnit.
|
|
|
|
|
|
|
|
|
|
|
|
| |
in log validation.
- Added GTM_SUPPORT_GC for controlling the inclusion of GC related code.
- If you are using GTMUnitTestDevLog, it also tries to capture logs from
NSAssert.
- Added GTM_FOREACH_OBJECT/GTM_FOREACH_KEY that uses NSEnumerator and
objectEnumerator/keyEnumerator on 10.4, but on 10.5+/iPhone uses
FastEnumeration.
- GTMNSWorkspace+Running gives a variety of ways of determining the attributes
of running processes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
way for all GTM code to do it.
- Added GTMDebugThreadValidation to allow you to enforce the fact that your
code must run in the main thread in DEBUG builds.
- Updated some internals of the iPhone unittesting so it doesn't double print
the test descriptions, file names, or lines numbers of a test failure line.
Also includes the test names in the error output.
- Changed the xcconfigs so that know it's easier to set different settings at
the different levels and not accidentally overwrite settings set at lower
levels in the "settings collapse". Also tightened up warnings significantly.
- Changed how gtm_unitTestExposedBindingsTestValues works. If you have an
implementation of gtm_unitTestExposedBindingsTestValues in your own code
you will need to update to the new way of calling. See implementations in
GTMNSObject+BindingUnitTesting.m for details.
- Added support for grabbing the build number for a particular OS in
GTMSystemVersion and easily comparing it to known build numbers, and switched
some types from in GTMSystemVersion from "int" to SInt32 to make 64 bit work
better.
- Added support for SnowLeopard (10A96). We build cleanly with the 10.6 SDKs and
all radar checks were updated accordingly. Build All script was also updated
to build on SnowLeopard if you have the SDK available.
- Turned off building ppc64 GTM because the SnowLeopard SDK currently
doesn't have ppc64 support, so SenTestCase isn't defined. This makes it
impossible to build the ppc64 10.5 config on SnowLeopard. We have left the
setting in the xcconfig for those of you who need it, but have disabled
it in the GTM project settings.
- Turned on stack smashing protection on the debug builds for all Leopard
and above.
- Added ability to easily do leak checking by defining the GTM_ENABLE_LEAKS
environment variable. It isn't on by default because several of Apple's
frameworks leak. You can work around these false positives by using the
GTM_LEAKS_SYMBOLS_TO_IGNORE environment variable. Also if you turn on leaks
make sure to turn off zombies by defining the GTM_DISABLE_ZOMBIES variable,
otherwise every memory allocation you do will look like a leak.
|
| |
|
|
|
|
|
|
|
| |
Landing GTMHTTPServer as a simple server but mainly for use in unittesting.
_GTMCompileAssert for doing compile time assertions to GTMDefines.h
Lots of improvments for UnitTesting, Dave's gonna put up a wiki page shortly with the full details of what can be done.
|
|
- bug fixes
- code coverage support
- more complete unittests
- full support for unittesting UIs
- support for the iphone sdk (include ui unittesting)
|