#include "components/page_load_metrics/renderer/metrics_render_frame_observer.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/time/time.h"
#include "base/timer/mock_timer.h"
#include "components/page_load_metrics/common/page_load_metrics.mojom-forward.h"
#include "components/page_load_metrics/common/page_load_timing.h"
#include "components/page_load_metrics/common/test/weak_mock_timer.h"
#include "components/page_load_metrics/renderer/fake_page_timing_sender.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace page_load_metrics {
class TestMetricsRenderFrameObserver : public MetricsRenderFrameObserver,
public test::WeakMockTimerProvider { … };
MetricsRenderFrameObserverTest;
TEST_F(MetricsRenderFrameObserverTest, NoMetrics) { … }
TEST_F(MetricsRenderFrameObserverTest, SingleMetric) { … }
TEST_F(MetricsRenderFrameObserverTest,
MainFrameIntersectionUpdateBeforeMetricsSenderCreated) { … }
TEST_F(MetricsRenderFrameObserverTest, SingleCpuMetric) { … }
TEST_F(MetricsRenderFrameObserverTest, MultipleMetrics) { … }
TEST_F(MetricsRenderFrameObserverTest, MultipleNavigations) { … }
}