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

Unified Diff: Source/modules/indexeddb/IDBTransactionTest.cpp

Issue 302893004: Remove V8TestingScope::create (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/modules/indexeddb/IDBRequestTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBTransactionTest.cpp
diff --git a/Source/modules/indexeddb/IDBTransactionTest.cpp b/Source/modules/indexeddb/IDBTransactionTest.cpp
index f940af9516dc11df815481b1e3340155fbd0c528..54f3d0ab0ac5de4fc1098bdd04cda6f197e93c43 100644
--- a/Source/modules/indexeddb/IDBTransactionTest.cpp
+++ b/Source/modules/indexeddb/IDBTransactionTest.cpp
@@ -50,17 +50,17 @@ namespace {
class IDBTransactionTest : public testing::Test {
public:
IDBTransactionTest()
- : m_scope(V8TestingScope::create(v8::Isolate::GetCurrent()))
+ : m_scope(v8::Isolate::GetCurrent())
{
- m_scope->scriptState()->setExecutionContext(Document::create());
+ m_scope.scriptState()->setExecutionContext(Document::create());
}
- v8::Isolate* isolate() const { return m_scope->isolate(); }
- ScriptState* scriptState() const { return m_scope->scriptState(); }
- ExecutionContext* executionContext() { return m_scope->scriptState()->executionContext(); }
+ v8::Isolate* isolate() const { return m_scope.isolate(); }
+ ScriptState* scriptState() const { return m_scope.scriptState(); }
+ ExecutionContext* executionContext() { return m_scope.scriptState()->executionContext(); }
private:
- OwnPtr<V8TestingScope> m_scope;
+ V8TestingScope m_scope;
};
class FakeWebIDBDatabase FINAL : public blink::WebIDBDatabase {
« no previous file with comments | « Source/modules/indexeddb/IDBRequestTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698