#include "chrome/browser/metrics/tab_footprint_aggregator.h"
#include <string_view>
#include <utility>
#include "components/ukm/test_ukm_recorder.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "testing/gtest/include/gtest/gtest.h"
Memory_TabFootprint;
namespace {
static const ukm::SourceId kSourceId1 = …;
static const ukm::SourceId kSourceId2 = …;
static const base::ProcessId kProcId1 = …;
static const base::ProcessId kProcId2 = …;
static const base::ProcessId kProcId3 = …;
static const TabFootprintAggregator::PageId kPageId1 = …;
static const TabFootprintAggregator::PageId kPageId2 = …;
ResultMap;
}
class TabFootprintAggregatorTest : public testing::Test { … };
TEST_F(TabFootprintAggregatorTest, TestEmpty) { … }
TEST_F(TabFootprintAggregatorTest, TestSimple) { … }
TEST_F(TabFootprintAggregatorTest, TestSubOnly) { … }
TEST_F(TabFootprintAggregatorTest, TestMainWithSub) { … }
TEST_F(TabFootprintAggregatorTest, TestTwoPages) { … }
TEST_F(TabFootprintAggregatorTest, TestMainFrameOverload) { … }
TEST_F(TabFootprintAggregatorTest, TestSharedSubframeRenderer) { … }
TEST_F(TabFootprintAggregatorTest, TestCohostedDuplicateTabs) { … }
TEST_F(TabFootprintAggregatorTest, TestDuplicateMainframeTabs) { … }
TEST_F(TabFootprintAggregatorTest, TestDuplicateTabsSharedSubframes) { … }