OLD | NEW |
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" |
8 #include "core/testing/NullExecutionContext.h" | 9 #include "core/testing/NullExecutionContext.h" |
9 #include "modules/notifications/Notification.h" | 10 #include "modules/notifications/Notification.h" |
10 #include "modules/notifications/NotificationOptions.h" | 11 #include "modules/notifications/NotificationOptions.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "wtf/CurrentTime.h" | 13 #include "wtf/CurrentTime.h" |
13 #include "wtf/HashMap.h" | 14 #include "wtf/HashMap.h" |
14 #include "wtf/Vector.h" | 15 #include "wtf/Vector.h" |
15 | 16 |
16 namespace blink { | 17 namespace blink { |
17 namespace { | 18 namespace { |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 ASSERT_EQ(Notification::maxActions(), notificationData.actions.size()); | 282 ASSERT_EQ(Notification::maxActions(), notificationData.actions.size()); |
282 | 283 |
283 for (size_t i = 0; i < Notification::maxActions(); ++i) { | 284 for (size_t i = 0; i < Notification::maxActions(); ++i) { |
284 WebString expectedAction = String::number(i); | 285 WebString expectedAction = String::number(i); |
285 EXPECT_EQ(expectedAction, notificationData.actions[i].action); | 286 EXPECT_EQ(expectedAction, notificationData.actions[i].action); |
286 } | 287 } |
287 } | 288 } |
288 | 289 |
289 } // namespace | 290 } // namespace |
290 } // namespace blink | 291 } // namespace blink |
OLD | NEW |