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

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

Issue 11150002: New post-sideload UI: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: !!! Created 8 years, 2 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 | Annotate | Revision Log
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/scoped_temp_dir.h" 13 #include "base/scoped_temp_dir.h"
14 #include "chrome/browser/extensions/extension_host.h" 14 #include "chrome/browser/extensions/extension_host.h"
15 #include "chrome/common/extensions/extension.h" 15 #include "chrome/common/extensions/extension.h"
16 #include "chrome/common/extensions/features/feature.h" 16 #include "chrome/common/extensions/features/feature.h"
17 #include "chrome/common/extensions/feature_switch.h"
17 #include "chrome/test/base/in_process_browser_test.h" 18 #include "chrome/test/base/in_process_browser_test.h"
18 #include "content/public/browser/notification_details.h" 19 #include "content/public/browser/notification_details.h"
19 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_types.h" 21 #include "content/public/browser/notification_types.h"
21 #include "content/public/browser/web_contents.h" 22 #include "content/public/browser/web_contents.h"
22 23
23 // Base class for extension browser tests. Provides utilities for loading, 24 // Base class for extension browser tests. Provides utilities for loading,
24 // unloading, and installing extensions. 25 // unloading, and installing extensions.
25 class ExtensionBrowserTest : virtual public InProcessBrowserTest, 26 class ExtensionBrowserTest : virtual public InProcessBrowserTest,
26 public content::NotificationObserver { 27 public content::NotificationObserver {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // When waiting for page action count to change, we wait until it reaches this 243 // When waiting for page action count to change, we wait until it reaches this
243 // value. 244 // value.
244 int target_page_action_count_; 245 int target_page_action_count_;
245 246
246 // When waiting for visible page action count to change, we wait until it 247 // When waiting for visible page action count to change, we wait until it
247 // reaches this value. 248 // reaches this value.
248 int target_visible_page_action_count_; 249 int target_visible_page_action_count_;
249 250
250 // Make the current channel "dev" for the duration of the test. 251 // Make the current channel "dev" for the duration of the test.
251 extensions::Feature::ScopedCurrentChannel current_channel_; 252 extensions::Feature::ScopedCurrentChannel current_channel_;
253
254 // Disable external install UI.
255 extensions::FeatureSwitch::ScopedOverride
256 override_prompt_for_external_extensions_;
252 }; 257 };
253 258
254 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ 259 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698