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

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

Issue 2418413003: predictors: Replace deprecated TestBrowserThread by TestBrowserThreadBundle (Closed)
Patch Set: Created 4 years, 2 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.h
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_test_util.h b/chrome/browser/predictors/resource_prefetch_predictor_test_util.h
index a86beb9bb97f4fc701ba40cb0196feccebb31221..daa3bd397f27125b1c077832b9c904dca48b441e 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_test_util.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor_test_util.h
@@ -33,10 +33,10 @@ RedirectData CreateRedirectData(const std::string& primary_key,
uint64_t last_visit_time = 0);
// For printing failures nicely.
-void PrintTo(const PrefetchData& data, ::std::ostream* os);
-void PrintTo(const ResourceData& resource, ::std::ostream* os);
-void PrintTo(const RedirectData& data, ::std::ostream* os);
-void PrintTo(const RedirectStat& redirect, ::std::ostream* os);
+std::ostream& operator<<(std::ostream& stream, const PrefetchData& data);
pasko 2016/10/17 14:46:42 that's neat, I did not know it was possible to use
alexilin 2016/10/17 15:32:35 Yeah, I think that it makes sense to use PrintTo o
+std::ostream& operator<<(std::ostream& stream, const ResourceData& resource);
+std::ostream& operator<<(std::ostream& stream, const RedirectData& data);
+std::ostream& operator<<(std::ostream& stream, const RedirectStat& redirect);
bool operator==(const PrefetchData& lhs, const PrefetchData& rhs);
bool operator==(const ResourceData& lhs, const ResourceData& rhs);

Powered by Google App Engine
This is Rietveld 408576698