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

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

Issue 702593002: bluetooth: Initial simple mock content::WebBluetoothImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ Created 6 years, 1 month 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 bool permission_granted) = 0; 142 bool permission_granted) = 0;
143 virtual void ClearWebNotificationPermissions() = 0; 143 virtual void ClearWebNotificationPermissions() = 0;
144 virtual void SimulateWebNotificationClick(const std::string& title) = 0; 144 virtual void SimulateWebNotificationClick(const std::string& title) = 0;
145 145
146 // Controls the device scale factor of the main WebView for hidpi tests. 146 // Controls the device scale factor of the main WebView for hidpi tests.
147 virtual void SetDeviceScaleFactor(float factor) = 0; 147 virtual void SetDeviceScaleFactor(float factor) = 0;
148 148
149 // Change the device color profile while running a layout test. 149 // Change the device color profile while running a layout test.
150 virtual void SetDeviceColorProfile(const std::string& name) = 0; 150 virtual void SetDeviceColorProfile(const std::string& name) = 0;
151 151
152 // Change the bluetooth test data while running a layout test.
153 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0;
154
152 // Controls which WebView should be focused. 155 // Controls which WebView should be focused.
153 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0; 156 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0;
154 157
155 // Controls whether all cookies should be accepted or writing cookies in a 158 // Controls whether all cookies should be accepted or writing cookies in a
156 // third-party context is blocked. 159 // third-party context is blocked.
157 virtual void SetAcceptAllCookies(bool accept) = 0; 160 virtual void SetAcceptAllCookies(bool accept) = 0;
158 161
159 // The same as RewriteLayoutTestsURL unless the resource is a path starting 162 // The same as RewriteLayoutTestsURL unless the resource is a path starting
160 // with /tmp/, then return a file URL to a temporary file. 163 // with /tmp/, then return a file URL to a temporary file.
161 virtual std::string PathToLocalResource(const std::string& resource) = 0; 164 virtual std::string PathToLocalResource(const std::string& resource) = 0;
(...skipping 22 matching lines...) Expand all
184 virtual bool AllowExternalPages() = 0; 187 virtual bool AllowExternalPages() = 0;
185 188
186 // Returns a text dump the back/forward history for the WebView associated 189 // Returns a text dump the back/forward history for the WebView associated
187 // with the given WebTestProxyBase. 190 // with the given WebTestProxyBase.
188 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; 191 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0;
189 }; 192 };
190 193
191 } // namespace content 194 } // namespace content
192 195
193 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 196 #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