| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/html_viewer/web_test_delegate_impl.h" | 5 #include "components/html_viewer/web_test_delegate_impl.h" |
| 6 | 6 |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 #include "cc/layers/texture_layer.h" | 8 #include "cc/layers/texture_layer.h" |
| 9 #include "components/test_runner/web_task.h" | 9 #include "components/test_runner/web_task.h" |
| 10 #include "components/test_runner/web_test_interfaces.h" | 10 #include "components/test_runner/web_test_interfaces.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 NOTIMPLEMENTED(); | 221 NOTIMPLEMENTED(); |
| 222 return std::string(); | 222 return std::string(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 void WebTestDelegateImpl::SetLocale(const std::string& locale) { | 225 void WebTestDelegateImpl::SetLocale(const std::string& locale) { |
| 226 NOTIMPLEMENTED(); | 226 NOTIMPLEMENTED(); |
| 227 } | 227 } |
| 228 | 228 |
| 229 void WebTestDelegateImpl::TestFinished() { | 229 void WebTestDelegateImpl::TestFinished() { |
| 230 test_interfaces_->SetTestIsRunning(false); | 230 test_interfaces_->SetTestIsRunning(false); |
| 231 fprintf(stderr, "%s", proxy_->CaptureTree(false, false).c_str()); | 231 fprintf(stderr, "%s", proxy_ ? proxy_->CaptureTree(false, false).c_str() |
| 232 : dump_tree_.c_str()); |
| 232 } | 233 } |
| 233 | 234 |
| 234 void WebTestDelegateImpl::CloseRemainingWindows() { | 235 void WebTestDelegateImpl::CloseRemainingWindows() { |
| 235 NOTIMPLEMENTED(); | 236 NOTIMPLEMENTED(); |
| 236 } | 237 } |
| 237 | 238 |
| 238 void WebTestDelegateImpl::DeleteAllCookies() { | 239 void WebTestDelegateImpl::DeleteAllCookies() { |
| 239 NOTIMPLEMENTED(); | 240 NOTIMPLEMENTED(); |
| 240 } | 241 } |
| 241 | 242 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 NOTIMPLEMENTED(); | 318 NOTIMPLEMENTED(); |
| 318 } | 319 } |
| 319 | 320 |
| 320 blink::WebPlugin* WebTestDelegateImpl::CreatePluginPlaceholder( | 321 blink::WebPlugin* WebTestDelegateImpl::CreatePluginPlaceholder( |
| 321 blink::WebLocalFrame* frame, | 322 blink::WebLocalFrame* frame, |
| 322 const blink::WebPluginParams& params) { | 323 const blink::WebPluginParams& params) { |
| 323 NOTIMPLEMENTED(); | 324 NOTIMPLEMENTED(); |
| 324 return nullptr; | 325 return nullptr; |
| 325 } | 326 } |
| 326 | 327 |
| 328 void WebTestDelegateImpl::OnWebTestProxyBaseDestroy( |
| 329 test_runner::WebTestProxyBase* base) { |
| 330 DCHECK_EQ(proxy_, base); |
| 331 dump_tree_ = proxy_->CaptureTree(false, false); |
| 332 proxy_ = nullptr; |
| 333 } |
| 334 |
| 327 } // namespace html_viewer | 335 } // namespace html_viewer |
| OLD | NEW |