| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 | 66 |
| 67 const std::string& last_loaded_extension_id() { | 67 const std::string& last_loaded_extension_id() { |
| 68 return observer_->last_loaded_extension_id(); | 68 return observer_->last_loaded_extension_id(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 // Get the profile to use. | 71 // Get the profile to use. |
| 72 virtual Profile* profile(); | 72 virtual Profile* profile(); |
| 73 | 73 |
| 74 static const extensions::Extension* GetExtensionByPath( | 74 static const extensions::Extension* GetExtensionByPath( |
| 75 const extensions::ExtensionSet* extensions, const base::FilePath& path); | 75 const extensions::ExtensionSet& extensions, |
| 76 const base::FilePath& path); |
| 76 | 77 |
| 77 // InProcessBrowserTest | 78 // InProcessBrowserTest |
| 78 void SetUp() override; | 79 void SetUp() override; |
| 79 void SetUpCommandLine(base::CommandLine* command_line) override; | 80 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 80 void SetUpOnMainThread() override; | 81 void SetUpOnMainThread() override; |
| 81 | 82 |
| 82 const extensions::Extension* LoadExtension(const base::FilePath& path); | 83 const extensions::Extension* LoadExtension(const base::FilePath& path); |
| 83 | 84 |
| 84 // Load extension and enable it in incognito mode. | 85 // Load extension and enable it in incognito mode. |
| 85 const extensions::Extension* LoadExtensionIncognito( | 86 const extensions::Extension* LoadExtensionIncognito( |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 #endif | 387 #endif |
| 387 | 388 |
| 388 // The default profile to be used. | 389 // The default profile to be used. |
| 389 Profile* profile_; | 390 Profile* profile_; |
| 390 | 391 |
| 391 // Cache cache implementation. | 392 // Cache cache implementation. |
| 392 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; | 393 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; |
| 393 }; | 394 }; |
| 394 | 395 |
| 395 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 396 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |