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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
957 PrintFrameDescription(delegate_, frame); | 957 PrintFrameDescription(delegate_, frame); |
958 delegate_->PrintMessage( | 958 delegate_->PrintMessage( |
959 " - didReceiveServerRedirectForProvisionalLoadForFrame\n"); | 959 " - didReceiveServerRedirectForProvisionalLoadForFrame\n"); |
960 } | 960 } |
961 } | 961 } |
962 | 962 |
963 bool WebTestProxyBase::DidFailProvisionalLoad( | 963 bool WebTestProxyBase::DidFailProvisionalLoad( |
964 blink::WebLocalFrame* frame, | 964 blink::WebLocalFrame* frame, |
965 const blink::WebURLError& error, | 965 const blink::WebURLError& error, |
966 blink::WebHistoryCommitType commit_type) { | 966 blink::WebHistoryCommitType commit_type) { |
967 DCHECK(frame->provisionalDataSource()); | |
Nate Chapin
2016/03/22 16:42:43
Apparently the "return !frame->provisionalDataSour
| |
967 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) { | 968 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) { |
968 PrintFrameDescription(delegate_, frame); | 969 PrintFrameDescription(delegate_, frame); |
969 delegate_->PrintMessage(" - didFailProvisionalLoadWithError\n"); | 970 delegate_->PrintMessage(" - didFailProvisionalLoadWithError\n"); |
970 } | 971 } |
971 CheckDone(frame, MainResourceLoadFailed); | 972 CheckDone(frame, MainResourceLoadFailed); |
972 return !frame->provisionalDataSource(); | 973 return !frame->provisionalDataSource(); |
973 } | 974 } |
974 | 975 |
975 void WebTestProxyBase::DidCommitProvisionalLoad( | 976 void WebTestProxyBase::DidCommitProvisionalLoad( |
976 blink::WebLocalFrame* frame, | 977 blink::WebLocalFrame* frame, |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1305 callback->onError(blink::WebSetSinkIdError::NotAuthorized); | 1306 callback->onError(blink::WebSetSinkIdError::NotAuthorized); |
1306 else | 1307 else |
1307 callback->onError(blink::WebSetSinkIdError::NotFound); | 1308 callback->onError(blink::WebSetSinkIdError::NotFound); |
1308 } | 1309 } |
1309 | 1310 |
1310 blink::WebString WebTestProxyBase::acceptLanguages() { | 1311 blink::WebString WebTestProxyBase::acceptLanguages() { |
1311 return blink::WebString::fromUTF8(accept_languages_); | 1312 return blink::WebString::fromUTF8(accept_languages_); |
1312 } | 1313 } |
1313 | 1314 |
1314 } // namespace test_runner | 1315 } // namespace test_runner |
OLD | NEW |