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

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

Issue 9310079: Moved app shortcut code out of ExtensionService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed stupid virtual ommission Created 8 years, 10 months 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
OLDNEW
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 #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 virtual ~ExtensionBrowserTest();
28 29
29 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 30 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
30 31
31 const Extension* LoadExtension(const FilePath& path); 32 const Extension* LoadExtension(const FilePath& path);
32 33
33 // Same as above, but enables the extension in incognito mode first. 34 // Same as above, but enables the extension in incognito mode first.
34 const Extension* LoadExtensionIncognito(const FilePath& path); 35 const Extension* LoadExtensionIncognito(const FilePath& path);
35 36
36 const Extension* LoadExtensionWithOptions(const FilePath& path, 37 const Extension* LoadExtensionWithOptions(const FilePath& path,
37 bool incognito_enabled, 38 bool incognito_enabled,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // When waiting for page action count to change, we wait until it reaches this 167 // When waiting for page action count to change, we wait until it reaches this
167 // value. 168 // value.
168 int target_page_action_count_; 169 int target_page_action_count_;
169 170
170 // When waiting for visible page action count to change, we wait until it 171 // When waiting for visible page action count to change, we wait until it
171 // reaches this value. 172 // reaches this value.
172 int target_visible_page_action_count_; 173 int target_visible_page_action_count_;
173 }; 174 };
174 175
175 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ 176 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_apitest.cc ('k') | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698