chromium/components/performance_manager/v8_memory/web_memory_impl_unittest.cc

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

#include "components/performance_manager/v8_memory/web_memory_impl.h"

#include <memory>
#include <string>
#include <string_view>
#include <utility>

#include "base/containers/flat_map.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/public/graph/frame_node.h"
#include "components/performance_manager/public/mojom/web_memory.mojom.h"
#include "components/performance_manager/public/performance_manager.h"
#include "components/performance_manager/public/v8_memory/v8_detailed_memory.h"
#include "components/performance_manager/public/v8_memory/web_memory.h"
#include "components/performance_manager/v8_memory/v8_memory_test_helpers.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/test/test_renderer_host.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/tokens/tokens.h"

namespace performance_manager {

namespace v8_memory {

WebMemoryImplPMTest;

class WebMemoryImplTest : public WebMemoryTestHarness {};

class FakeSecurityChecker : public WebMeasureMemorySecurityChecker {};

void WebMemoryImplTest::MeasureAndVerify(
    FrameNodeImpl* frame,
    base::flat_map<std::string, Bytes> expected) {}

TEST_F(WebMemoryImplTest, MeasurerIncludesSameOriginRelatedFrames) {}

TEST_F(WebMemoryImplTest, MeasurerIncludesCrossOriginFrames) {}

TEST_F(WebMemoryImplTest, MeasurerSkipsCrossBrowserContextGroupFrames) {}

TEST_F(WebMemoryImplPMTest, WebMeasureMemory) {}

TEST_F(WebMemoryImplPMTest, MeasurementInterrupted) {}

TEST_F(WebMemoryImplPMTest, MeasurementDisallowed) {}

}  // namespace v8_memory

}  // namespace performance_manager