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 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, const base::FilePath& path); |
76 | 76 |
77 // InProcessBrowserTest | 77 // InProcessBrowserTest |
78 virtual void SetUp() OVERRIDE; | 78 virtual void SetUp() override; |
79 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | 79 virtual void SetUpCommandLine(base::CommandLine* command_line) override; |
80 virtual void SetUpOnMainThread() OVERRIDE; | 80 virtual void SetUpOnMainThread() override; |
81 | 81 |
82 const extensions::Extension* LoadExtension(const base::FilePath& path); | 82 const extensions::Extension* LoadExtension(const base::FilePath& path); |
83 | 83 |
84 // Load extension and enable it in incognito mode. | 84 // Load extension and enable it in incognito mode. |
85 const extensions::Extension* LoadExtensionIncognito( | 85 const extensions::Extension* LoadExtensionIncognito( |
86 const base::FilePath& path); | 86 const base::FilePath& path); |
87 | 87 |
88 // Load extension from the |path| folder. |flags| is bit mask of values from | 88 // Load extension from the |path| folder. |flags| is bit mask of values from |
89 // |Flags| enum. | 89 // |Flags| enum. |
90 const extensions::Extension* LoadExtensionWithFlags( | 90 const extensions::Extension* LoadExtensionWithFlags( |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 #endif | 386 #endif |
387 | 387 |
388 // The default profile to be used. | 388 // The default profile to be used. |
389 Profile* profile_; | 389 Profile* profile_; |
390 | 390 |
391 // Cache cache implementation. | 391 // Cache cache implementation. |
392 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; | 392 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; |
393 }; | 393 }; |
394 | 394 |
395 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 395 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
OLD | NEW |