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_browsertest.h" | 5 #include "chrome/browser/extensions/extension_browsertest.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/ui/browser_window.h" | 25 #include "chrome/browser/ui/browser_window.h" |
26 #include "chrome/browser/ui/omnibox/location_bar.h" | 26 #include "chrome/browser/ui/omnibox/location_bar.h" |
27 #include "chrome/common/chrome_notification_types.h" | 27 #include "chrome/common/chrome_notification_types.h" |
28 #include "chrome/common/chrome_paths.h" | 28 #include "chrome/common/chrome_paths.h" |
29 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
30 #include "chrome/test/base/ui_test_utils.h" | 30 #include "chrome/test/base/ui_test_utils.h" |
31 #include "content/public/browser/notification_registrar.h" | 31 #include "content/public/browser/notification_registrar.h" |
32 #include "content/public/browser/notification_service.h" | 32 #include "content/public/browser/notification_service.h" |
33 #include "content/public/browser/render_view_host.h" | 33 #include "content/public/browser/render_view_host.h" |
34 | 34 |
| 35 using extensions::Extension; |
| 36 |
35 ExtensionBrowserTest::ExtensionBrowserTest() | 37 ExtensionBrowserTest::ExtensionBrowserTest() |
36 : loaded_(false), | 38 : loaded_(false), |
37 installed_(false), | 39 installed_(false), |
38 extension_installs_observed_(0), | 40 extension_installs_observed_(0), |
39 extension_load_errors_observed_(0), | 41 extension_load_errors_observed_(0), |
40 target_page_action_count_(-1), | 42 target_page_action_count_(-1), |
41 target_visible_page_action_count_(-1) { | 43 target_visible_page_action_count_(-1) { |
42 EXPECT_TRUE(temp_dir_.CreateUniqueTempDir()); | 44 EXPECT_TRUE(temp_dir_.CreateUniqueTempDir()); |
43 AppShortcutManager::SetShortcutCreationDisabledForTesting(true); | 45 AppShortcutManager::SetShortcutCreationDisabledForTesting(true); |
44 } | 46 } |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 case content::NOTIFICATION_LOAD_STOP: | 537 case content::NOTIFICATION_LOAD_STOP: |
536 VLOG(1) << "Got LOAD_STOP notification."; | 538 VLOG(1) << "Got LOAD_STOP notification."; |
537 MessageLoopForUI::current()->Quit(); | 539 MessageLoopForUI::current()->Quit(); |
538 break; | 540 break; |
539 | 541 |
540 default: | 542 default: |
541 NOTREACHED(); | 543 NOTREACHED(); |
542 break; | 544 break; |
543 } | 545 } |
544 } | 546 } |
OLD | NEW |