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

Side by Side Diff: Source/bindings/core/v8/ScriptPromisePropertyTest.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 "config.h" 5 #include "config.h"
6 #include "bindings/core/v8/ScriptPromiseProperty.h" 6 #include "bindings/core/v8/ScriptPromiseProperty.h"
7 7
8 #include "bindings/core/v8/DOMWrapperWorld.h" 8 #include "bindings/core/v8/DOMWrapperWorld.h"
9 #include "bindings/core/v8/ScriptFunction.h" 9 #include "bindings/core/v8/ScriptFunction.h"
10 #include "bindings/core/v8/ScriptPromise.h" 10 #include "bindings/core/v8/ScriptPromise.h"
11 #include "bindings/core/v8/ScriptState.h" 11 #include "bindings/core/v8/ScriptState.h"
12 #include "bindings/core/v8/ScriptValue.h" 12 #include "bindings/core/v8/ScriptValue.h"
13 #include "bindings/core/v8/V8Binding.h" 13 #include "bindings/core/v8/V8Binding.h"
14 #include "bindings/core/v8/V8GCController.h" 14 #include "bindings/core/v8/V8GCController.h"
15 #include "core/dom/Document.h" 15 #include "core/dom/Document.h"
16 #include "core/events/Event.h" 16 #include "core/events/Event.h"
17 #include "core/testing/DummyPageHolder.h" 17 #include "core/testing/DummyPageHolder.h"
18 #include "core/testing/GCObservation.h" 18 #include "core/testing/GCObservation.h"
19 #include "wtf/OwnPtr.h" 19 #include "wtf/OwnPtr.h"
20 #include "wtf/PassOwnPtr.h" 20 #include "wtf/PassOwnPtr.h"
21 #include "wtf/PassRefPtr.h" 21 #include "wtf/PassRefPtr.h"
22 #include "wtf/RefPtr.h" 22 #include "wtf/RefPtr.h"
23 #include <gtest/gtest.h> 23 #include <gtest/gtest.h>
24 #include <v8.h> 24 #include <v8.h>
25 25
26 using namespace WebCore; 26 using 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 NotReached() : ScriptFunction(v8::Isolate::GetCurrent()) { } 32 NotReached() : ScriptFunction(v8::Isolate::GetCurrent()) { }
33 33
34 private: 34 private:
35 virtual ScriptValue call(ScriptValue) OVERRIDE; 35 virtual ScriptValue call(ScriptValue) OVERRIDE;
36 }; 36 };
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 destroyContext(); 222 destroyContext();
223 223
224 RefPtrWillBeRawPtr<Event> event(Event::create()); 224 RefPtrWillBeRawPtr<Event> event(Event::create());
225 p->resolve(event.get()); 225 p->resolve(event.get());
226 EXPECT_EQ(Property::Pending, p->state()); 226 EXPECT_EQ(Property::Pending, p->state());
227 227
228 v8::Isolate::GetCurrent()->RunMicrotasks(); 228 v8::Isolate::GetCurrent()->RunMicrotasks();
229 } 229 }
230 230
231 } // namespace 231 } // namespace
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptPromisePropertyBase.cpp ('k') | Source/bindings/core/v8/ScriptPromiseResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698