#include "chrome/browser/page_load_metrics/observers/gws_page_load_metrics_observer.h"
#include <vector>
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "chrome/browser/after_startup_task_utils.h"
#include "chrome/browser/page_load_metrics/observers/histogram_suffixes.h"
#include "chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h"
#include "components/page_load_metrics/browser/metrics_web_contents_observer.h"
#include "components/page_load_metrics/browser/page_load_metrics_util.h"
#include "components/page_load_metrics/browser/page_load_tracker.h"
#include "components/page_load_metrics/common/test/page_load_metrics_test_util.h"
#include "components/page_load_metrics/google/browser/gws_abandoned_page_load_metrics_observer.h"
#include "content/public/browser/web_contents.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "third_party/blink/public/common/input/web_mouse_event.h"
namespace {
constexpr char kGoogleSearchResultsUrl[] = …;
}
class GWSPageLoadMetricsObserverTest
: public page_load_metrics::PageLoadMetricsObserverTestHarness { … };
TEST_F(GWSPageLoadMetricsObserverTest, Search) { … }
TEST_F(GWSPageLoadMetricsObserverTest, NonSearch) { … }
TEST_F(GWSPageLoadMetricsObserverTest, SearchBackground) { … }
TEST_F(GWSPageLoadMetricsObserverTest, SearchBackgroundLater) { … }
TEST_F(GWSPageLoadMetricsObserverTest, CustomUserTimingMark) { … }