| Index: chrome/browser/extensions/extension_menu_manager_unittest.cc
|
| diff --git a/chrome/browser/extensions/extension_menu_manager_unittest.cc b/chrome/browser/extensions/extension_menu_manager_unittest.cc
|
| index bb834cb73f0a88f981124bc849c201604f58f59c..eef1afda0b561eb580bedec75b3c05f4bd862267 100644
|
| --- a/chrome/browser/extensions/extension_menu_manager_unittest.cc
|
| +++ b/chrome/browser/extensions/extension_menu_manager_unittest.cc
|
| @@ -347,12 +347,12 @@ class MockExtensionEventRouter : public ExtensionEventRouter {
|
| explicit MockExtensionEventRouter(Profile* profile) :
|
| ExtensionEventRouter(profile) {}
|
|
|
| - MOCK_METHOD6(DispatchEventImpl, void(const std::string& extension_id,
|
| - const std::string& event_name,
|
| - const std::string& event_args,
|
| - Profile* source_profile,
|
| - const std::string& cross_incognito_args,
|
| - const GURL& event_url));
|
| + MOCK_METHOD5(DispatchEventToExtension, void(const std::string& extension_id,
|
| + const std::string& event_name,
|
| + const std::string& event_args,
|
| + Profile* source_profile,
|
| + const GURL& event_url));
|
| +
|
|
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(MockExtensionEventRouter);
|
| @@ -445,12 +445,11 @@ TEST_F(ExtensionMenuManagerTest, ExecuteCommand) {
|
| std::string event_args;
|
| std::string expected_event_name = "contextMenus";
|
| EXPECT_CALL(*mock_event_router.get(),
|
| - DispatchEventImpl(item->extension_id(),
|
| - expected_event_name,
|
| - _,
|
| - &profile,
|
| - "",
|
| - GURL()))
|
| + DispatchEventToExtension(item->extension_id(),
|
| + expected_event_name,
|
| + _,
|
| + &profile,
|
| + GURL()))
|
| .Times(1)
|
| .WillOnce(SaveArg<2>(&event_args));
|
|
|
|
|