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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/payments/PaymentRequestUpdateEvent.h" 5 #include "modules/payments/PaymentRequestUpdateEvent.h"
6 6
7 #include <memory>
7 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/V8BindingForTesting.h" 11 #include "bindings/core/v8/V8BindingForTesting.h"
11 #include "core/EventTypeNames.h" 12 #include "core/EventTypeNames.h"
12 #include "modules/payments/PaymentRequest.h" 13 #include "modules/payments/PaymentRequest.h"
13 #include "modules/payments/PaymentTestHelper.h" 14 #include "modules/payments/PaymentTestHelper.h"
14 #include "modules/payments/PaymentUpdater.h" 15 #include "modules/payments/PaymentUpdater.h"
15 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 #include <memory>
18 18
19 namespace blink { 19 namespace blink {
20 namespace { 20 namespace {
21 21
22 class MockPaymentUpdater : public GarbageCollectedFinalized<MockPaymentUpdater>, 22 class MockPaymentUpdater : public GarbageCollectedFinalized<MockPaymentUpdater>,
23 public PaymentUpdater { 23 public PaymentUpdater {
24 USING_GARBAGE_COLLECTED_MIXIN(MockPaymentUpdater); 24 USING_GARBAGE_COLLECTED_MIXIN(MockPaymentUpdater);
25 WTF_MAKE_NONCOPYABLE(MockPaymentUpdater); 25 WTF_MAKE_NONCOPYABLE(MockPaymentUpdater);
26 26
27 public: 27 public:
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 v8::MicrotasksScope::PerformCheckpoint(scope.getScriptState()->isolate()); 142 v8::MicrotasksScope::PerformCheckpoint(scope.getScriptState()->isolate());
143 EXPECT_EQ( 143 EXPECT_EQ(
144 "AbortError: Timed out as the page didn't resolve the promise from " 144 "AbortError: Timed out as the page didn't resolve the promise from "
145 "change event", 145 "change event",
146 errorMessage); 146 errorMessage);
147 } 147 }
148 148
149 } // namespace 149 } // namespace
150 } // namespace blink 150 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698