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

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

Issue 2013203003: content_shell: Update absolute path rewriting logic again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual long long GetCurrentTimeInMillisecond() = 0; 96 virtual long long GetCurrentTimeInMillisecond() = 0;
97 97
98 // Convert the provided relative path into an absolute path. 98 // Convert the provided relative path into an absolute path.
99 virtual blink::WebString GetAbsoluteWebStringFromUTF8Path( 99 virtual blink::WebString GetAbsoluteWebStringFromUTF8Path(
100 const std::string& path) = 0; 100 const std::string& path) = 0;
101 101
102 // Reads in the given file and returns its contents as data URL. 102 // Reads in the given file and returns its contents as data URL.
103 virtual blink::WebURL LocalFileToDataURL(const blink::WebURL& file_url) = 0; 103 virtual blink::WebURL LocalFileToDataURL(const blink::WebURL& file_url) = 0;
104 104
105 // Replaces file:///tmp/LayoutTests/ with the actual path to the 105 // Replaces file:///tmp/LayoutTests/ with the actual path to the
106 // LayoutTests directory. 106 // LayoutTests directory, or rewrite URLs genrated from absolute
kinuko 2016/05/27 03:35:57 nit: genrated -> generated
tkent 2016/05/27 03:43:03 Done.
107 virtual blink::WebURL RewriteLayoutTestsURL(const std::string& utf8_url) = 0; 107 // path links in web-platform-tests.
108 virtual blink::WebURL RewriteLayoutTestsURL(const std::string& utf8_url,
109 bool is_wpt_mode) = 0;
108 110
109 // Manages the settings to used for layout tests. 111 // Manages the settings to used for layout tests.
110 virtual TestPreferences* Preferences() = 0; 112 virtual TestPreferences* Preferences() = 0;
111 virtual void ApplyPreferences() = 0; 113 virtual void ApplyPreferences() = 0;
112 114
113 // Enables or disables synchronous resize mode. When enabled, all 115 // Enables or disables synchronous resize mode. When enabled, all
114 // window-sizing machinery is 116 // window-sizing machinery is
115 // short-circuited inside the renderer. This mode is necessary for some tests 117 // short-circuited inside the renderer. This mode is necessary for some tests
116 // that were written 118 // that were written
117 // before browsers had multi-process architecture and rely on window resizes 119 // before browsers had multi-process architecture and rely on window resizes
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 266
265 virtual float GetDeviceScaleFactorForTest() const = 0; 267 virtual float GetDeviceScaleFactorForTest() const = 0;
266 268
267 // Run all pending idle tasks, and then run callback. 269 // Run all pending idle tasks, and then run callback.
268 virtual void RunIdleTasks(const base::Closure& callback) = 0; 270 virtual void RunIdleTasks(const base::Closure& callback) = 0;
269 }; 271 };
270 272
271 } // namespace test_runner 273 } // namespace test_runner
272 274
273 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 275 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698