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

Side by Side Diff: test/unittests/test-isolate.h

Issue 438243003: Revert "Initial import of unittests using GTest/GMock." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/unittests/compiler/test-instruction-selector.cc ('k') | test/unittests/test-isolate.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_UNITTESTS_TEST_ISOLATE_H_
6 #define V8_UNITTESTS_TEST_ISOLATE_H_
7
8 #include "test/unittests/unittests.h"
9
10 namespace v8 {
11 namespace internal {
12
13 class IsolateTest : public EngineTest {
14 public:
15 IsolateTest();
16 virtual ~IsolateTest();
17
18 v8::Isolate* isolate() const;
19 Isolate* i_isolate() const { return reinterpret_cast<Isolate*>(isolate()); }
20
21 private:
22 v8::Isolate* isolate_;
23
24 DISALLOW_COPY_AND_ASSIGN(IsolateTest);
25 };
26
27
28 class ContextTest : public virtual IsolateTest {
29 public:
30 ContextTest()
31 : handle_scope_(isolate()), context_scope_(v8::Context::New(isolate())) {}
32 virtual ~ContextTest() {}
33
34 private:
35 v8::HandleScope handle_scope_;
36 v8::Context::Scope context_scope_;
37 };
38
39 } // namespace internal
40 } // namespace v8
41
42 #endif // V8_UNITTESTS_TEST_ISOLATE_H_
OLDNEW
« no previous file with comments | « test/unittests/compiler/test-instruction-selector.cc ('k') | test/unittests/test-isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698