#include "third_party/blink/renderer/platform/heap/blink_gc_memory_dump_provider.h"
#include "base/containers/contains.h"
#include "base/ranges/algorithm.h"
#include "base/trace_event/process_memory_dump.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/renderer/platform/heap/custom_spaces.h"
#include "third_party/blink/renderer/platform/heap/heap_test_utilities.h"
#include "third_party/blink/renderer/platform/wtf/threading.h"
namespace blink {
namespace {
class BlinkGCMemoryDumpProviderTest : public TestSupportingGC { … };
void CheckBasicHeapDumpStructure(base::trace_event::MemoryAllocatorDump* dump) { … }
template <typename Callback>
void IterateMemoryDumps(base::trace_event::ProcessMemoryDump& dump,
const std::string dump_prefix,
Callback callback) { … }
void CheckSpacesInDump(base::trace_event::ProcessMemoryDump& dump,
const std::string dump_prefix) { … }
}
TEST_F(BlinkGCMemoryDumpProviderTest, MainThreadLightDump) { … }
TEST_F(BlinkGCMemoryDumpProviderTest, MainThreadDetailedDump) { … }
TEST_F(BlinkGCMemoryDumpProviderTest, WorkerLightDump) { … }
TEST_F(BlinkGCMemoryDumpProviderTest, WorkerDetailedDump) { … }
}