Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: media/cast/logging/logging_impl_unittest.cc

Issue 228603006: Cast: Log whether the video frame is a key frame in kVideoFrameEncoded (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win x64 compile Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/logging/logging_impl.cc ('k') | media/cast/logging/logging_raw.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/logging_impl_unittest.cc
diff --git a/media/cast/logging/logging_impl_unittest.cc b/media/cast/logging/logging_impl_unittest.cc
index 4aceecb2264e42af08d3c2caea5a2be916a0e2f7..44212e0de112b65c2890a84d9105a882ff12a2bc 100644
--- a/media/cast/logging/logging_impl_unittest.cc
+++ b/media/cast/logging/logging_impl_unittest.cc
@@ -82,9 +82,9 @@ TEST_F(LoggingImplTest, FrameLoggingWithSize) {
int size = kBaseFrameSizeBytes +
base::RandInt(-kRandomSizeInterval, kRandomSizeInterval);
sum_size += static_cast<size_t>(size);
- logging_.InsertFrameEventWithSize(testing_clock_.NowTicks(),
- kAudioFrameCaptured, rtp_timestamp,
- frame_id, size);
+ logging_.InsertEncodedFrameEvent(testing_clock_.NowTicks(),
+ kVideoFrameEncoded, rtp_timestamp,
+ frame_id, size, true);
testing_clock_.Advance(base::TimeDelta::FromMilliseconds(kFrameIntervalMs));
rtp_timestamp += kFrameIntervalMs * 90;
++frame_id;
@@ -135,9 +135,9 @@ TEST_F(LoggingImplTest, MultipleEventFrameLogging) {
rtp_timestamp, frame_id);
++num_events;
if (frame_id % 2) {
- logging_.InsertFrameEventWithSize(testing_clock_.NowTicks(),
- kAudioFrameEncoded, rtp_timestamp,
- frame_id, 1500);
+ logging_.InsertEncodedFrameEvent(testing_clock_.NowTicks(),
+ kAudioFrameEncoded, rtp_timestamp,
+ frame_id, 1500, true);
} else if (frame_id % 3) {
logging_.InsertFrameEvent(testing_clock_.NowTicks(), kVideoFrameDecoded,
rtp_timestamp, frame_id);
« no previous file with comments | « media/cast/logging/logging_impl.cc ('k') | media/cast/logging/logging_raw.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698