| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 // Get the profile to use. | 70 // Get the profile to use. |
| 71 virtual Profile* profile(); | 71 virtual Profile* profile(); |
| 72 | 72 |
| 73 static const extensions::Extension* GetExtensionByPath( | 73 static const extensions::Extension* GetExtensionByPath( |
| 74 const extensions::ExtensionSet* extensions, const base::FilePath& path); | 74 const extensions::ExtensionSet* extensions, const base::FilePath& path); |
| 75 | 75 |
| 76 // InProcessBrowserTest | 76 // InProcessBrowserTest |
| 77 virtual void SetUp() OVERRIDE; | 77 virtual void SetUp() OVERRIDE; |
| 78 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 78 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; |
| 79 virtual void SetUpOnMainThread() OVERRIDE; | 79 virtual void SetUpOnMainThread() OVERRIDE; |
| 80 | 80 |
| 81 const extensions::Extension* LoadExtension(const base::FilePath& path); | 81 const extensions::Extension* LoadExtension(const base::FilePath& path); |
| 82 | 82 |
| 83 // Same as above, but enables the extension in incognito mode first. | 83 // Same as above, but enables the extension in incognito mode first. |
| 84 const extensions::Extension* LoadExtensionIncognito( | 84 const extensions::Extension* LoadExtensionIncognito( |
| 85 const base::FilePath& path); | 85 const base::FilePath& path); |
| 86 | 86 |
| 87 const extensions::Extension* LoadExtensionWithFlags( | 87 const extensions::Extension* LoadExtensionWithFlags( |
| 88 const base::FilePath& path, int flags); | 88 const base::FilePath& path, int flags); |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 override_prompt_for_external_extensions_; | 342 override_prompt_for_external_extensions_; |
| 343 | 343 |
| 344 // The default profile to be used. | 344 // The default profile to be used. |
| 345 Profile* profile_; | 345 Profile* profile_; |
| 346 | 346 |
| 347 // Cache cache implementation. | 347 // Cache cache implementation. |
| 348 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; | 348 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; |
| 349 }; | 349 }; |
| 350 | 350 |
| 351 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 351 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |