#include "components/performance_manager/v8_memory/v8_context_tracker_helpers.h"
#include "base/memory/raw_ptr.h"
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/worker_node_impl.h"
#include "components/performance_manager/public/execution_context/execution_context.h"
#include "components/performance_manager/public/execution_context/execution_context_registry.h"
#include "components/performance_manager/public/mojom/v8_contexts.mojom.h"
#include "components/performance_manager/test_support/graph_test_harness.h"
#include "components/performance_manager/test_support/mock_graphs.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace performance_manager {
namespace v8_memory {
namespace {
constexpr char kValidExtensionWorldName[] = …;
constexpr char kInvalidExtensionWorldName[] = …;
constexpr char kWorldName[] = …;
class V8ContextTrackerHelpersTest : public GraphTestHarness { … };
}
TEST_F(V8ContextTrackerHelpersTest, HasCrossProcessParent) { … }
TEST_F(V8ContextTrackerHelpersTest, IsValidExtensionId) { … }
TEST_F(V8ContextTrackerHelpersTest, IsWorkletToken) { … }
TEST_F(V8ContextTrackerHelpersTest, GetExecutionContext) { … }
TEST_F(V8ContextTrackerHelpersTest, ValidateV8ContextDescriptionMainWorld) { … }
TEST_F(V8ContextTrackerHelpersTest, ValidateV8ContextDescriptionWorkerWorld) { … }
TEST_F(V8ContextTrackerHelpersTest,
ValidateV8ContextDescriptionShadowRealmWorld) { … }
TEST_F(V8ContextTrackerHelpersTest,
ValidateV8ContextDescriptionExtensionWorld) { … }
TEST_F(V8ContextTrackerHelpersTest, ValidateV8ContextDescriptionIsolatedWorld) { … }
TEST_F(V8ContextTrackerHelpersTest,
ValidateV8ContextDescriptionInspectorWorld) { … }
TEST_F(V8ContextTrackerHelpersTest, ValidateV8ContextDescriptionRegExpWorld) { … }
}
}