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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/scoped_temp_dir.h" | 13 #include "base/scoped_temp_dir.h" |
14 #include "chrome/browser/extensions/extension_host.h" | 14 #include "chrome/browser/extensions/extension_host.h" |
15 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
| 16 #include "chrome/common/extensions/features/feature.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
17 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
18 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
19 #include "content/public/browser/notification_types.h" | 20 #include "content/public/browser/notification_types.h" |
20 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
21 | 22 |
22 // Base class for extension browser tests. Provides utilities for loading, | 23 // Base class for extension browser tests. Provides utilities for loading, |
23 // unloading, and installing extensions. | 24 // unloading, and installing extensions. |
24 class ExtensionBrowserTest : virtual public InProcessBrowserTest, | 25 class ExtensionBrowserTest : virtual public InProcessBrowserTest, |
25 public content::NotificationObserver { | 26 public content::NotificationObserver { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 235 |
235 bool WaitForExtensionViewsToLoad(); | 236 bool WaitForExtensionViewsToLoad(); |
236 | 237 |
237 // When waiting for page action count to change, we wait until it reaches this | 238 // When waiting for page action count to change, we wait until it reaches this |
238 // value. | 239 // value. |
239 int target_page_action_count_; | 240 int target_page_action_count_; |
240 | 241 |
241 // When waiting for visible page action count to change, we wait until it | 242 // When waiting for visible page action count to change, we wait until it |
242 // reaches this value. | 243 // reaches this value. |
243 int target_visible_page_action_count_; | 244 int target_visible_page_action_count_; |
| 245 |
| 246 // Make the current channel "dev" for the duration of the test. |
| 247 extensions::Feature::ScopedCurrentChannel current_channel_; |
244 }; | 248 }; |
245 | 249 |
246 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 250 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
OLD | NEW |