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

Unified Diff: Source/bindings/core/v8/V8TestingScope.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/V8TestingScope.cpp
diff --git a/Source/bindings/core/v8/V8TestingScope.cpp b/Source/bindings/core/v8/V8TestingScope.cpp
deleted file mode 100644
index 3cb08ed8e7a57d89fcf043f4dd9c3effbba18db3..0000000000000000000000000000000000000000
--- a/Source/bindings/core/v8/V8TestingScope.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "bindings/core/v8/V8TestingScope.h"
-
-#include "bindings/core/v8/DOMWrapperWorld.h"
-
-namespace blink {
-
-V8TestingScope::V8TestingScope(v8::Isolate* isolate)
- : m_handleScope(isolate)
- , m_contextScope(v8::Context::New(isolate))
- // We reuse the main world since the main world is guaranteed to be registered to ScriptController.
- , m_scriptState(ScriptStateForTesting::create(isolate->GetCurrentContext(), &DOMWrapperWorld::mainWorld()))
-{
-}
-
-V8TestingScope::~V8TestingScope()
-{
- m_scriptState->disposePerContextData();
-}
-
-ScriptState* V8TestingScope::scriptState() const
-{
- return m_scriptState.get();
-}
-
-v8::Isolate* V8TestingScope::isolate() const
-{
- return m_scriptState->isolate();
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698