chromium/chrome/browser/metrics/tab_footprint_aggregator_unittest.cc

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

#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 =;

// For a given metric, a |ResultMap| encodes what value that metric should have
// on a per ukm::SourceId basis.
// Use a multi-map because we want to be able to test against multiple records
// being emitted for a single URL. This scenario resembles a user having
// multiple tabs open for the same top-level-navigation.
ResultMap;

}  // namespace

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) {}