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..3ab40a0ecb186dbe2ac309d3b63eaedc5a632b85 100644 |
--- a/base/test/mock_chrome_application_mac.h |
+++ b/base/test/mock_chrome_application_mac.h |
@@ -10,12 +10,18 @@ |
#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> { |
+ @private |
+ BOOL handlingSendEvent_; |
+} |
@end |
#endif |