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

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

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)
Patch Set: Downloads back Created 3 years, 6 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
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc ('k') | chrome/browser/site_details.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 144b16d2afa0894503e9c50eed24d419a6ff20bb..a9cc9f4711290646122aabe835bb81ff89a4dd5f 100644
--- a/chrome/browser/safe_browsing/threat_details_unittest.cc
+++ b/chrome/browser/safe_browsing/threat_details_unittest.cc
@@ -270,7 +270,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()) {
@@ -290,7 +290,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;
}
@@ -352,7 +352,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();
}
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc ('k') | chrome/browser/site_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698