| 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" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual ~ExtensionBrowserTest(); | 55 virtual ~ExtensionBrowserTest(); |
| 56 | 56 |
| 57 // Useful accessors. | 57 // Useful accessors. |
| 58 Profile* profile() { return browser()->profile(); } | 58 Profile* profile() { return browser()->profile(); } |
| 59 ExtensionService* extension_service() { | 59 ExtensionService* extension_service() { |
| 60 return extensions::ExtensionSystem::Get(profile())->extension_service(); | 60 return extensions::ExtensionSystem::Get(profile())->extension_service(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 // InProcessBrowserTest | 63 // InProcessBrowserTest |
| 64 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 64 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
| 65 virtual void SetUpOnMainThread() OVERRIDE; |
| 65 | 66 |
| 66 const extensions::Extension* LoadExtension(const FilePath& path); | 67 const extensions::Extension* LoadExtension(const FilePath& path); |
| 67 | 68 |
| 68 // Same as above, but enables the extension in incognito mode first. | 69 // Same as above, but enables the extension in incognito mode first. |
| 69 const extensions::Extension* LoadExtensionIncognito(const FilePath& path); | 70 const extensions::Extension* LoadExtensionIncognito(const FilePath& path); |
| 70 | 71 |
| 71 const extensions::Extension* LoadExtensionWithFlags( | 72 const extensions::Extension* LoadExtensionWithFlags( |
| 72 const FilePath& path, int flags); | 73 const FilePath& path, int flags); |
| 73 | 74 |
| 74 // Loads extension and imitates that it is a component extension. | 75 // Loads extension and imitates that it is a component extension. |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // Disable external install UI. | 267 // Disable external install UI. |
| 267 extensions::FeatureSwitch::ScopedOverride | 268 extensions::FeatureSwitch::ScopedOverride |
| 268 override_prompt_for_external_extensions_; | 269 override_prompt_for_external_extensions_; |
| 269 | 270 |
| 270 // Disable the sideload wipeout UI. | 271 // Disable the sideload wipeout UI. |
| 271 extensions::FeatureSwitch::ScopedOverride | 272 extensions::FeatureSwitch::ScopedOverride |
| 272 override_sideload_wipeout_; | 273 override_sideload_wipeout_; |
| 273 }; | 274 }; |
| 274 | 275 |
| 275 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 276 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |