#include "chrome/browser/sessions/session_restore_stats_collector.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_web_contents_factory.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
TabLoaderStats;
StatsReportingDelegate;
class MockStatsReportingDelegate : public StatsReportingDelegate { … };
class PassthroughStatsReportingDelegate : public StatsReportingDelegate { … };
}
class SessionRestoreStatsCollectorTest : public testing::Test { … };
TEST_F(SessionRestoreStatsCollectorTest, MultipleTabsLoadSerially) { … }
TEST_F(SessionRestoreStatsCollectorTest, ForegroundTabOccluded) { … }
TEST_F(SessionRestoreStatsCollectorTest, FirstOfTwoTabsOccluded) { … }
TEST_F(SessionRestoreStatsCollectorTest, LoadingTabDestroyedBeforePaint) { … }
TEST_F(SessionRestoreStatsCollectorTest, FocusSwitchNoForegroundPaintOrLoad) { … }