2017-04-07 13:31:29 +00:00
|
|
|
// 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.
|
|
|
|
|
2017-06-09 13:05:08 +00:00
|
|
|
#ifndef V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
|
|
|
|
#define V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
|
|
|
|
|
2017-04-07 13:31:29 +00:00
|
|
|
#include "src/setup-isolate.h"
|
|
|
|
|
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
|
|
|
|
|
|
|
class SetupIsolateDelegateForTests : public SetupIsolateDelegate {
|
|
|
|
public:
|
2017-09-06 10:48:08 +00:00
|
|
|
explicit SetupIsolateDelegateForTests(bool create_heap_objects)
|
|
|
|
: SetupIsolateDelegate(create_heap_objects) {}
|
2018-09-14 15:34:02 +00:00
|
|
|
~SetupIsolateDelegateForTests() override = default;
|
2017-04-07 13:31:29 +00:00
|
|
|
|
2017-09-06 10:48:08 +00:00
|
|
|
void SetupBuiltins(Isolate* isolate) override;
|
2017-04-07 13:31:29 +00:00
|
|
|
|
2017-09-06 10:48:08 +00:00
|
|
|
bool SetupHeap(Heap* heap) override;
|
2017-04-07 13:31:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|
2017-06-09 13:05:08 +00:00
|
|
|
|
|
|
|
#endif // V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
|