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

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

Issue 2085153002: Adjust test expectations for infinite-size images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small refactor Created 4 years, 6 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
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 int action_index) = 0; 154 int action_index) = 0;
155 virtual void SimulateWebNotificationClose(const std::string& title, 155 virtual void SimulateWebNotificationClose(const std::string& title,
156 bool by_user) = 0; 156 bool by_user) = 0;
157 157
158 // Controls the device scale factor of the main WebView for hidpi tests. 158 // Controls the device scale factor of the main WebView for hidpi tests.
159 virtual void SetDeviceScaleFactor(float factor) = 0; 159 virtual void SetDeviceScaleFactor(float factor) = 0;
160 160
161 // Enable zoom-for-dsf option. 161 // Enable zoom-for-dsf option.
162 virtual void EnableUseZoomForDSF() = 0; 162 virtual void EnableUseZoomForDSF() = 0;
163 163
164 // Returns whether or not the use-zoom-for-dsf flag is enabled.
165 virtual bool IsUseZoomForDSFEnabled() = 0;
166
164 // Change the device color profile while running a layout test. 167 // Change the device color profile while running a layout test.
165 virtual void SetDeviceColorProfile(const std::string& name) = 0; 168 virtual void SetDeviceColorProfile(const std::string& name) = 0;
166 169
167 // Set the bluetooth adapter while running a layout test, uses Mojo to 170 // Set the bluetooth adapter while running a layout test, uses Mojo to
168 // communicate with the browser. 171 // communicate with the browser.
169 virtual void SetBluetoothFakeAdapter(const std::string& adapter_name, 172 virtual void SetBluetoothFakeAdapter(const std::string& adapter_name,
170 const base::Closure& callback) = 0; 173 const base::Closure& callback) = 0;
171 174
172 // If |enable| is true makes the Bluetooth chooser record its input and wait 175 // If |enable| is true makes the Bluetooth chooser record its input and wait
173 // for instructions from the test program on how to proceed. Otherwise 176 // for instructions from the test program on how to proceed. Otherwise
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 269
267 virtual float GetDeviceScaleFactorForTest() const = 0; 270 virtual float GetDeviceScaleFactorForTest() const = 0;
268 271
269 // Run all pending idle tasks, and then run callback. 272 // Run all pending idle tasks, and then run callback.
270 virtual void RunIdleTasks(const base::Closure& callback) = 0; 273 virtual void RunIdleTasks(const base::Closure& callback) = 0;
271 }; 274 };
272 275
273 } // namespace test_runner 276 } // namespace test_runner
274 277
275 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 278 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner_for_specific_view.cc ('k') | content/shell/renderer/layout_test/blink_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698