v8/test/heap-unittests/heap-unittests.h
bmeurer@chromium.org 10678fb22f Setup heap-unittests and runtime-unittests.
Initial import of empty unit test suites for Toon and Hannes.

R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/475233005

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23190 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-08-19 10:54:54 +00:00

43 lines
976 B
C++

// 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_HEAP_UNITTESTS_HEAP_UNITTESTS_H_
#define V8_HEAP_UNITTESTS_HEAP_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_HEAP_UNITTESTS_HEAP_UNITTESTS_H_