From 2ddb245fac99802e63742c21f7da0d499e9cecf6 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Thu, 15 Apr 2010 17:31:09 +0000 Subject: [Author: dmaclach] refactor GTMUnitTestingUtilities into GTMAppKitUnitTestingUtilties and GTMFoundationUnitTestingUtilities. convert GTMSignalHandler over to using new runloop routines fix bug in GTMSignalHandler API with GC where releasing it wasn't sufficient to stop it listening. R=thomasvl DELTA=1227 (638 added, 566 deleted, 23 changed) --- AppKit/GTMCarbonEventTest.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'AppKit/GTMCarbonEventTest.m') diff --git a/AppKit/GTMCarbonEventTest.m b/AppKit/GTMCarbonEventTest.m index 81acbd0..4cc039c 100644 --- a/AppKit/GTMCarbonEventTest.m +++ b/AppKit/GTMCarbonEventTest.m @@ -18,7 +18,7 @@ #import "GTMSenTestCase.h" #import "GTMCarbonEvent.h" -#import "GTMUnitTestingUtilities.h" +#import "GTMAppKitUnitTestingUtilities.h" #import "GTMUnitTestDevLog.h" @interface GTMCarbonEventTest : GTMTestCase { @@ -286,7 +286,7 @@ extern EventTargetRef GetApplicationEventTarget(void); // This test can't be run if the screen saver is active because the security // agent blocks us from sending events via remote operations - if (![GTMUnitTestingUtilities isScreenSaverActive]) { + if (![GTMAppKitUnitTestingUtilities isScreenSaverActive]) { GTMCarbonEventDispatcherHandler *dispatcher = [GTMCarbonEventDispatcherHandler sharedEventDispatcherHandler]; STAssertNotNil(dispatcher, @"Unable to acquire singleton"); @@ -312,7 +312,7 @@ extern EventTargetRef GetApplicationEventTarget(void); // correctly hitHotKey: should get called, and hotKeyHit_ will be set for // us. We run the event loop for a set amount of time waiting for this to // happen. - [GTMUnitTestingUtilities postTypeCharacterEvent:'g' modifiers:keyMods]; + [GTMAppKitUnitTestingUtilities postTypeCharacterEvent:'g' modifiers:keyMods]; STAssertTrue([NSApp gtm_runUpToSixtySecondsWithContext:hotKeyHit_], nil); [dispatcher unregisterHotKey:hotKey]; } @@ -322,7 +322,7 @@ extern EventTargetRef GetApplicationEventTarget(void); // This test can't be run if the screen saver is active because the security // agent blocks us from sending events via remote operations - if (![GTMUnitTestingUtilities isScreenSaverActive]) { + if (![GTMAppKitUnitTestingUtilities isScreenSaverActive]) { GTMCarbonEventDispatcherHandler *dispatcher = [GTMCarbonEventDispatcherHandler sharedEventDispatcherHandler]; STAssertNotNil(dispatcher, @"Unable to acquire singleton"); @@ -339,7 +339,7 @@ extern EventTargetRef GetApplicationEventTarget(void); // correctly hitHotKey: should get called, and hotKeyHit_ will be set for // us. We run the event loop for a set amount of time waiting for this to // happen. - [GTMUnitTestingUtilities postTypeCharacterEvent:'g' modifiers:keyMods]; + [GTMAppKitUnitTestingUtilities postTypeCharacterEvent:'g' modifiers:keyMods]; [GTMUnitTestDevLog expectString:@"Exception fired in hotkey: foo (bar)"]; STAssertTrue([NSApp gtm_runUpToSixtySecondsWithContext:hotKeyHit_], nil); [dispatcher unregisterHotKey:hotKey]; -- cgit v1.2.3