Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1603)

Side by Side Diff: chrome/browser/extensions/extension_browsertest.h

Issue 8473003: Add OVERRIDE to chrome/browser/extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/scoped_temp_dir.h" 14 #include "base/scoped_temp_dir.h"
15 #include "chrome/test/base/in_process_browser_test.h" 15 #include "chrome/test/base/in_process_browser_test.h"
16 #include "content/public/browser/notification_details.h" 16 #include "content/public/browser/notification_details.h"
17 #include "content/public/browser/notification_observer.h" 17 #include "content/public/browser/notification_observer.h"
18 #include "content/public/browser/notification_types.h" 18 #include "content/public/browser/notification_types.h"
19 19
20 class Extension; 20 class Extension;
21 21
22 // Base class for extension browser tests. Provides utilities for loading, 22 // Base class for extension browser tests. Provides utilities for loading,
23 // unloading, and installing extensions. 23 // unloading, and installing extensions.
24 class ExtensionBrowserTest 24 class ExtensionBrowserTest
25 : public InProcessBrowserTest, public content::NotificationObserver { 25 : public InProcessBrowserTest, public content::NotificationObserver {
26 protected: 26 protected:
27 ExtensionBrowserTest(); 27 ExtensionBrowserTest();
28 28
29 virtual void SetUpCommandLine(CommandLine* command_line); 29 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
30 const Extension* LoadExtension(const FilePath& path); 30 const Extension* LoadExtension(const FilePath& path);
31 31
32 // Same as above, but enables the extension in incognito mode first. 32 // Same as above, but enables the extension in incognito mode first.
33 const Extension* LoadExtensionIncognito(const FilePath& path); 33 const Extension* LoadExtensionIncognito(const FilePath& path);
34 34
35 const Extension* LoadExtensionWithOptions(const FilePath& path, 35 const Extension* LoadExtensionWithOptions(const FilePath& path,
36 bool incognito_enabled, 36 bool incognito_enabled,
37 bool fileaccess_enabled); 37 bool fileaccess_enabled);
38 38
39 // Loads extension and imitates that it is a component extension. 39 // Loads extension and imitates that it is a component extension.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // When waiting for page action count to change, we wait until it reaches this 161 // When waiting for page action count to change, we wait until it reaches this
162 // value. 162 // value.
163 int target_page_action_count_; 163 int target_page_action_count_;
164 164
165 // When waiting for visible page action count to change, we wait until it 165 // When waiting for visible page action count to change, we wait until it
166 // reaches this value. 166 // reaches this value.
167 int target_visible_page_action_count_; 167 int target_visible_page_action_count_;
168 }; 168 };
169 169
170 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ 170 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698