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

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: rebase 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
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.cc ('k') | chrome/common/cast_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1ffdc4da0c65fe17f762e94ea9d5a8b9856f2aa6..5eee51c374b79db50d645f05e2aa0183567bb755 100644
--- a/chrome/browser/media/cast_transport_host_filter_unittest.cc
+++ b/chrome/browser/media/cast_transport_host_filter_unittest.cc
@@ -89,29 +89,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.dependency = 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.dependency = 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;
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.cc ('k') | chrome/common/cast_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698