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

Unified Diff: Source/bindings/core/v8/ScriptState.cpp

Issue 1013413002: [bindings] Refactor ScriptStateForTesting, V8TestingScope into V8BindingForTesting.h/cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Combined all testing files into one! Created 5 years, 9 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: Source/bindings/core/v8/ScriptState.cpp
diff --git a/Source/bindings/core/v8/ScriptState.cpp b/Source/bindings/core/v8/ScriptState.cpp
index 106c37e1a04efd1871c4ec8c479fa92ee274d307..3de3de91fab7a2c8e7ef9fec6e6060c9cfb634aa 100644
--- a/Source/bindings/core/v8/ScriptState.cpp
+++ b/Source/bindings/core/v8/ScriptState.cpp
@@ -116,28 +116,4 @@ ScriptState* ScriptState::forMainWorld(LocalFrame* frame)
return ScriptState::from(toV8Context(frame, DOMWrapperWorld::mainWorld()));
}
-PassRefPtr<ScriptStateForTesting> ScriptStateForTesting::create(v8::Handle<v8::Context> context, PassRefPtr<DOMWrapperWorld> world)
-{
- RefPtr<ScriptStateForTesting> scriptState = adoptRef(new ScriptStateForTesting(context, world));
- // This ref() is for keeping this ScriptState alive as long as the v8::Context is alive.
- // This is deref()ed in the weak callback of the v8::Context.
- scriptState->ref();
- return scriptState;
-}
-
-ScriptStateForTesting::ScriptStateForTesting(v8::Handle<v8::Context> context, PassRefPtr<DOMWrapperWorld> world)
- : ScriptState(context, world)
-{
-}
-
-ExecutionContext* ScriptStateForTesting::executionContext() const
-{
- return m_executionContext;
-}
-
-void ScriptStateForTesting::setExecutionContext(ExecutionContext* executionContext)
-{
- m_executionContext = executionContext;
-}
-
}

Powered by Google App Engine
This is Rietveld 408576698