| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 62 } |
| 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 | 73 |
| 73 const extensions::Extension* LoadExtension(const base::FilePath& path); | 74 const extensions::Extension* LoadExtension(const base::FilePath& path); |
| 74 | 75 |
| 75 // Same as above, but enables the extension in incognito mode first. | 76 // Same as above, but enables the extension in incognito mode first. |
| 76 const extensions::Extension* LoadExtensionIncognito( | 77 const extensions::Extension* LoadExtensionIncognito( |
| 77 const base::FilePath& path); | 78 const base::FilePath& path); |
| 78 | 79 |
| 79 const extensions::Extension* LoadExtensionWithFlags( | 80 const extensions::Extension* LoadExtensionWithFlags( |
| 80 const base::FilePath& path, int flags); | 81 const base::FilePath& path, int flags); |
| 81 | 82 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 292 |
| 292 // Disable the sideload wipeout UI. | 293 // Disable the sideload wipeout UI. |
| 293 extensions::FeatureSwitch::ScopedOverride | 294 extensions::FeatureSwitch::ScopedOverride |
| 294 override_sideload_wipeout_; | 295 override_sideload_wipeout_; |
| 295 | 296 |
| 296 // The default profile to be used. | 297 // The default profile to be used. |
| 297 Profile* profile_; | 298 Profile* profile_; |
| 298 }; | 299 }; |
| 299 | 300 |
| 300 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 301 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |