| Commit message (Collapse) | Author | Age |
|
|
|
| |
Added -Wreserved-id-macro and but exclude existing nonconforming macros
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
CFAutorelease. Update GTM's definition of the standard OS X/iOS version macros. Remove GTMDefines dependency from GTMNSString+URLArguments and GTMURITemplate.
DELTA=38 (27 added, 4 deleted, 7 changed)
DELTA_BY_EXTENSION=h=23,m=11
|
|
|
| |
DELTA=8 (8 added, 0 deleted, 0 changed)
|
|
|
| |
DELTA=23 (16 added, 0 deleted, 7 changed)
|
|
|
|
|
| |
GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton.
DELTA=447 (49 added, 296 deleted, 102 changed)
|
|
|
| |
DELTA=6 (4 added, 0 deleted, 2 changed)
|
|
|
|
|
| |
__attribute__((nonnull(1,2,3)))
DELTA=5 (4 added, 0 deleted, 1 changed)
|
|
|
|
|
|
|
|
| |
Remove the GC support code.
Add the needed images for the iOS unittests under iOS 6.0.
Add a workspace file for the iPhone project.
R=dmaclach
DELTA=215 (85 added, 122 deleted, 8 changed)
|
|
|
|
|
|
|
|
| |
Avoid warning of dead store to self when using GTMInvalidateInitializer with
ARC.
R=dmaclach
APPROVED=dmaclach
DELTA=1 (1 added, 0 deleted, 0 changed)
|
|
|
|
|
|
| |
Clean up all of our format string issues amongst some other fun stuff.
R=thomasvl
DELTA=167 (90 added, 8 deleted, 69 changed)
|
|
|
|
|
|
| |
Pile of fixes for trunk version of clang.
R=dmaclach
DELTA=59 (26 added, 0 deleted, 33 changed)
|
|
|
|
|
|
|
| |
Macro for invalidating initializers.
R=dmaclach
APPROVED=dmaclach
DELTA=18 (18 added, 0 deleted, 0 changed)
|
|
|
|
|
|
|
|
| |
Add the 10.7 SDK for unit testing support.
Add SDK support for iOS unit testing.
Map 'arch' to "iPhone"/"iPad" to allow different images/states based on
the unit testing form factor.
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)
|
|
|
|
|
|
| |
Clean up clang issues in GTM. The one in GTMABAddressBook is a weird one, that I'll try and file a bug on.
R=thomasvl
DELTA=92 (53 added, 6 deleted, 33 changed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will need followup, but this is a quick and dirty to fix the things
that have gone very stale.
- Stop setting mac min sdk for iOS, there is an iOS version now (and
setting it can cause linker errors on newer xcodes).
- Add iOS xcconfigs that use the current SDK and have projects set their
min version as that's how Apple wants things.
- Add new config that uses the current SDK to make development workable.
- Block codesigning on the iOS unittests for now.
- Block format string warnings on logger until we can sort out a way to
shut it up for gcc 4.2 or actually make it work.
R=dmaclach
DELTA=289 (277 added, 3 deleted, 9 changed)
|
|
|
|
|
|
| |
Fix up endif to match.
R=dmaclach
DELTA=1 (0 added, 0 deleted, 1 changed)
|
|
|
|
|
|
|
| |
GTM_PROPERTY Macro defined to make working with
willChangeValueForKey: and didChangeValueForKey: safer.
R=thomasvl
DELTA=13 (13 added, 0 deleted, 0 changed)
|
|
|
|
|
|
| |
Add a GTM_UNUSED macro to deal with issue on the mailing lists.
R=thomasvl
DELTA=7 (7 added, 0 deleted, 0 changed)
|
|
|
|
|
|
|
| |
Initial look at GTMServiceManagement.
Added tests and project changes.
R=thomasvl
DELTA=844 (840 added, 0 deleted, 4 changed)
|
|
|
|
|
|
| |
Add CF_FORMAT_* Support.
R=thomasvl
DELTA=11 (11 added, 0 deleted, 0 changed)
|
|
|
|
|
|
|
|
| |
Put a guard around the protocol definitions for Chromium who want to be
able to control them. Also needed for QSB due to bringing in GTMDefines
from a variety of sources.
R=grobbins
DELTA=3 (1 added, 0 deleted, 2 changed)
|
|
|
|
|
|
| |
Fix up GTMiPhone Unit test issue with tests never starting.
DELTA=64 (63 added, 0 deleted, 1 changed)
R=thomasvl
|
|
|
|
|
|
|
| |
Fix up the script so that we can build the iPhone target independent of the Mac target so that we can clean up the
pulse config files to only build the one target without building multiple projects.
DELTA=649 (626 added, 6 deleted, 17 changed)
R=thomasvl
|
|
|
|
|
|
|
|
|
| |
Cleans up builds of GTM on Snow Leopard with gcc 4.2.
Cleans up iPhone configs
Adds libgcov for Snow Leopard
Fixes up some small bugs.
R=thomasvl
DELTA=2028 (972 added, 990 deleted, 66 changed)
|
|
|
|
|
|
|
|
|
| |
There are still a couple of errors occurring, but this fixes up the majority of stuff. I figured I'd send it out to you now to take
a look at in the morning, and then we can clean up the last couple of issues.
Not quite sure what to do about the naming of data files so that we can encompass ranges of system version (e.g. this file applies to
10.5 and 10.6 but not 10.4 or 10.7.
R=thomasvl
DELTA=10598 (10211 added, 70 deleted, 317 changed)
|
|
|
|
|
|
|
| |
So I can get around warnings on CoverStory on SnowLeopard. Hopefully Apple
will fix this on their end and we can drop back to NSLocalizedString
in future SDKs.
R=thomasvl
|
|
|
|
|
|
|
| |
Some stuff we don't need in GTM right now, but will be useful in QSB,
and seemed to make sense as part of the lower level toolkit.
R=thomasvl
DELTA=26 (26 added, 0 deleted, 0 changed)
|
|
|
|
|
|
| |
Added GTM_NSSTRINGIFY_MACRO for turning other macros into NSStrings.
R=thomasvl
DELTA=10 (10 added, 0 deleted, 0 changed)
|
|
|
|
|
|
|
|
|
|
| |
Fixed up GTMGoogleSearch so that it actually works on the iPhone Device.
Fixed up some GTMNSObject+KVO issues on the iPhone Device.
Fixed up GTMObjC2Runtime so that it actually compiles on the device.
Added debugging capabilities to KVO with GTM.
Removed unnecessary GTM_* system version macros from GTMDefines.h
R=thomasvl
DELTA=185 (153 added, 19 deleted, 13 changed)
|
|
|
|
|
|
| |
Get rid of GTM_MACOS_WEAK as it is only used in one place and we can code around that.
DELTA=6 (1 added, 4 deleted, 1 changed)
R=thomasvl
|
|
|
|
|
|
|
| |
Made GTMABAddressBook work on both the iPhone and the Desktop, giving you a
single interface to both.
DELTA=2539 (2173 added, 79 deleted, 287 changed)
R=thomasvl
|
|
|
|
|
|
| |
Fixes up GTMDefines so that it can be parsed by headerdoc.
OCL=10963680
TBR=thomasvl
CC=gtm-eng
|
|
|
|
| |
- move the include of system headers up for safety.
|
|
|
|
|
| |
GData Obj-C client ones since they are pretty much matches and keeps us
from having to maintain two copies of the same basic things.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
- Updated some tests for debug vs. release differences. (added help on log
validation for this).
- Some fixes build issues w/ different os versions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
stack.
- Added GTM_EXTERN that makes it easier to mix and match objc and objc++ code.
- Added GTMHotKeysTextField for display and editing of hot key settings.
- Added GTMCarbonEvent for dealing with Carbon Events and HotKeys in a ObjC like way.
- Backported the Atomic Barrier Swap functions for Objective C back to Tiger.
- Added a variety of new functions to GTMUnitTestingUtilities for checking if the screensaver is in the way, waiting on user events, and generating keystrokes.
- If you are using any Carbon routines that log (DebugStr, AssertMacros.h) and use GTMUnitTestDevLog, the log routines now go through _GTMDevLog so that they can be caught in GTMUnitTestDevLog and verified like any _GTMDevLog calls you may make. For an example of this in action see GTMCarbonEventTest.m.
- Added GTMFileSystemKQueue. It provides a simple wrapper for kqueuing something in the file system and tracking changes to it.
- RunIPhoneUnitTest.sh now cleans up the user home directory and creates a documents directory within it, used when requesting a NSDocumentDirectory.
- Added GTMNSFileManager+Carbon which contains routines for path <-> Alias conversion and path <-> FSRef conversion.
- Added GTMNSArray+Merge for merging one array into another with or without a custom merging function, returning a new array with the merged contents.
|
|
|
|
|
|
|
|
|
| |
GTMNSAppleScript+Handler.
- GTMStackTrace support for building a trace from the call stack in an NSException (for 10.5+ and iPhone).
- Added GTMUIFont+LineHeight.
- Cleaned up some OS version checks to use constants instead of numbers directly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to it's dependencies on undocumented frameworks, and the ScreenSaver
framework doesn't play nicely in GC mode.
- Added property methods to GTMHTTPFetcher. These are convenient alternatives
to storing an NSDictionary in the userData.
- Renamed GTMDevLog.m to GTMDevLogUnitTestingBridge.m and added some more
comments where it comes into play to hopefully make it more clear that it
isn't needed in most cases.
- Fixed a potential GTMHTTPFetcher crash on failed authentication.
- Added a obj-c logging package, GTMLogger, for applications that want an
application level logging system. See GTMLogger.h, GTMLogger+ASL.h, and
GTMLoggerRingBufferWriter.h for what the basic system and two optional
additions can do.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fixed up GTMIPhoneUnitTestDelegate to be pickier about which tests it runs
- Added GTMNSString+URLArguments to GTMiPhone
- Added GTMHTTPFetcher and GTMHTTPServer to GTMiPhone
- Made sure that build would work with iPhone device attached, and that all
tests run directly on the phone.
- Added GTMValidatingContainers which are a set of mutable container classes
that allow you to have a selector on a target that is called to verify that
the objects being put into the container are valid. This can be controlled
at compile time so that you don't take the performance hit in a release build.
- Added GTMPath, which represents an existing absolute path on the file system.
It also makes it very easy to contruct new paths in the file system as well
as whole directory hierarchies.
- Added GTMNSString+Replace for a common replacement need.
- Added NSString+FindFolder for two commen helpers for building paths to common
locations.
- Added GTMLargeTypeWindow for doing display windows similar to Address Book
Large Type display for phone numbers.
|
|
|
|
|
|
|
| |
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.
|