Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3439)

Unified Diff: base/test/mock_chrome_application_mac.h

Issue 8724004: [Mac] Move ScopedSendingEvent from content/common/mac to base/mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698