| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Get the profile to use. | 64 // Get the profile to use. |
| 65 Profile* profile(); | 65 Profile* profile(); |
| 66 | 66 |
| 67 static const extensions::Extension* GetExtensionByPath( | 67 static const extensions::Extension* GetExtensionByPath( |
| 68 const ExtensionSet* extensions, const base::FilePath& path); | 68 const ExtensionSet* extensions, const base::FilePath& path); |
| 69 | 69 |
| 70 // InProcessBrowserTest | 70 // InProcessBrowserTest |
| 71 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 71 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
| 72 virtual void SetUpOnMainThread() OVERRIDE; | 72 virtual void SetUpOnMainThread() OVERRIDE; |
| 73 virtual void CleanUpOnMainThread() OVERRIDE; |
| 73 | 74 |
| 74 const extensions::Extension* LoadExtension(const base::FilePath& path); | 75 const extensions::Extension* LoadExtension(const base::FilePath& path); |
| 75 | 76 |
| 76 // Same as above, but enables the extension in incognito mode first. | 77 // Same as above, but enables the extension in incognito mode first. |
| 77 const extensions::Extension* LoadExtensionIncognito( | 78 const extensions::Extension* LoadExtensionIncognito( |
| 78 const base::FilePath& path); | 79 const base::FilePath& path); |
| 79 | 80 |
| 80 const extensions::Extension* LoadExtensionWithFlags( | 81 const extensions::Extension* LoadExtensionWithFlags( |
| 81 const base::FilePath& path, int flags); | 82 const base::FilePath& path, int flags); |
| 82 | 83 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 | 293 |
| 293 // Disable the sideload wipeout UI. | 294 // Disable the sideload wipeout UI. |
| 294 extensions::FeatureSwitch::ScopedOverride | 295 extensions::FeatureSwitch::ScopedOverride |
| 295 override_sideload_wipeout_; | 296 override_sideload_wipeout_; |
| 296 | 297 |
| 297 // The default profile to be used. | 298 // The default profile to be used. |
| 298 Profile* profile_; | 299 Profile* profile_; |
| 299 }; | 300 }; |
| 300 | 301 |
| 301 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 302 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |