summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/setup-isolate-for-tests.h
blob: c026c04afdcba678026700137a7d0abd38d9ceb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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) {}
  ~SetupIsolateDelegateForTests() override = default;

  void SetupBuiltins(Isolate* isolate) override;

  bool SetupHeap(Heap* heap) override;
};

}  // namespace internal
}  // namespace v8

#endif  // V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_