#include <locale.h>
#include <optional>
#include <string>
#include <vector>
#include "include/libplatform/libplatform.h"
#include "include/v8-exception.h"
#include "include/v8-initialization.h"
#include "include/v8-local-handle.h"
#include "include/v8-snapshot.h"
#include "src/base/platform/platform.h"
#include "src/base/small-vector.h"
#include "src/flags/flags.h"
#include "src/utils/utils.h"
#include "test/inspector/frontend-channel.h"
#include "test/inspector/isolate-data.h"
#include "test/inspector/task-runner.h"
#include "test/inspector/tasks.h"
#include "test/inspector/utils.h"
#if !defined(V8_OS_WIN)
#include <unistd.h>
#endif
namespace v8 {
namespace internal {
extern void DisableEmbeddedBlobRefcounting();
extern void FreeCurrentEmbeddedBlob();
extern v8::StartupData CreateSnapshotDataBlobInternalForInspectorTest(
v8::SnapshotCreator::FunctionCodeHandling function_code_handling,
const char* embedded_source);
namespace {
base::SmallVector<TaskRunner*, 2> task_runners;
class UtilsExtension : public InspectorIsolateData::SetupGlobalTask { … };
TaskRunner* UtilsExtension::backend_runner_ = …;
bool StrictAccessCheck(v8::Local<v8::Context> accessing_context,
v8::Local<v8::Object> accessed_object,
v8::Local<v8::Value> data) { … }
class ConsoleExtension : public InspectorIsolateData::SetupGlobalTask { … };
class InspectorExtension : public InspectorIsolateData::SetupGlobalTask { … };
int InspectorTestMain(int argc, char* argv[]) { … }
}
}
}
int main(int argc, char* argv[]) { … }