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

Unified Diff: components/domain_reliability/monitor_unittest.cc

Issue 2421383003: Add operator==(const GURL&, const StringPiece&) to gurl.h (Closed)
Patch Set: remove comment 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: components/domain_reliability/monitor_unittest.cc
diff --git a/components/domain_reliability/monitor_unittest.cc b/components/domain_reliability/monitor_unittest.cc
index b5c928c392c17961781b5e387db71ed3f655f41a..6b75144b4c43c400109e647c5d68501d88bbf8db 100644
--- a/components/domain_reliability/monitor_unittest.cc
+++ b/components/domain_reliability/monitor_unittest.cc
@@ -326,7 +326,8 @@ TEST_F(DomainReliabilityMonitorTest, ClearBeaconsWithFilter) {
// Delete the beacons for |origin1|.
monitor_.ClearBrowsingData(
CLEAR_BEACONS,
- base::Bind(&GURL::operator==, base::Unretained(&origin1)));
+ base::Bind(static_cast<bool (*)(const GURL&, const GURL&)>(operator==),
+ origin1));
// Beacons for |context1| were cleared. Beacons for |context2| and
// the contexts themselves were not.
@@ -360,7 +361,8 @@ TEST_F(DomainReliabilityMonitorTest, ClearContextsWithFilter) {
// Delete the contexts for |origin1|.
monitor_.ClearBrowsingData(
CLEAR_CONTEXTS,
- base::Bind(&GURL::operator==, base::Unretained(&origin1)));
+ base::Bind(static_cast<bool (*)(const GURL&, const GURL&)>(operator==),
+ origin1));
// Only one of the contexts should have been deleted.
EXPECT_EQ(1u, monitor_.contexts_size_for_testing());

Powered by Google App Engine
This is Rietveld 408576698