#include "chrome/browser/page_load_metrics/observers/preview_page_load_metrics_observer.h"
#include "base/test/metrics/histogram_tester.h"
#include "build/build_config.h"
#include "chrome/browser/preloading/preview/preview_manager.h"
#include "chrome/browser/preloading/preview/preview_test_util.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/chrome_test_utils.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/page_load_metrics/browser/page_load_metrics_test_waiter.h"
#include "content/public/browser/back_forward_cache.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class PreviewPageLoadMetricsObserverBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PreviewPageLoadMetricsObserverBrowserTest,
IndependentVisit) { … }
IN_PROC_BROWSER_TEST_F(PreviewPageLoadMetricsObserverBrowserTest,
SequentialVisits) { … }
IN_PROC_BROWSER_TEST_F(PreviewPageLoadMetricsObserverBrowserTest,
ComplexNavigationWithoutBFCache) { … }
IN_PROC_BROWSER_TEST_F(PreviewPageLoadMetricsObserverBrowserTest,
ComplexNavigationWithBFCache) { … }
IN_PROC_BROWSER_TEST_F(PreviewPageLoadMetricsObserverBrowserTest,
PreviewFinalStatus) { … }
#if !BUILDFLAG(IS_ANDROID)
IN_PROC_BROWSER_TEST_F(PreviewPageLoadMetricsObserverBrowserTest,
LinkPreviewUsageNotUsed) { … }
IN_PROC_BROWSER_TEST_F(PreviewPageLoadMetricsObserverBrowserTest,
LinkPreviewUsageUsedButNotPromoted) { … }
IN_PROC_BROWSER_TEST_F(PreviewPageLoadMetricsObserverBrowserTest,
LinkPreviewUsageResetOnPrimaryNavigation) { … }
IN_PROC_BROWSER_TEST_F(PreviewPageLoadMetricsObserverBrowserTest,
LinkPreviewUsageUsedAndPromoted) { … }
#endif
}