#include "chrome/browser/page_load_metrics/observers/translate_page_load_metrics_observer.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h"
#include "components/page_load_metrics/browser/page_load_tracker.h"
#include "components/translate/core/browser/mock_translate_metrics_logger.h"
#include "components/translate/core/browser/translate_metrics_logger.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
class MockTranslateMetricsLoggerContainer
: public translate::TranslateMetricsLogger { … };
class TranslatePageLoadMetricsObserverTest
: public page_load_metrics::PageLoadMetricsObserverTestHarness { … };
TEST_F(TranslatePageLoadMetricsObserverTest, SinglePageLoad) { … }
TEST_F(TranslatePageLoadMetricsObserverTest, AppEntersBackground) { … }
TEST_F(TranslatePageLoadMetricsObserverTest, RepeatedAppEntersBackground) { … }
TEST_F(TranslatePageLoadMetricsObserverTest, PrerenderAndActivation) { … }