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

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

Issue 9837045: Expand usage of platform-apps flag and permission features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 8 years, 9 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // install happened before timeout. 114 // install happened before timeout.
115 bool WaitForExtensionInstall(); 115 bool WaitForExtensionInstall();
116 116
117 // Wait for an extension install error to be raised. Returns true if an 117 // Wait for an extension install error to be raised. Returns true if an
118 // error was raised. 118 // error was raised.
119 bool WaitForExtensionInstallError(); 119 bool WaitForExtensionInstallError();
120 120
121 // Waits until an extension is loaded. 121 // Waits until an extension is loaded.
122 void WaitForExtensionLoad(); 122 void WaitForExtensionLoad();
123 123
124 // Waits for an extension load error. Returns true if the error really
125 // happened.
126 bool WaitForExtensionLoadError();
127
124 // Wait for the specified extension to crash. Returns true if it really 128 // Wait for the specified extension to crash. Returns true if it really
125 // crashed. 129 // crashed.
126 bool WaitForExtensionCrash(const std::string& extension_id); 130 bool WaitForExtensionCrash(const std::string& extension_id);
127 131
128 // content::NotificationObserver 132 // content::NotificationObserver
129 virtual void Observe(int type, 133 virtual void Observe(int type,
130 const content::NotificationSource& source, 134 const content::NotificationSource& source,
131 const content::NotificationDetails& details) OVERRIDE; 135 const content::NotificationDetails& details) OVERRIDE;
132 136
133 bool loaded_; 137 bool loaded_;
134 bool installed_; 138 bool installed_;
135 139
136 // test_data/extensions. 140 // test_data/extensions.
137 FilePath test_data_dir_; 141 FilePath test_data_dir_;
138 std::string last_loaded_extension_id_; 142 std::string last_loaded_extension_id_;
139 int extension_installs_observed_; 143 int extension_installs_observed_;
144 int extension_load_errors_observed_;
140 145
141 private: 146 private:
142 // Temporary directory for testing. 147 // Temporary directory for testing.
143 ScopedTempDir temp_dir_; 148 ScopedTempDir temp_dir_;
144 149
145 // Specifies the type of UI (if any) to show during installation and what 150 // Specifies the type of UI (if any) to show during installation and what
146 // user action to simulate. 151 // user action to simulate.
147 enum InstallUIType { 152 enum InstallUIType {
148 INSTALL_UI_TYPE_NONE, 153 INSTALL_UI_TYPE_NONE,
149 INSTALL_UI_TYPE_CANCEL, 154 INSTALL_UI_TYPE_CANCEL,
(...skipping 17 matching lines...) Expand all
167 // When waiting for page action count to change, we wait until it reaches this 172 // When waiting for page action count to change, we wait until it reaches this
168 // value. 173 // value.
169 int target_page_action_count_; 174 int target_page_action_count_;
170 175
171 // When waiting for visible page action count to change, we wait until it 176 // When waiting for visible page action count to change, we wait until it
172 // reaches this value. 177 // reaches this value.
173 int target_visible_page_action_count_; 178 int target_visible_page_action_count_;
174 }; 179 };
175 180
176 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ 181 #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