Index: base/test/mock_chrome_application_mac.h |
diff --git a/base/test/mock_chrome_application_mac.h b/base/test/mock_chrome_application_mac.h |
index e7e2c678fa4f0aad6583e55d362e92047bbe428e..e5ecd4b39c665d397c378125bb012dfcf0d21ffa 100644 |
--- a/base/test/mock_chrome_application_mac.h |
+++ b/base/test/mock_chrome_application_mac.h |
@@ -10,12 +10,17 @@ |
#import <AppKit/AppKit.h> |
+#include "base/mac/scoped_sending_event.h" |
#include "base/message_pump_mac.h" |
-// A mock implementation of CrAppProtocol that claims that -sendEvent: is never |
-// on the stack. This can be used in tests that need an NSApplication and use a |
-// runloop, but don't run nested message loops. |
-@interface MockCrApp : NSApplication<CrAppProtocol> |
+// A basic implementation of CrAppProtocol and |
+// CrAppControlProtocol. This can be used in tests that need an |
+// NSApplication and use a runloop, or which need a ScopedSendingEvent |
+// when handling a nested event loop. |
+@interface MockCrApp : NSApplication<CrAppProtocol,CrAppControlProtocol> { |
Robert Sesek
2011/11/29 22:41:56
nit: break after ',' and align the 'C's.
Scott Hess - ex-Googler
2011/11/29 23:22:58
Done.
Actually ... CrAppControlProtocol includes
Robert Sesek
2011/11/30 15:29:44
I like the explicitness.
|
+ @private |
+ BOOL handlingSendEvent_; |
+} |
@end |
#endif |