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

Side by Side Diff: third_party/WebKit/Source/modules/notifications/NotificationDataTest.cpp

Issue 1975993003: Reland: Generate separate files for union type containers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/notifications/NotificationData.h" 5 #include "modules/notifications/NotificationData.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/modules/v8/UnionTypesModules.h"
9 #include "core/testing/NullExecutionContext.h" 8 #include "core/testing/NullExecutionContext.h"
10 #include "modules/notifications/Notification.h" 9 #include "modules/notifications/Notification.h"
11 #include "modules/notifications/NotificationOptions.h" 10 #include "modules/notifications/NotificationOptions.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 #include "wtf/CurrentTime.h" 12 #include "wtf/CurrentTime.h"
14 #include "wtf/HashMap.h" 13 #include "wtf/HashMap.h"
15 #include "wtf/Vector.h" 14 #include "wtf/Vector.h"
16 15
17 namespace blink { 16 namespace blink {
18 namespace { 17 namespace {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 ASSERT_EQ(Notification::maxActions(), notificationData.actions.size()); 281 ASSERT_EQ(Notification::maxActions(), notificationData.actions.size());
283 282
284 for (size_t i = 0; i < Notification::maxActions(); ++i) { 283 for (size_t i = 0; i < Notification::maxActions(); ++i) {
285 WebString expectedAction = String::number(i); 284 WebString expectedAction = String::number(i);
286 EXPECT_EQ(expectedAction, notificationData.actions[i].action); 285 EXPECT_EQ(expectedAction, notificationData.actions[i].action);
287 } 286 }
288 } 287 }
289 288
290 } // namespace 289 } // namespace
291 } // namespace blink 290 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698