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

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

Issue 475233005: Setup heap-unittests and runtime-unittests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also add heap-unittests. Created 6 years, 4 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/runtime-unittests/DEPS ('k') | test/runtime-unittests/runtime-unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runtime-unittests/runtime-unittests.h
diff --git a/test/runtime-unittests/runtime-unittests.h b/test/runtime-unittests/runtime-unittests.h
new file mode 100644
index 0000000000000000000000000000000000000000..e484fdc2ef94fc1108a21fe0bb1e536a6c4162da
--- /dev/null
+++ b/test/runtime-unittests/runtime-unittests.h
@@ -0,0 +1,42 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_RUNTIME_UNITTESTS_RUNTIME_UNITTESTS_H_
+#define V8_RUNTIME_UNITTESTS_RUNTIME_UNITTESTS_H_
+
+#include "include/v8.h"
+#include "src/zone.h"
+#include "testing/gtest-support.h"
+
+namespace v8 {
+namespace internal {
+
+// Forward declarations.
+class Factory;
+class Heap;
+
+class RuntimeTest : public ::testing::Test {
+ public:
+ RuntimeTest();
+ virtual ~RuntimeTest();
+
+ Factory* factory() const;
+ Heap* heap() const;
+ Isolate* isolate() const { return reinterpret_cast<Isolate*>(isolate_); }
+ Zone* zone() { return &zone_; }
+
+ static void SetUpTestCase();
+ static void TearDownTestCase();
+
+ private:
+ static v8::Isolate* isolate_;
+ v8::Isolate::Scope isolate_scope_;
+ v8::HandleScope handle_scope_;
+ Zone zone_;
+};
+
+} // namespace internal
+} // namespace v8
+
+#endif // V8_RUNTIME_UNITTESTS_RUNTIME_UNITTESTS_H_
« no previous file with comments | « test/runtime-unittests/DEPS ('k') | test/runtime-unittests/runtime-unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698