chromium/gin/v8_isolate_memory_dump_provider_unittest.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "gin/v8_isolate_memory_dump_provider.h"

#include <memory>

#include "base/containers/contains.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/process_memory_dump.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "gin/public/isolate_holder.h"
#include "gin/test/v8_test.h"
#include "v8/include/v8-initialization.h"

namespace gin {

class V8MemoryDumpProviderTest : public V8Test {};

class V8MemoryDumpProviderWorkerTest : public V8MemoryDumpProviderTest {};

// Checks if the dump provider runs without crashing and dumps root objects.
TEST_F(V8MemoryDumpProviderTest, DumpStatistics) {}

TEST_F(V8MemoryDumpProviderTest, DumpGlobalHandlesSize) {}

TEST_F(V8MemoryDumpProviderTest, DumpContextStatistics) {}

TEST_F(V8MemoryDumpProviderWorkerTest, DumpContextStatistics) {}

TEST_F(V8MemoryDumpProviderTest, DumpCodeStatistics) {}

// Tests that a deterministic memory dump request performs a GC.
TEST_F(V8MemoryDumpProviderTest, Deterministic) {}

}  // namespace gin