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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/runtime-unittests/DEPS ('k') | test/runtime-unittests/runtime-unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_RUNTIME_UNITTESTS_RUNTIME_UNITTESTS_H_
6 #define V8_RUNTIME_UNITTESTS_RUNTIME_UNITTESTS_H_
7
8 #include "include/v8.h"
9 #include "src/zone.h"
10 #include "testing/gtest-support.h"
11
12 namespace v8 {
13 namespace internal {
14
15 // Forward declarations.
16 class Factory;
17 class Heap;
18
19 class RuntimeTest : public ::testing::Test {
20 public:
21 RuntimeTest();
22 virtual ~RuntimeTest();
23
24 Factory* factory() const;
25 Heap* heap() const;
26 Isolate* isolate() const { return reinterpret_cast<Isolate*>(isolate_); }
27 Zone* zone() { return &zone_; }
28
29 static void SetUpTestCase();
30 static void TearDownTestCase();
31
32 private:
33 static v8::Isolate* isolate_;
34 v8::Isolate::Scope isolate_scope_;
35 v8::HandleScope handle_scope_;
36 Zone zone_;
37 };
38
39 } // namespace internal
40 } // namespace v8
41
42 #endif // V8_RUNTIME_UNITTESTS_RUNTIME_UNITTESTS_H_
OLDNEW
« 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