OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
6 #include "chrome/browser/extensions/extension_browser_event_router.h" | |
7 #include "chrome/browser/extensions/extension_service.h" | 6 #include "chrome/browser/extensions/extension_service.h" |
8 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/common/extensions/extension_action.h" | 9 #include "chrome/common/extensions/extension_action.h" |
11 #include "chrome/test/base/ui_test_utils.h" | 10 #include "chrome/test/base/ui_test_utils.h" |
12 | 11 |
13 namespace extensions { | 12 namespace extensions { |
14 | 13 |
15 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContextMenus) { | 14 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContextMenus) { |
16 ASSERT_TRUE(RunExtensionTest("context_menus/basics")) << message_; | 15 ASSERT_TRUE(RunExtensionTest("context_menus/basics")) << message_; |
(...skipping 22 matching lines...) Expand all Loading... |
39 { | 38 { |
40 // Tell the extension to update the page action state again. | 39 // Tell the extension to update the page action state again. |
41 ResultCatcher catcher; | 40 ResultCatcher catcher; |
42 ui_test_utils::NavigateToURL(browser(), | 41 ui_test_utils::NavigateToURL(browser(), |
43 extension->GetResourceURL("popup2.html")); | 42 extension->GetResourceURL("popup2.html")); |
44 ASSERT_TRUE(catcher.GetNextResult()); | 43 ASSERT_TRUE(catcher.GetNextResult()); |
45 } | 44 } |
46 } | 45 } |
47 | 46 |
48 } // namespace extensions | 47 } // namespace extensions |
OLD | NEW |