| 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/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "chrome/browser/extensions/extension_host.h" | 14 #include "chrome/browser/extensions/extension_host.h" |
| 15 #include "chrome/browser/extensions/extension_system.h" | 15 #include "chrome/browser/extensions/extension_system.h" |
| 16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
| 17 #include "chrome/common/extensions/extension.h" | 17 #include "chrome/common/extensions/extension.h" |
| 18 #include "chrome/common/extensions/feature_switch.h" | 18 #include "chrome/common/extensions/feature_switch.h" |
| 19 #include "chrome/common/extensions/features/feature.h" | 19 #include "chrome/common/extensions/features/feature_channel.h" |
| 20 #include "chrome/common/extensions/manifest.h" | 20 #include "chrome/common/extensions/manifest.h" |
| 21 #include "chrome/test/base/in_process_browser_test.h" | 21 #include "chrome/test/base/in_process_browser_test.h" |
| 22 #include "content/public/browser/notification_details.h" | 22 #include "content/public/browser/notification_details.h" |
| 23 #include "content/public/browser/notification_observer.h" | 23 #include "content/public/browser/notification_observer.h" |
| 24 #include "content/public/browser/notification_types.h" | 24 #include "content/public/browser/notification_types.h" |
| 25 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
| 26 | 26 |
| 27 class ExtensionProcessManager; | 27 class ExtensionProcessManager; |
| 28 class ExtensionService; | 28 class ExtensionService; |
| 29 class ExtensionSet; | 29 class ExtensionSet; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 // When waiting for page action count to change, we wait until it reaches this | 291 // When waiting for page action count to change, we wait until it reaches this |
| 292 // value. | 292 // value. |
| 293 int target_page_action_count_; | 293 int target_page_action_count_; |
| 294 | 294 |
| 295 // When waiting for visible page action count to change, we wait until it | 295 // When waiting for visible page action count to change, we wait until it |
| 296 // reaches this value. | 296 // reaches this value. |
| 297 int target_visible_page_action_count_; | 297 int target_visible_page_action_count_; |
| 298 | 298 |
| 299 // Make the current channel "dev" for the duration of the test. | 299 // Make the current channel "dev" for the duration of the test. |
| 300 extensions::Feature::ScopedCurrentChannel current_channel_; | 300 extensions::ScopedCurrentChannel current_channel_; |
| 301 | 301 |
| 302 // Disable external install UI. | 302 // Disable external install UI. |
| 303 extensions::FeatureSwitch::ScopedOverride | 303 extensions::FeatureSwitch::ScopedOverride |
| 304 override_prompt_for_external_extensions_; | 304 override_prompt_for_external_extensions_; |
| 305 | 305 |
| 306 // The default profile to be used. | 306 // The default profile to be used. |
| 307 Profile* profile_; | 307 Profile* profile_; |
| 308 }; | 308 }; |
| 309 | 309 |
| 310 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 310 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |