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

Side by Side Diff: components/test_runner/test_interfaces.cc

Issue 2406363005: test_runner: Suppress validation messages on WPTServe too. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | third_party/WebKit/LayoutTests/WPTServeExpectations » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/test_runner/test_interfaces.h" 5 #include "components/test_runner/test_interfaces.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 std::string settings_string; 106 std::string settings_string;
107 base::JSONWriter::Write(settings, &settings_string); 107 base::JSONWriter::Write(settings, &settings_string);
108 test_runner_->ShowDevTools(settings_string, std::string()); 108 test_runner_->ShowDevTools(settings_string, std::string());
109 } 109 }
110 if (spec.find("/viewsource/") != std::string::npos) { 110 if (spec.find("/viewsource/") != std::string::npos) {
111 test_runner_->setShouldEnableViewSource(true); 111 test_runner_->setShouldEnableViewSource(true);
112 test_runner_->setShouldGeneratePixelResults(false); 112 test_runner_->setShouldGeneratePixelResults(false);
113 test_runner_->setShouldDumpAsMarkup(true); 113 test_runner_->setShouldDumpAsMarkup(true);
114 } 114 }
115 if (spec.find("/imported/wpt/") != std::string::npos || 115 if (spec.find("/imported/wpt/") != std::string::npos ||
116 spec.find("/imported/csswg-test/") != std::string::npos) 116 spec.find("/imported/csswg-test/") != std::string::npos ||
117 spec.find("://web-platform.test") != std::string::npos)
117 test_runner_->set_is_web_platform_tests_mode(); 118 test_runner_->set_is_web_platform_tests_mode();
118 } 119 }
119 120
120 void TestInterfaces::SetAppBannerClient(AppBannerClient* app_banner_client) { 121 void TestInterfaces::SetAppBannerClient(AppBannerClient* app_banner_client) {
121 app_banner_client_ = app_banner_client; 122 app_banner_client_ = app_banner_client;
122 } 123 }
123 124
124 void TestInterfaces::WindowOpened(WebViewTestProxyBase* proxy) { 125 void TestInterfaces::WindowOpened(WebViewTestProxyBase* proxy) {
125 window_list_.push_back(proxy); 126 window_list_.push_back(proxy);
126 } 127 }
(...skipping 29 matching lines...) Expand all
156 if (!theme_engine_.get()) 157 if (!theme_engine_.get())
157 theme_engine_.reset(new MockWebThemeEngine()); 158 theme_engine_.reset(new MockWebThemeEngine());
158 return theme_engine_.get(); 159 return theme_engine_.get();
159 } 160 }
160 161
161 AppBannerClient* TestInterfaces::GetAppBannerClient() { 162 AppBannerClient* TestInterfaces::GetAppBannerClient() {
162 return app_banner_client_; 163 return app_banner_client_;
163 } 164 }
164 165
165 } // namespace test_runner 166 } // namespace test_runner
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/WPTServeExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698