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 19 matching lines...) Expand all Loading... |
30 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/test/base/ui_test_utils.h" | 32 #include "chrome/test/base/ui_test_utils.h" |
33 #include "content/public/browser/navigation_controller.h" | 33 #include "content/public/browser/navigation_controller.h" |
34 #include "content/public/browser/navigation_entry.h" | 34 #include "content/public/browser/navigation_entry.h" |
35 #include "content/public/browser/notification_registrar.h" | 35 #include "content/public/browser/notification_registrar.h" |
36 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
37 #include "content/public/browser/render_view_host.h" | 37 #include "content/public/browser/render_view_host.h" |
38 | 38 |
39 using extensions::Extension; | 39 using extensions::Extension; |
| 40 using extensions::ExtensionCreator; |
40 | 41 |
41 ExtensionBrowserTest::ExtensionBrowserTest() | 42 ExtensionBrowserTest::ExtensionBrowserTest() |
42 : loaded_(false), | 43 : loaded_(false), |
43 installed_(false), | 44 installed_(false), |
44 extension_installs_observed_(0), | 45 extension_installs_observed_(0), |
45 extension_load_errors_observed_(0), | 46 extension_load_errors_observed_(0), |
46 target_page_action_count_(-1), | 47 target_page_action_count_(-1), |
47 target_visible_page_action_count_(-1) { | 48 target_visible_page_action_count_(-1) { |
48 EXPECT_TRUE(temp_dir_.CreateUniqueTempDir()); | 49 EXPECT_TRUE(temp_dir_.CreateUniqueTempDir()); |
49 AppShortcutManager::SetShortcutCreationDisabledForTesting(true); | 50 AppShortcutManager::SetShortcutCreationDisabledForTesting(true); |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 case content::NOTIFICATION_LOAD_STOP: | 630 case content::NOTIFICATION_LOAD_STOP: |
630 VLOG(1) << "Got LOAD_STOP notification."; | 631 VLOG(1) << "Got LOAD_STOP notification."; |
631 MessageLoopForUI::current()->Quit(); | 632 MessageLoopForUI::current()->Quit(); |
632 break; | 633 break; |
633 | 634 |
634 default: | 635 default: |
635 NOTREACHED(); | 636 NOTREACHED(); |
636 break; | 637 break; |
637 } | 638 } |
638 } | 639 } |
OLD | NEW |