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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 75 const extensions::ExtensionSet& extensions, |
76 const base::FilePath& path); | 76 const base::FilePath& path); |
77 | 77 |
78 // InProcessBrowserTest | 78 // InProcessBrowserTest |
79 void SetUp() override; | 79 void SetUp() override; |
80 void SetUpCommandLine(base::CommandLine* command_line) override; | 80 void SetUpCommandLine(base::CommandLine* command_line) override; |
81 void SetUpOnMainThread() override; | 81 void SetUpOnMainThread() override; |
| 82 void TearDownOnMainThread() override; |
82 | 83 |
83 const extensions::Extension* LoadExtension(const base::FilePath& path); | 84 const extensions::Extension* LoadExtension(const base::FilePath& path); |
84 | 85 |
85 // Load extension and enable it in incognito mode. | 86 // Load extension and enable it in incognito mode. |
86 const extensions::Extension* LoadExtensionIncognito( | 87 const extensions::Extension* LoadExtensionIncognito( |
87 const base::FilePath& path); | 88 const base::FilePath& path); |
88 | 89 |
89 // Load extension from the |path| folder. |flags| is bit mask of values from | 90 // Load extension from the |path| folder. |flags| is bit mask of values from |
90 // |Flags| enum. | 91 // |Flags| enum. |
91 const extensions::Extension* LoadExtensionWithFlags( | 92 const extensions::Extension* LoadExtensionWithFlags( |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 #endif | 401 #endif |
401 | 402 |
402 // The default profile to be used. | 403 // The default profile to be used. |
403 Profile* profile_; | 404 Profile* profile_; |
404 | 405 |
405 // Cache cache implementation. | 406 // Cache cache implementation. |
406 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; | 407 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; |
407 }; | 408 }; |
408 | 409 |
409 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 410 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
OLD | NEW |