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

Unified Diff: content/test/test_navigation_url_loader_delegate.cc

Issue 2813243002: network service: pass PlzNavigate resulting data via mojo data pipe (Closed)
Patch Set: . Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/test/test_navigation_url_loader_delegate.cc
diff --git a/content/test/test_navigation_url_loader_delegate.cc b/content/test/test_navigation_url_loader_delegate.cc
index 443749b0cf458893fea085c145f43cf80301c773..1d74335d6ce65b349213d108052993cf5c15bb20 100644
--- a/content/test/test_navigation_url_loader_delegate.cc
+++ b/content/test/test_navigation_url_loader_delegate.cc
@@ -44,6 +44,7 @@ void TestNavigationURLLoaderDelegate::WaitForRequestStarted() {
void TestNavigationURLLoaderDelegate::ReleaseBody() {
body_.reset();
+ handle_.reset();
}
void TestNavigationURLLoaderDelegate::OnRequestRedirected(
@@ -58,6 +59,7 @@ void TestNavigationURLLoaderDelegate::OnRequestRedirected(
void TestNavigationURLLoaderDelegate::OnResponseStarted(
const scoped_refptr<ResourceResponse>& response,
std::unique_ptr<StreamHandle> body,
+ mojo::ScopedDataPipeConsumerHandle consumer_handle,
const SSLStatus& ssl_status,
std::unique_ptr<NavigationData> navigation_data,
const GlobalRequestID& request_id,
@@ -65,6 +67,7 @@ void TestNavigationURLLoaderDelegate::OnResponseStarted(
bool is_stream) {
response_ = response;
body_ = std::move(body);
+ handle_ = std::move(consumer_handle);
if (response_started_)
response_started_->Quit();
}

Powered by Google App Engine
This is Rietveld 408576698