OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |