v8/test/cctest/setup-isolate-for-tests.h
Florian Sattler 1edbf16697 [cleanup] Refactor general tests to use default members.
Fixing clang-tidy warning.

Bug: v8:8015
Change-Id: I4236a2cf85a414f9d7d1fbdaaaaf1c72a84f02e3
Reviewed-on: https://chromium-review.googlesource.com/1224093
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Florian Sattler <sattlerf@google.com>
Cr-Commit-Position: refs/heads/master@{#55912}
2018-09-14 14:40:47 +00:00

30 lines
852 B
C++

// Copyright 2017 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_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
#define V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
#include "src/setup-isolate.h"
namespace v8 {
namespace internal {
class SetupIsolateDelegateForTests : public SetupIsolateDelegate {
public:
explicit SetupIsolateDelegateForTests(bool create_heap_objects)
: SetupIsolateDelegate(create_heap_objects) {}
virtual ~SetupIsolateDelegateForTests() = default;
void SetupBuiltins(Isolate* isolate) override;
void SetupInterpreter(interpreter::Interpreter* interpreter) override;
bool SetupHeap(Heap* heap) override;
};
} // namespace internal
} // namespace v8
#endif // V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_