| 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/web_test_proxy.h" | 5 #include "components/test_runner/web_test_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <cctype> | 10 #include <cctype> |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 void WebTestProxyBase::DidFinishLoad(blink::WebLocalFrame* frame) { | 1025 void WebTestProxyBase::DidFinishLoad(blink::WebLocalFrame* frame) { |
| 1026 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) { | 1026 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) { |
| 1027 PrintFrameDescription(delegate_, frame); | 1027 PrintFrameDescription(delegate_, frame); |
| 1028 delegate_->PrintMessage(" - didFinishLoadForFrame\n"); | 1028 delegate_->PrintMessage(" - didFinishLoadForFrame\n"); |
| 1029 } | 1029 } |
| 1030 CheckDone(frame, LoadFinished); | 1030 CheckDone(frame, LoadFinished); |
| 1031 } | 1031 } |
| 1032 | 1032 |
| 1033 void WebTestProxyBase::DidStopLoading(blink::WebLocalFrame* frame) { |
| 1034 CheckDone(frame, LoadFinished); |
| 1035 } |
| 1036 |
| 1033 void WebTestProxyBase::DidDetectXSS(const blink::WebURL& insecure_url, | 1037 void WebTestProxyBase::DidDetectXSS(const blink::WebURL& insecure_url, |
| 1034 bool did_block_entire_page) { | 1038 bool did_block_entire_page) { |
| 1035 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) | 1039 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) |
| 1036 delegate_->PrintMessage("didDetectXSS\n"); | 1040 delegate_->PrintMessage("didDetectXSS\n"); |
| 1037 } | 1041 } |
| 1038 | 1042 |
| 1039 void WebTestProxyBase::DidDispatchPingLoader(blink::WebLocalFrame* frame, | 1043 void WebTestProxyBase::DidDispatchPingLoader(blink::WebLocalFrame* frame, |
| 1040 const blink::WebURL& url) { | 1044 const blink::WebURL& url) { |
| 1041 if (test_interfaces_->GetTestRunner()->shouldDumpPingLoaderCallbacks()) | 1045 if (test_interfaces_->GetTestRunner()->shouldDumpPingLoaderCallbacks()) |
| 1042 delegate_->PrintMessage(std::string("PingLoader dispatched to '") + | 1046 delegate_->PrintMessage(std::string("PingLoader dispatched to '") + |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1302 callback->onError(blink::WebSetSinkIdError::NotAuthorized); | 1306 callback->onError(blink::WebSetSinkIdError::NotAuthorized); |
| 1303 else | 1307 else |
| 1304 callback->onError(blink::WebSetSinkIdError::NotFound); | 1308 callback->onError(blink::WebSetSinkIdError::NotFound); |
| 1305 } | 1309 } |
| 1306 | 1310 |
| 1307 blink::WebString WebTestProxyBase::acceptLanguages() { | 1311 blink::WebString WebTestProxyBase::acceptLanguages() { |
| 1308 return blink::WebString::fromUTF8(accept_languages_); | 1312 return blink::WebString::fromUTF8(accept_languages_); |
| 1309 } | 1313 } |
| 1310 | 1314 |
| 1311 } // namespace test_runner | 1315 } // namespace test_runner |
| OLD | NEW |