OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/push_messaging/PushManager.h" | 5 #include "modules/push_messaging/PushManager.h" |
6 | 6 |
| 7 #include "bindings/modules/v8/UnionTypesModules.h" |
7 #include "core/dom/DOMArrayBuffer.h" | 8 #include "core/dom/DOMArrayBuffer.h" |
8 #include "modules/push_messaging/PushSubscriptionOptions.h" | 9 #include "modules/push_messaging/PushSubscriptionOptions.h" |
9 #include "public/platform/WebString.h" | 10 #include "public/platform/WebString.h" |
10 #include "public/platform/modules/push_messaging/WebPushSubscriptionOptions.h" | 11 #include "public/platform/modules/push_messaging/WebPushSubscriptionOptions.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 namespace { | 15 namespace { |
15 | 16 |
16 const unsigned kMaxKeyLength = 255; | 17 const unsigned kMaxKeyLength = 255; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ArrayBufferOrArrayBufferView::fromArrayBuffer( | 58 ArrayBufferOrArrayBufferView::fromArrayBuffer( |
58 DOMArrayBuffer::create(senderKey, kMaxKeyLength + 1))); | 59 DOMArrayBuffer::create(senderKey, kMaxKeyLength + 1))); |
59 | 60 |
60 TrackExceptionState exceptionState; | 61 TrackExceptionState exceptionState; |
61 WebPushSubscriptionOptions output = PushManager::toWebPushSubscriptionOption
s(options, exceptionState); | 62 WebPushSubscriptionOptions output = PushManager::toWebPushSubscriptionOption
s(options, exceptionState); |
62 EXPECT_TRUE(exceptionState.hadException()); | 63 EXPECT_TRUE(exceptionState.hadException()); |
63 } | 64 } |
64 | 65 |
65 } // namespace | 66 } // namespace |
66 } // namespace blink | 67 } // namespace blink |
OLD | NEW |