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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_test_util.cc

Issue 2755093002: predictors: Mark before_first_contentful_paint for resources fetched before fcp. (Closed)
Patch Set: before_first_contentful_paint browser_test 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: chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc b/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
index a6d10b9dc9499540392542072c4544d62671ff9c..c7098c0e6d2f95bdf5e7827fd9da43c71022eb58 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
@@ -230,9 +230,10 @@ std::ostream& operator<<(std::ostream& os, const PageRequestSummary& summary) {
std::ostream& operator<<(std::ostream& os, const URLRequestSummary& summary) {
return os << "[" << summary.navigation_id << "," << summary.resource_url
<< "," << summary.resource_type << "," << summary.priority << ","
- << summary.mime_type << "," << summary.was_cached << ","
- << summary.redirect_url << "," << summary.has_validators << ","
- << summary.always_revalidate << "]";
+ << summary.before_first_contentful_paint << "," << summary.mime_type
+ << "," << summary.was_cached << "," << summary.redirect_url << ","
+ << summary.has_validators << "," << summary.always_revalidate
+ << "]";
}
std::ostream& operator<<(std::ostream& os, const NavigationID& navigation_id) {
@@ -295,6 +296,8 @@ bool operator==(const URLRequestSummary& lhs, const URLRequestSummary& rhs) {
lhs.resource_url == rhs.resource_url &&
lhs.resource_type == rhs.resource_type &&
lhs.priority == rhs.priority && lhs.mime_type == rhs.mime_type &&
+ lhs.before_first_contentful_paint ==
+ rhs.before_first_contentful_paint &&
lhs.was_cached == rhs.was_cached &&
lhs.redirect_url == rhs.redirect_url &&
lhs.has_validators == rhs.has_validators &&

Powered by Google App Engine
This is Rietveld 408576698