Lines Matching refs:wtr_

88                                         wtr_.BindNewPipeAndPassReceiver());  in Initialize()
205 mojo::Remote<mojom::WatchTimeRecorder> wtr_; member in media::WatchTimeRecorderTest
228 wtr_->UpdateSecondaryProperties(CreateSecondaryProperties()); in TEST_F()
230 wtr_->RecordWatchTime(WatchTimeKey::kWatchTimeKeyMax, kWatchTime1); in TEST_F()
231 wtr_->RecordWatchTime(key, kWatchTime1); in TEST_F()
232 wtr_->RecordWatchTime(key, kWatchTime2); in TEST_F()
239 wtr_->FinalizeWatchTime({key}); in TEST_F()
252 wtr_.reset(); in TEST_F()
370 wtr_->RecordWatchTime(key, kWatchTime); in TEST_F()
371 wtr_->UpdateUnderflowCount(1); in TEST_F()
372 wtr_->UpdateUnderflowCount(2); in TEST_F()
375 wtr_->FinalizeWatchTime({}); in TEST_F()
384 wtr_->RecordWatchTime(key, kWatchTime); in TEST_F()
385 wtr_->FinalizeWatchTime({}); in TEST_F()
396 wtr_->RecordWatchTime(key, kWatchTimeShort); in TEST_F()
397 wtr_->UpdateUnderflowCount(1); in TEST_F()
398 wtr_->UpdateUnderflowCount(2); in TEST_F()
399 wtr_->FinalizeWatchTime({}); in TEST_F()
410 wtr_->UpdateSecondaryProperties(CreateSecondaryProperties()); in TEST_F()
414 wtr_->RecordWatchTime(key, kWatchTime); in TEST_F()
417 wtr_.reset(); in TEST_F()
447 wtr_->UpdateSecondaryProperties(secondary_properties.Clone()); in TEST_F()
451 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime); in TEST_F()
455 wtr_->FinalizeWatchTime({}); in TEST_F()
471 wtr_.reset(); in TEST_F()
527 wtr_->UpdateSecondaryProperties(secondary_properties.Clone()); in TEST_F()
531 wtr_->FinalizeWatchTime({}); in TEST_F()
548 wtr_.reset(); in TEST_F()
607 wtr_->UpdateSecondaryProperties(secondary_properties.Clone()); in TEST_F()
610 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime); in TEST_F()
611 wtr_.reset(); in TEST_F()
674 wtr_->UpdateSecondaryProperties(secondary_properties.Clone()); in TEST_F()
679 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime2); in TEST_F()
680 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAc, kWatchTime); in TEST_F()
683 wtr_->FinalizeWatchTime({WatchTimeKey::kAudioVideoAc}); in TEST_F()
684 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoBattery, kWatchTime); in TEST_F()
685 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoNativeControlsOn, kWatchTime); in TEST_F()
686 wtr_->FinalizeWatchTime({WatchTimeKey::kAudioVideoNativeControlsOn}); in TEST_F()
687 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoNativeControlsOff, kWatchTime); in TEST_F()
688 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoDisplayFullscreen, in TEST_F()
690 wtr_->FinalizeWatchTime({WatchTimeKey::kAudioVideoDisplayFullscreen}); in TEST_F()
691 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoDisplayInline, kWatchTime3); in TEST_F()
692 wtr_->FinalizeWatchTime({WatchTimeKey::kAudioVideoDisplayInline}); in TEST_F()
693 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoDisplayPictureInPicture, in TEST_F()
695 wtr_->UpdateUnderflowCount(3); in TEST_F()
698 wtr_->UpdateUnderflowDuration(2, kUnderflowDuration); in TEST_F()
699 wtr_->UpdateVideoDecodeStats(10, 2); in TEST_F()
700 wtr_->OnError(PIPELINE_ERROR_DECODE); in TEST_F()
704 wtr_->UpdateSecondaryProperties(secondary_properties.Clone()); in TEST_F()
706 wtr_->SetAutoplayInitiated(true); in TEST_F()
708 wtr_->OnDurationChanged(base::TimeDelta::FromSeconds(9500)); in TEST_F()
710 wtr_.reset(); in TEST_F()
780 wtr_->UpdateSecondaryProperties(secondary_properties.Clone()); in TEST_F()
783 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoBackgroundAll, kWatchTime); in TEST_F()
784 wtr_.reset(); in TEST_F()
847 wtr_->UpdateSecondaryProperties(secondary_properties.Clone()); in TEST_F()
849 wtr_->OnDurationChanged(base::TimeDelta::FromSeconds(12345)); in TEST_F()
850 wtr_.reset(); in TEST_F()
914 wtr_->UpdateSecondaryProperties(secondary_properties.Clone()); in TEST_F()
916 wtr_->OnDurationChanged(kInfiniteDuration); in TEST_F()
917 wtr_.reset(); in TEST_F()
982 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime); in TEST_F()
983 wtr_.reset(); in TEST_F()
998 wtr_->UpdateSecondaryProperties(secondary_properties1.Clone()); in TEST_F()
1001 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime); in TEST_F()
1009 wtr_->UpdateSecondaryProperties(secondary_properties2.Clone()); in TEST_F()
1011 wtr_.reset(); in TEST_F()
1066 wtr_->UpdateSecondaryProperties(secondary_properties1.Clone()); in TEST_F()
1072 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime1); in TEST_F()
1073 wtr_->UpdateUnderflowCount(kUnderflowCount1); in TEST_F()
1074 wtr_->UpdateUnderflowDuration(kUnderflowCount1, kUnderflowDuration); in TEST_F()
1078 wtr_->UpdateVideoDecodeStats(kDecodedFrameCount1, kDroppedFrameCount1); in TEST_F()
1085 wtr_->UpdateSecondaryProperties(secondary_properties2.Clone()); in TEST_F()
1092 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, in TEST_F()
1094 wtr_->UpdateUnderflowCount(kUnderflowCount1 + kUnderflowCount2); in TEST_F()
1095 wtr_->OnError(PIPELINE_ERROR_DECODE); in TEST_F()
1096 wtr_->OnDurationChanged(base::TimeDelta::FromSeconds(5125)); in TEST_F()
1100 wtr_->UpdateVideoDecodeStats(kDecodedFrameCount1 + kDecodedFrameCount2, in TEST_F()
1103 wtr_.reset(); in TEST_F()
1196 wtr_->UpdateSecondaryProperties(secondary_properties1.Clone()); in TEST_F()
1202 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime1); in TEST_F()
1203 wtr_->UpdateUnderflowCount(kUnderflowCount1); in TEST_F()
1204 wtr_->UpdateUnderflowDuration(kUnderflowCount1, kUnderflowDuration); in TEST_F()
1208 wtr_->UpdateVideoDecodeStats(kDecodedFrameCount1, kDroppedFrameCount1); in TEST_F()
1216 wtr_->UpdateSecondaryProperties(secondary_properties2.Clone()); in TEST_F()
1221 wtr_.reset(); in TEST_F()
1309 wtr_->UpdateSecondaryProperties(secondary_properties1.Clone()); in TEST_F()
1315 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime1); in TEST_F()
1316 wtr_->UpdateUnderflowCount(kUnderflowCount1); in TEST_F()
1317 wtr_->UpdateUnderflowDuration(kUnderflowCount1, kUnderflowDuration); in TEST_F()
1321 wtr_->UpdateVideoDecodeStats(kDecodedFrameCount1, kDroppedFrameCount1); in TEST_F()
1325 wtr_->FinalizeWatchTime({}); in TEST_F()
1333 wtr_->UpdateSecondaryProperties(secondary_properties2.Clone()); in TEST_F()
1338 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime2); in TEST_F()
1339 wtr_->UpdateUnderflowCount(kUnderflowCount2); in TEST_F()
1340 wtr_->OnError(PIPELINE_ERROR_DECODE); in TEST_F()
1342 wtr_.reset(); in TEST_F()
1434 wtr_->UpdateSecondaryProperties(secondary_properties1.Clone()); in TEST_F()
1440 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, kWatchTime1); in TEST_F()
1441 wtr_->UpdateUnderflowCount(kUnderflowCount1); in TEST_F()
1444 wtr_->UpdateUnderflowDuration(kUnderflowCount1 - 1, kUnderflowDuration); in TEST_F()
1452 wtr_->UpdateSecondaryProperties(secondary_properties2.Clone()); in TEST_F()
1459 wtr_->RecordWatchTime(WatchTimeKey::kAudioVideoAll, in TEST_F()
1461 wtr_->UpdateUnderflowCount(kUnderflowCount1 + kUnderflowCount2); in TEST_F()
1466 wtr_->UpdateUnderflowDuration(kUnderflowCount1, kUnderflowDuration * 1.5); in TEST_F()
1468 wtr_->OnError(PIPELINE_ERROR_DECODE); in TEST_F()
1469 wtr_->OnDurationChanged(base::TimeDelta::FromSeconds(5125)); in TEST_F()
1471 wtr_.reset(); in TEST_F()