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