#include "components/page_load_metrics/renderer/page_timing_metadata_recorder.h"
#include <string_view>
#include <vector>
#include "base/profiler/sample_metadata.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace page_load_metrics {
struct MetadataTaggingRequest { … };
class TestPageTimingMetadataRecorder : public PageTimingMetadataRecorder { … };
PageTimingMetadataRecorderTest;
TEST_F(PageTimingMetadataRecorderTest, FirstContentfulPaintUpdate) { … }
TEST_F(PageTimingMetadataRecorderTest, FirstContentfulPaintInvalidDuration) { … }
TEST_F(PageTimingMetadataRecorderTest, FirstInputDelayUpdate) { … }
TEST_F(PageTimingMetadataRecorderTest, FirstInputDelayInvalidDuration) { … }
TEST_F(PageTimingMetadataRecorderTest, MainFrameLargestContentfulPaintUpdate) { … }
TEST_F(PageTimingMetadataRecorderTest, SubFrameLargestContentfulPaintUpdate) { … }
TEST_F(PageTimingMetadataRecorderTest,
FrameLargestContentfulPaintInvalidDuration) { … }
namespace {
uint32_t ExtractInstanceIdFromKey(int64_t key) { … }
uint32_t ExtractInteractionIdFromKey(int64_t key) { … }
}
TEST_F(PageTimingMetadataRecorderTest,
InteractionDurationMultipleInteractions) { … }
TEST_F(PageTimingMetadataRecorderTest, InteractionDurationMultipleRecorders) { … }
TEST_F(PageTimingMetadataRecorderTest, InteractionDurationInvalidDuration) { … }
TEST_F(PageTimingMetadataRecorderTest,
InteractionDurationMetadataKeySignednessTest) { … }
TEST_F(PageTimingMetadataRecorderTest,
InteractionDurationQueuedDurationSucceed) { … }
TEST_F(PageTimingMetadataRecorderTest,
InteractionDurationQueuedInvalidDurationRejected) { … }
TEST_F(PageTimingMetadataRecorderTest,
InteractionDurationQueuedEmptyCommitFinishTimeFallbackToPresentation) { … }
}