Chromium Code Reviews| 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: |