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

Unified Diff: chrome/browser/safe_browsing/threat_details_unittest.cc

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)
Patch Set: Fixes Created 3 years, 7 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/safe_browsing/threat_details_unittest.cc
diff --git a/chrome/browser/safe_browsing/threat_details_unittest.cc b/chrome/browser/safe_browsing/threat_details_unittest.cc
index 56b32963a7936ebe7b6d57a45f69cb79ff4169ab..ef7ccaf0c9c5991d958490312e604ebcc24336e6 100644
--- a/chrome/browser/safe_browsing/threat_details_unittest.cc
+++ b/chrome/browser/safe_browsing/threat_details_unittest.cc
@@ -267,7 +267,7 @@ class ThreatDetailsTest : public ChromeRenderViewHostTestHarness {
ASSERT_EQ(expected_pb.resources_size(), report_pb.resources_size());
// Put the actual resources in a map, then iterate over the expected
// resources, making sure each exists and is equal.
- base::hash_map<int, const ClientSafeBrowsingReportRequest::Resource*>
+ std::map<int, const ClientSafeBrowsingReportRequest::Resource*>
actual_resource_map;
for (const ClientSafeBrowsingReportRequest::Resource& resource :
report_pb.resources()) {
@@ -287,7 +287,7 @@ class ThreatDetailsTest : public ChromeRenderViewHostTestHarness {
ASSERT_EQ(expected_pb.dom_size(), report_pb.dom_size());
// Put the actual elements in a map, then iterate over the expected
// elements, making sure each exists and is equal.
- base::hash_map<int, const HTMLElement*> actual_dom_map;
+ std::map<int, const HTMLElement*> actual_dom_map;
for (const HTMLElement& element : report_pb.dom()) {
actual_dom_map[element.id()] = &element;
}
@@ -346,7 +346,7 @@ class ThreatDetailsTest : public ChromeRenderViewHostTestHarness {
EXPECT_THAT(element.child_ids(),
UnorderedPointwise(Eq(), expected.child_ids()));
ASSERT_EQ(expected.attribute_size(), element.attribute_size());
- base::hash_map<std::string, std::string> actual_attributes_map;
+ std::map<std::string, std::string> actual_attributes_map;
for (const HTMLElement::Attribute& attribute : element.attribute()) {
actual_attributes_map[attribute.name()] = attribute.value();
}

Powered by Google App Engine
This is Rietveld 408576698