#include "components/page_load_metrics/browser/page_load_metrics_memory_tracker.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/singleton.h"
#include "base/test/scoped_feature_list.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
#include "components/page_load_metrics/browser/metrics_web_contents_observer.h"
#include "components/page_load_metrics/browser/page_load_metrics_embedder_base.h"
#include "components/page_load_metrics/browser/page_load_metrics_test_content_browser_client.h"
#include "components/performance_manager/public/render_process_host_id.h"
#include "components/performance_manager/public/v8_memory/v8_detailed_memory.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/common/content_client.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "testing/gtest/include/gtest/gtest.h"
V8DetailedMemoryExecutionContextData;
FrameDataMap;
const char kMainUrl[] = …;
const char kSubUrl[] = …;
const char kOtherSubUrl[] = …;
namespace page_load_metrics {
namespace {
class TestPageLoadMetricsEmbedder
: public page_load_metrics::PageLoadMetricsEmbedderBase { … };
class TestMestricsWebContentsObserver : public MetricsWebContentsObserver { … };
class PageLoadMetricsMemoryTrackerTest
: public content::RenderViewHostTestHarness { … };
}
TEST_F(PageLoadMetricsMemoryTrackerTest,
InitialUpdatesOnly_CorrectDeltasReceived) { … }
TEST_F(PageLoadMetricsMemoryTrackerTest, SecondUpdates_CorrectDeltasReceived) { … }
TEST_F(PageLoadMetricsMemoryTrackerTest, FrameDeleted_CorrectDeltasReceived) { … }
}