Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: components/test_runner/web_test_proxy.cc

Issue 1823863002: Simplify parsing/loading state, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698