| OLD | NEW |
| 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 #include "content/shell/test_runner/web_test_interfaces.h" | 5 #include "content/shell/test_runner/web_test_interfaces.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "content/shell/test_runner/mock_web_audio_device.h" | 10 #include "content/shell/test_runner/mock_web_audio_device.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 void WebTestInterfaces::SetDelegate(WebTestDelegate* delegate) { | 34 void WebTestInterfaces::SetDelegate(WebTestDelegate* delegate) { |
| 35 interfaces_->SetDelegate(delegate); | 35 interfaces_->SetDelegate(delegate); |
| 36 } | 36 } |
| 37 | 37 |
| 38 void WebTestInterfaces::ResetAll() { | 38 void WebTestInterfaces::ResetAll() { |
| 39 interfaces_->ResetAll(); | 39 interfaces_->ResetAll(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 bool WebTestInterfaces::TestIsRunning() { |
| 43 return interfaces_->TestIsRunning(); |
| 44 } |
| 45 |
| 42 void WebTestInterfaces::SetTestIsRunning(bool running) { | 46 void WebTestInterfaces::SetTestIsRunning(bool running) { |
| 43 interfaces_->SetTestIsRunning(running); | 47 interfaces_->SetTestIsRunning(running); |
| 44 } | 48 } |
| 45 | 49 |
| 46 void WebTestInterfaces::ConfigureForTestWithURL(const WebURL& test_url, | 50 void WebTestInterfaces::ConfigureForTestWithURL(const WebURL& test_url, |
| 47 bool generate_pixels) { | 51 bool generate_pixels) { |
| 48 interfaces_->ConfigureForTestWithURL(test_url, generate_pixels); | 52 interfaces_->ConfigureForTestWithURL(test_url, generate_pixels); |
| 49 } | 53 } |
| 50 | 54 |
| 51 WebTestRunner* WebTestInterfaces::TestRunner() { | 55 WebTestRunner* WebTestInterfaces::TestRunner() { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 107 } |
| 104 | 108 |
| 105 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() { | 109 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() { |
| 106 std::vector<blink::WebView*> result; | 110 std::vector<blink::WebView*> result; |
| 107 for (WebViewTestProxyBase* proxy : interfaces_->GetWindowList()) | 111 for (WebViewTestProxyBase* proxy : interfaces_->GetWindowList()) |
| 108 result.push_back(proxy->web_view()); | 112 result.push_back(proxy->web_view()); |
| 109 return result; | 113 return result; |
| 110 } | 114 } |
| 111 | 115 |
| 112 } // namespace test_runner | 116 } // namespace test_runner |
| OLD | NEW |