Chromium Code Reviews| 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; |
| } |