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

Unified Diff: content/test/test_navigation_url_loader_delegate.cc

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, Tests, Ready for Review Created 4 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 237b4145550e6e220b1bc6ef8089f15ba6024162..464f185fb0ed01012514ca973933e8187050ab11 100644
--- a/content/test/test_navigation_url_loader_delegate.cc
+++ b/content/test/test_navigation_url_loader_delegate.cc
@@ -48,21 +48,22 @@ void TestNavigationURLLoaderDelegate::OnRequestRedirected(
const net::RedirectInfo& redirect_info,
const scoped_refptr<ResourceResponse>& response) {
redirect_info_ = redirect_info;
redirect_response_ = response;
ASSERT_TRUE(request_redirected_);
request_redirected_->Quit();
}
void TestNavigationURLLoaderDelegate::OnResponseStarted(
const scoped_refptr<ResourceResponse>& response,
- scoped_ptr<StreamHandle> body) {
+ scoped_ptr<StreamHandle> body,
+ std::unique_ptr<NavigationData> navigation_data) {
response_ = response;
body_ = std::move(body);
ASSERT_TRUE(response_started_);
response_started_->Quit();
}
void TestNavigationURLLoaderDelegate::OnRequestFailed(bool in_cache,
int net_error) {
net_error_ = net_error;
if (request_failed_)

Powered by Google App Engine
This is Rietveld 408576698