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

Unified Diff: gin/runner_unittest.cc

Issue 76353002: Introduce a Gin class instead of using global functions to control gin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 1 month 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 | « gin/runner.cc ('k') | gin/shell/gin_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/runner_unittest.cc
diff --git a/gin/runner_unittest.cc b/gin/runner_unittest.cc
index adcebed4cbc94d297f8f695851fe25d0c8a76416..3ff770333c2ed19abb2a215cf2bf641a8deba6d8 100644
--- a/gin/runner_unittest.cc
+++ b/gin/runner_unittest.cc
@@ -6,6 +6,7 @@
#include "base/compiler_specific.h"
#include "gin/converter.h"
+#include "gin/gin.h"
#include "testing/gtest/include/gtest/gtest.h"
using v8::Isolate;
@@ -18,8 +19,10 @@ namespace gin {
TEST(RunnerTest, Run) {
std::string source = "this.result = 'PASS';\n";
+ gin::Gin instance;
+
RunnerDelegate delegate;
- Isolate* isolate = Isolate::GetCurrent();
+ Isolate* isolate = instance.isolate();
Runner runner(&delegate, isolate);
Runner::Scope scope(&runner);
runner.Run(source);
« no previous file with comments | « gin/runner.cc ('k') | gin/shell/gin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698