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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.h

Issue 2048823004: PaymentRequest.abort() should return a promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include what you use Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.h b/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.h
index 7e4b84705c2bd2feb6ba7507e9ae54b5e3f5804b..f7ce56678edc983ac2a0ad432fd462ba266d5e84 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.h
@@ -5,15 +5,19 @@
#ifndef V8BindingForTesting_h
#define V8BindingForTesting_h
-#include "bindings/core/v8/DOMWrapperWorld.h"
#include "bindings/core/v8/ScriptState.h"
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
+#include "wtf/OwnPtr.h"
#include <v8.h>
namespace blink {
+class DOMWrapperWorld;
+class DummyPageHolder;
+class ExecutionContext;
+
class ScriptStateForTesting : public ScriptState {
public:
static PassRefPtr<ScriptStateForTesting> create(v8::Local<v8::Context>, PassRefPtr<DOMWrapperWorld>);
@@ -24,6 +28,17 @@ private:
Persistent<ExecutionContext> m_executionContext;
};
+class ScriptStateForTestingWithPage {
haraken 2016/06/13 01:31:10 Or can you just add DummyPageHolder to ScriptState
please use gerrit instead 2016/06/14 05:12:40 Done.
+public:
+ ScriptStateForTestingWithPage();
+ ~ScriptStateForTestingWithPage();
+
+ // Returns a script state that has a document and a frame.
+ ScriptState* getScriptState();
+private:
+ OwnPtr<DummyPageHolder> m_page;
+};
+
class V8TestingScope {
DISALLOW_NEW();
public:

Powered by Google App Engine
This is Rietveld 408576698