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

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

Issue 2406803002: [turbofan] Enforce native context specialization. (Closed)
Patch Set: Remove unused variables Created 4 years, 2 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/js-create-lowering-unittest.cc ('k') | test/unittests/test-utils.cc » ('j') | 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 984d63ce2a14870ce579a0825ed44ef1349c89e6..d75c504ff96f5d6edadab9b37263715c6e33ca7e 100644
--- a/test/unittests/test-utils.h
+++ b/test/unittests/test-utils.h
@@ -95,7 +95,6 @@ class TestWithIsolate : public virtual ::v8::TestWithIsolate {
DISALLOW_COPY_AND_ASSIGN(TestWithIsolate);
};
-
class TestWithZone : public virtual ::testing::Test {
public:
TestWithZone() : zone_(&allocator_) {}
@@ -110,7 +109,6 @@ class TestWithZone : public virtual ::testing::Test {
DISALLOW_COPY_AND_ASSIGN(TestWithZone);
};
-
class TestWithIsolateAndZone : public virtual TestWithIsolate {
public:
TestWithIsolateAndZone() : zone_(&allocator_) {}
@@ -125,6 +123,18 @@ class TestWithIsolateAndZone : public virtual TestWithIsolate {
DISALLOW_COPY_AND_ASSIGN(TestWithIsolateAndZone);
};
+class TestWithNativeContext : public virtual ::v8::TestWithContext,
+ public virtual TestWithIsolate {
+ public:
+ TestWithNativeContext() {}
+ virtual ~TestWithNativeContext();
+
+ Handle<Context> native_context() const;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestWithNativeContext);
+};
+
} // namespace internal
} // namespace v8
« no previous file with comments | « test/unittests/compiler/js-create-lowering-unittest.cc ('k') | test/unittests/test-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698