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

Unified Diff: chrome/browser/ui/cocoa/chrome_event_processing_window_unittest.mm

Issue 7004036: Added some enhancements to OCMock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months 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: chrome/browser/ui/cocoa/chrome_event_processing_window_unittest.mm
diff --git a/chrome/browser/ui/cocoa/chrome_event_processing_window_unittest.mm b/chrome/browser/ui/cocoa/chrome_event_processing_window_unittest.mm
index 4f06be4030120f4409c3eab03159b1392185210a..7c88f4d52143119432b8227d323ec1f16b26ab7b 100644
--- a/chrome/browser/ui/cocoa/chrome_event_processing_window_unittest.mm
+++ b/chrome/browser/ui/cocoa/chrome_event_processing_window_unittest.mm
@@ -13,6 +13,7 @@
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
#include "third_party/ocmock/gtest_support.h"
#import "third_party/ocmock/OCMock/OCMock.h"
+#import "third_party/ocmock/ocmock_extensions.h"
namespace {
@@ -60,12 +61,10 @@ id CreateBrowserWindowControllerMock() {
id delegate = [OCMockObject mockForClass:[BrowserWindowController class]];
// Make conformsToProtocol return YES for @protocol(BrowserCommandExecutor)
// to satisfy the DCHECK() in handleExtraKeyboardShortcut.
- //
- // TODO(akalin): Figure out how to replace OCMOCK_ANY below with
- // @protocol(BrowserCommandExecutor) and have it work.
BOOL yes = YES;
[[[delegate stub] andReturnValue:OCMOCK_VALUE(yes)]
TVL 2011/05/20 16:07:05 did you want to replace this also?
- conformsToProtocol:OCMOCK_ANY];
+ conformsToProtocol:[OCMArg conformsToProtocol:
+ @protocol(BrowserCommandExecutor)]];
return delegate;
}

Powered by Google App Engine
This is Rietveld 408576698