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

Side by Side Diff: content/shell/renderer/test_runner/web_test_delegate.h

Issue 701953007: Expose mock geofencing service via testRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mention unifying bug in a comment Created 6 years 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 | « content/shell/renderer/test_runner/test_runner.cc ('k') | content/test/layouttest_support.cc » ('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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 // Controls the device scale factor of the main WebView for hidpi tests. 147 // Controls the device scale factor of the main WebView for hidpi tests.
148 virtual void SetDeviceScaleFactor(float factor) = 0; 148 virtual void SetDeviceScaleFactor(float factor) = 0;
149 149
150 // Change the device color profile while running a layout test. 150 // Change the device color profile while running a layout test.
151 virtual void SetDeviceColorProfile(const std::string& name) = 0; 151 virtual void SetDeviceColorProfile(const std::string& name) = 0;
152 152
153 // Change the bluetooth test data while running a layout test. 153 // Change the bluetooth test data while running a layout test.
154 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; 154 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0;
155 155
156 // Enables mock geofencing service while running a layout test.
157 // |service_available| indicates if the mock service should mock geofencing
158 // being available or not.
159 virtual void SetGeofencingMockProvider(bool service_available) = 0;
160
161 // Disables mock geofencing service while running a layout test.
162 virtual void ClearGeofencingMockProvider() = 0;
163
164 // Set the mock geofencing position while running a layout test.
165 virtual void SetGeofencingMockPosition(double latitude, double longitude) = 0;
166
156 // Controls which WebView should be focused. 167 // Controls which WebView should be focused.
157 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0; 168 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0;
158 169
159 // Controls whether all cookies should be accepted or writing cookies in a 170 // Controls whether all cookies should be accepted or writing cookies in a
160 // third-party context is blocked. 171 // third-party context is blocked.
161 virtual void SetAcceptAllCookies(bool accept) = 0; 172 virtual void SetAcceptAllCookies(bool accept) = 0;
162 173
163 // The same as RewriteLayoutTestsURL unless the resource is a path starting 174 // The same as RewriteLayoutTestsURL unless the resource is a path starting
164 // with /tmp/, then return a file URL to a temporary file. 175 // with /tmp/, then return a file URL to a temporary file.
165 virtual std::string PathToLocalResource(const std::string& resource) = 0; 176 virtual std::string PathToLocalResource(const std::string& resource) = 0;
(...skipping 22 matching lines...) Expand all
188 virtual bool AllowExternalPages() = 0; 199 virtual bool AllowExternalPages() = 0;
189 200
190 // Returns a text dump the back/forward history for the WebView associated 201 // Returns a text dump the back/forward history for the WebView associated
191 // with the given WebTestProxyBase. 202 // with the given WebTestProxyBase.
192 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; 203 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0;
193 }; 204 };
194 205
195 } // namespace content 206 } // namespace content
196 207
197 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 208 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698