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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyTest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "bindings/core/v8/ScriptPromiseProperty.h" 5 #include "bindings/core/v8/ScriptPromiseProperty.h"
6 6
7 #include <v8.h>
8 #include <memory>
7 #include "bindings/core/v8/DOMWrapperWorld.h" 9 #include "bindings/core/v8/DOMWrapperWorld.h"
8 #include "bindings/core/v8/ScriptFunction.h" 10 #include "bindings/core/v8/ScriptFunction.h"
9 #include "bindings/core/v8/ScriptPromise.h" 11 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptState.h" 12 #include "bindings/core/v8/ScriptState.h"
11 #include "bindings/core/v8/ScriptValue.h" 13 #include "bindings/core/v8/ScriptValue.h"
12 #include "bindings/core/v8/V8Binding.h" 14 #include "bindings/core/v8/V8Binding.h"
13 #include "bindings/core/v8/V8BindingForTesting.h" 15 #include "bindings/core/v8/V8BindingForTesting.h"
14 #include "bindings/core/v8/V8GCController.h" 16 #include "bindings/core/v8/V8GCController.h"
15 #include "core/dom/Document.h" 17 #include "core/dom/Document.h"
16 #include "core/testing/DummyPageHolder.h" 18 #include "core/testing/DummyPageHolder.h"
17 #include "core/testing/GCObservation.h" 19 #include "core/testing/GCObservation.h"
18 #include "core/testing/GarbageCollectedScriptWrappable.h" 20 #include "core/testing/GarbageCollectedScriptWrappable.h"
19 #include "platform/heap/Handle.h" 21 #include "platform/heap/Handle.h"
20 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
21 #include "wtf/PassRefPtr.h" 23 #include "wtf/PassRefPtr.h"
22 #include "wtf/RefPtr.h" 24 #include "wtf/RefPtr.h"
23 #include <memory>
24 #include <v8.h>
25 25
26 namespace blink { 26 namespace blink {
27 27
28 namespace { 28 namespace {
29 29
30 class NotReached : public ScriptFunction { 30 class NotReached : public ScriptFunction {
31 public: 31 public:
32 static v8::Local<v8::Function> createFunction(ScriptState* scriptState) { 32 static v8::Local<v8::Function> createFunction(ScriptState* scriptState) {
33 NotReached* self = new NotReached(scriptState); 33 NotReached* self = new NotReached(scriptState);
34 return self->bindToV8Function(); 34 return self->bindToV8Function();
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 ResolveWithString) { 478 ResolveWithString) {
479 test(String("hello"), "hello", __FILE__, __LINE__); 479 test(String("hello"), "hello", __FILE__, __LINE__);
480 } 480 }
481 481
482 TEST_F(ScriptPromisePropertyNonScriptWrappableResolutionTargetTest, 482 TEST_F(ScriptPromisePropertyNonScriptWrappableResolutionTargetTest,
483 ResolveWithInteger) { 483 ResolveWithInteger) {
484 test(-1, "-1", __FILE__, __LINE__); 484 test(-1, "-1", __FILE__, __LINE__);
485 } 485 }
486 486
487 } // namespace blink 487 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698