#include "chrome/browser/page_load_metrics/observers/lcp_critical_path_predictor_page_load_metrics_observer.h"
#include <map>
#include <memory>
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h"
#include "chrome/browser/predictors/loading_data_collector.h"
#include "chrome/browser/predictors/loading_predictor.h"
#include "chrome/browser/predictors/loading_predictor_factory.h"
#include "chrome/browser/predictors/predictors_features.h"
#include "components/history/core/test/history_service_test_util.h"
#include "components/page_load_metrics/browser/page_load_tracker.h"
#include "components/page_load_metrics/common/page_load_metrics.mojom.h"
#include "components/page_load_metrics/common/test/page_load_metrics_test_util.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/test_utils.h"
#include "content/public/test/web_contents_tester.h"
#include "third_party/blink/public/mojom/lcp_critical_path_predictor/lcp_critical_path_predictor.mojom.h"
namespace predictors {
class PredictorInitializer : public TestObserver { … };
}
class LcpCriticalPathPredictorPageLoadMetricsObserverTest
: public page_load_metrics::PageLoadMetricsObserverTestHarness { … };
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest,
MetricsRecordedWhenHintProvided) { … }
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest,
MetricsNotRecordedWithoutHint) { … }
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest,
PrerenderAndActivate) { … }
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest,
PrerenderButNotActivate) { … }
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest, PredictLCPSuccess) { … }
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest,
PredictLCPSuccess2) { … }
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest, PredictLCPFailed) { … }
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest, PredictLCPFailed2) { … }
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest, PredictLCPFailed3) { … }
TEST_F(LcpCriticalPathPredictorPageLoadMetricsObserverTest, PredictLCPFailed4) { … }