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

Side by Side Diff: third_party/WebKit/Source/modules/push_messaging/PushManagerTest.cpp

Issue 1961883002: 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698