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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/file_path.h" | 6 #include "base/file_path.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/bookmarks/bookmark_model.h" | 8 #include "chrome/browser/bookmarks/bookmark_model.h" |
9 #include "chrome/browser/extensions/browser_action_test_util.h" | 9 #include "chrome/browser/extensions/browser_action_test_util.h" |
10 #include "chrome/browser/extensions/extension_apitest.h" | 10 #include "chrome/browser/extensions/extension_apitest.h" |
11 #include "chrome/browser/extensions/extension_event_router.h" | |
12 #include "chrome/browser/extensions/extension_host.h" | 11 #include "chrome/browser/extensions/extension_host.h" |
13 #include "chrome/browser/extensions/extension_test_message_listener.h" | 12 #include "chrome/browser/extensions/extension_test_message_listener.h" |
14 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
15 #include "chrome/browser/extensions/lazy_background_page_test_util.h" | 14 #include "chrome/browser/extensions/lazy_background_page_test_util.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
18 #include "chrome/browser/ui/browser_tabstrip.h" | 17 #include "chrome/browser/ui/browser_tabstrip.h" |
19 #include "chrome/browser/ui/browser_window.h" | 18 #include "chrome/browser/ui/browser_window.h" |
20 #include "chrome/browser/ui/omnibox/location_bar.h" | 19 #include "chrome/browser/ui/omnibox/location_bar.h" |
21 #include "chrome/common/chrome_notification_types.h" | 20 #include "chrome/common/chrome_notification_types.h" |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 EXPECT_FALSE(pm->GetBackgroundHostForExtension(last_loaded_extension_id_)); | 364 EXPECT_FALSE(pm->GetBackgroundHostForExtension(last_loaded_extension_id_)); |
366 | 365 |
367 // The browser action has a new title. | 366 // The browser action has a new title. |
368 BrowserActionTestUtil browser_action(browser()); | 367 BrowserActionTestUtil browser_action(browser()); |
369 ASSERT_EQ(1, browser_action.NumberOfBrowserActions()); | 368 ASSERT_EQ(1, browser_action.NumberOfBrowserActions()); |
370 EXPECT_EQ("Success", browser_action.GetTooltip(0)); | 369 EXPECT_EQ("Success", browser_action.GetTooltip(0)); |
371 } | 370 } |
372 | 371 |
373 // TODO: background page with timer. | 372 // TODO: background page with timer. |
374 // TODO: background page that interacts with popup. | 373 // TODO: background page that interacts with popup. |
OLD | NEW |