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

Unified Diff: chrome/browser/media/cast_transport_host_filter_unittest.cc

Issue 288103002: [Cast] EncodedAudioFrame+EncodedVideoFrame+reference_time --> EncodedFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed hclam@'s first round comments. Fixed chrome unit_tests compiles. Created 6 years, 7 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
Index: chrome/browser/media/cast_transport_host_filter_unittest.cc
diff --git a/chrome/browser/media/cast_transport_host_filter_unittest.cc b/chrome/browser/media/cast_transport_host_filter_unittest.cc
index ccb6d16b899e6b66f14e2dc6cd9fffe45cef37fe..9ceb17f6271a1d9fe4c3fc52ae3ed6e9d6dc5127 100644
--- a/chrome/browser/media/cast_transport_host_filter_unittest.cc
+++ b/chrome/browser/media/cast_transport_host_filter_unittest.cc
@@ -91,29 +91,29 @@ TEST_F(CastTransportHostFilterTest, SimpleMessages) {
media::cast::transport::CastTransportVideoConfig video_config;
CastHostMsg_InitializeVideo init_video_msg(kChannelId, video_config);
FakeSend(init_video_msg);
- media::cast::transport::EncodedAudioFrame audio_frame;
- audio_frame.codec = media::cast::transport::kPcm16;
+ media::cast::transport::EncodedFrame audio_frame;
+ audio_frame.relationship = media::cast::transport::EncodedFrame::KEY;
audio_frame.frame_id = 1;
+ audio_frame.referenced_frame_id = 1;
audio_frame.rtp_timestamp = 47;
const int kSamples = 47;
const int kBytesPerSample = 2;
const int kChannels = 2;
audio_frame.data = std::string(kSamples * kBytesPerSample * kChannels, 'q');
CastHostMsg_InsertCodedAudioFrame insert_coded_audio_frame(
- kChannelId, audio_frame, base::TimeTicks::Now());
+ kChannelId, audio_frame);
FakeSend(insert_coded_audio_frame);
- media::cast::transport::EncodedVideoFrame video_frame;
- video_frame.codec = media::cast::transport::kVp8;
- video_frame.key_frame = true;
+ media::cast::transport::EncodedFrame video_frame;
+ video_frame.relationship = media::cast::transport::EncodedFrame::KEY;
video_frame.frame_id = 1;
- video_frame.last_referenced_frame_id = 0;
+ video_frame.referenced_frame_id = 1;
// Let's make sure we try a few kb so multiple packets
// are generated.
const int kVideoDataSize = 4711;
video_frame.data = std::string(kVideoDataSize, 'p');
CastHostMsg_InsertCodedVideoFrame insert_coded_video_frame(
- kChannelId, video_frame, base::TimeTicks::Now());
+ kChannelId, video_frame);
FakeSend(insert_coded_video_frame);
media::cast::transport::SendRtcpFromRtpSenderData rtcp_data;

Powered by Google App Engine
This is Rietveld 408576698