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

Unified Diff: components/safe_browsing_db/testing_util.h

Issue 2233103002: Move full hash caching logic to v4_get_hash_protocol_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unique_ptr for V4GetHasProtocolManager. Fix the lone failing unit test. Created 4 years, 3 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/safe_browsing_db/testing_util.h
diff --git a/components/safe_browsing_db/testing_util.h b/components/safe_browsing_db/testing_util.h
index 76b319464c4a96b8a199bad1c783b6915a69e5da..fc32a9d4e72eaf1cf0c61affdff827938de689af 100644
--- a/components/safe_browsing_db/testing_util.h
+++ b/components/safe_browsing_db/testing_util.h
@@ -13,16 +13,6 @@
namespace safe_browsing {
-inline bool operator==(const ThreatMetadata& lhs, const ThreatMetadata& rhs) {
- return lhs.threat_pattern_type == rhs.threat_pattern_type &&
- lhs.api_permissions == rhs.api_permissions &&
- lhs.population_id == rhs.population_id;
-}
-
-inline bool operator!=(const ThreatMetadata& lhs, const ThreatMetadata& rhs) {
- return !(lhs == rhs);
-}
-
inline std::ostream& operator<<(std::ostream& os, const ThreatMetadata& meta) {
os << "{threat_pattern_type=" << static_cast<int>(meta.threat_pattern_type)
<< ", api_permissions=[";

Powered by Google App Engine
This is Rietveld 408576698