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

Unified Diff: third_party/WebKit/Source/modules/notifications/NotificationDataTest.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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: third_party/WebKit/Source/modules/notifications/NotificationDataTest.cpp
diff --git a/third_party/WebKit/Source/modules/notifications/NotificationDataTest.cpp b/third_party/WebKit/Source/modules/notifications/NotificationDataTest.cpp
index eb264fc86da8821833e6ec5ee7e3564d8899a17e..8c824b4bed2fb61c9e212174f10ba4ad66fe15f9 100644
--- a/third_party/WebKit/Source/modules/notifications/NotificationDataTest.cpp
+++ b/third_party/WebKit/Source/modules/notifications/NotificationDataTest.cpp
@@ -252,12 +252,12 @@ TEST_F(NotificationDataTest, DefaultTimestampValue) {
TEST_F(NotificationDataTest, DirectionValues) {
WTF::HashMap<String, WebNotificationData::Direction> mappings;
- mappings.add("ltr", WebNotificationData::DirectionLeftToRight);
- mappings.add("rtl", WebNotificationData::DirectionRightToLeft);
- mappings.add("auto", WebNotificationData::DirectionAuto);
+ mappings.insert("ltr", WebNotificationData::DirectionLeftToRight);
+ mappings.insert("rtl", WebNotificationData::DirectionRightToLeft);
+ mappings.insert("auto", WebNotificationData::DirectionAuto);
// Invalid values should default to "auto".
- mappings.add("peter", WebNotificationData::DirectionAuto);
+ mappings.insert("peter", WebNotificationData::DirectionAuto);
for (const String& direction : mappings.keys()) {
NotificationOptions options;

Powered by Google App Engine
This is Rietveld 408576698