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

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

Issue 1736353002: ABANDONED CL: Shared-memory-based approach to layout tests runtime flags replication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 | « components/test_runner/layout_dump_flags.h ('k') | components/test_runner/test_runner.h » ('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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 accessibility_controller_->Reset(); 89 accessibility_controller_->Reset();
90 event_sender_->Reset(); 90 event_sender_->Reset();
91 if (gamepad_controller_) 91 if (gamepad_controller_)
92 gamepad_controller_->Reset(); 92 gamepad_controller_->Reset();
93 // text_input_controller_ doesn't have any state to reset. 93 // text_input_controller_ doesn't have any state to reset.
94 blink::WebCache::clear(); 94 blink::WebCache::clear();
95 } 95 }
96 96
97 void TestInterfaces::ResetAll() { 97 void TestInterfaces::ResetAll() {
98 ResetTestHelperControllers(); 98 ResetTestHelperControllers();
99 test_runner_->Reset();
100 } 99 }
101 100
102 void TestInterfaces::SetTestIsRunning(bool running) { 101 void TestInterfaces::SetTestIsRunning(bool running) {
103 test_runner_->SetTestIsRunning(running); 102 test_runner_->SetTestIsRunning(running);
104 } 103 }
105 104
106 void TestInterfaces::ConfigureForTestWithURL(const blink::WebURL& test_url, 105 void TestInterfaces::ConfigureForTestWithURL(const blink::WebURL& test_url,
107 bool generate_pixels) { 106 bool generate_pixels) {
108 std::string spec = GURL(test_url).spec(); 107 std::string spec = GURL(test_url).spec();
109 size_t path_start = spec.rfind("LayoutTests/"); 108 size_t path_start = spec.rfind("LayoutTests/");
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 if (!theme_engine_.get()) 182 if (!theme_engine_.get())
184 theme_engine_.reset(new MockWebThemeEngine()); 183 theme_engine_.reset(new MockWebThemeEngine());
185 return theme_engine_.get(); 184 return theme_engine_.get();
186 } 185 }
187 186
188 AppBannerClient* TestInterfaces::GetAppBannerClient() { 187 AppBannerClient* TestInterfaces::GetAppBannerClient() {
189 return app_banner_client_; 188 return app_banner_client_;
190 } 189 }
191 190
192 } // namespace test_runner 191 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/layout_dump_flags.h ('k') | components/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698