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

Unified Diff: test/unittests/test-utils.h

Issue 2679193004: [Compiler] Ensure we enter the correct context for compiler-dispatcher jobs. (Closed)
Patch Set: Rebase Created 3 years, 10 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 | « test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/test-utils.h
diff --git a/test/unittests/test-utils.h b/test/unittests/test-utils.h
index ca7efc2a41c30d179a51b2824bdf784afa4046a2..034fbe6bcb7def5c49d79ac0c29a8a0d25422836 100644
--- a/test/unittests/test-utils.h
+++ b/test/unittests/test-utils.h
@@ -24,6 +24,10 @@ class TestWithIsolate : public virtual ::testing::Test {
Isolate* isolate() const { return isolate_; }
+ v8::internal::Isolate* i_isolate() const {
+ return reinterpret_cast<v8::internal::Isolate*>(isolate());
+ }
+
static void SetUpTestCase();
static void TearDownTestCase();
@@ -44,10 +48,6 @@ class TestWithContext : public virtual TestWithIsolate {
const Local<Context>& context() const { return context_; }
- v8::internal::Isolate* i_isolate() const {
- return reinterpret_cast<v8::internal::Isolate*>(isolate());
- }
-
private:
Local<Context> context_;
Context::Scope context_scope_;
« no previous file with comments | « test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698