#ifndef V8_UNITTESTS_TEST_HELPERS_H_
#define V8_UNITTESTS_TEST_HELPERS_H_
#include <memory>
#include "include/v8-primitive.h"
#include "src/common/globals.h"
namespace v8 {
namespace internal {
class SharedFunctionInfo;
class Utf16CharacterStream;
namespace test {
class ScriptResource : public v8::String::ExternalOneByteStringResource { … };
test::ScriptResource* CreateSource(test::ScriptResource* maybe_resource);
Handle<SharedFunctionInfo> CreateSharedFunctionInfo(
Isolate* isolate, ScriptResource* maybe_resource);
std::unique_ptr<Utf16CharacterStream> SourceCharacterStreamForShared(
Isolate* isolate, DirectHandle<SharedFunctionInfo> shared);
}
}
}
#endif