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

Side by Side Diff: components/test_runner/web_test_delegate.h

Issue 1325953002: Add functions to let tests read and control the Bluetooth chooser state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Add a forgotten semicolon. :-/ Created 5 years, 3 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
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | content/content_shell.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 // Controls the device scale factor of the main WebView for hidpi tests. 155 // Controls the device scale factor of the main WebView for hidpi tests.
156 virtual void SetDeviceScaleFactor(float factor) = 0; 156 virtual void SetDeviceScaleFactor(float factor) = 0;
157 157
158 // Change the device color profile while running a layout test. 158 // Change the device color profile while running a layout test.
159 virtual void SetDeviceColorProfile(const std::string& name) = 0; 159 virtual void SetDeviceColorProfile(const std::string& name) = 0;
160 160
161 // Change the bluetooth test data while running a layout test. 161 // Change the bluetooth test data while running a layout test.
162 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; 162 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0;
163 163
164 // Makes the Bluetooth chooser record its input and wait for instructions from
165 // the test program on how to proceed.
166 virtual void SetBluetoothManualChooser() = 0;
167
168 // Returns the events recorded since the last call to this function.
169 virtual std::vector<std::string> GetBluetoothManualChooserEvents() = 0;
170
171 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid
172 // event strings are:
173 // * "cancel" - simulates the user canceling the chooser.
174 // * "select" - simulates the user selecting a device whose device ID is in
175 // |argument|.
176 virtual void SendBluetoothManualChooserEvent(const std::string& event,
177 const std::string& argument) = 0;
178
164 // Enables mock geofencing service while running a layout test. 179 // Enables mock geofencing service while running a layout test.
165 // |service_available| indicates if the mock service should mock geofencing 180 // |service_available| indicates if the mock service should mock geofencing
166 // being available or not. 181 // being available or not.
167 virtual void SetGeofencingMockProvider(bool service_available) = 0; 182 virtual void SetGeofencingMockProvider(bool service_available) = 0;
168 183
169 // Disables mock geofencing service while running a layout test. 184 // Disables mock geofencing service while running a layout test.
170 virtual void ClearGeofencingMockProvider() = 0; 185 virtual void ClearGeofencingMockProvider() = 0;
171 186
172 // Set the mock geofencing position while running a layout test. 187 // Set the mock geofencing position while running a layout test.
173 virtual void SetGeofencingMockPosition(double latitude, double longitude) = 0; 188 virtual void SetGeofencingMockPosition(double latitude, double longitude) = 0;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 virtual blink::WebPlugin* CreatePluginPlaceholder( 265 virtual blink::WebPlugin* CreatePluginPlaceholder(
251 blink::WebLocalFrame* frame, 266 blink::WebLocalFrame* frame,
252 const blink::WebPluginParams& params) = 0; 267 const blink::WebPluginParams& params) = 0;
253 268
254 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; 269 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0;
255 }; 270 };
256 271
257 } // namespace test_runner 272 } // namespace test_runner
258 273
259 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 274 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | content/content_shell.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698