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

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

Issue 519443002: Cast: merge InsertCoded{Audio,Video}Frame into InsertFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more missing test file fixed Created 6 years, 3 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 3bcdef417c49b3d656ff2c962f7e05fd4370f308..20b2641eebb20c652ef5d719b084b01f507ed80a 100644
--- a/chrome/browser/media/cast_transport_host_filter_unittest.cc
+++ b/chrome/browser/media/cast_transport_host_filter_unittest.cc
@@ -105,9 +105,8 @@ TEST_F(CastTransportHostFilterTest, SimpleMessages) {
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);
- FakeSend(insert_coded_audio_frame);
+ CastHostMsg_InsertFrame insert_audio_frame(1, kChannelId, audio_frame);
+ FakeSend(insert_audio_frame);
media::cast::EncodedFrame video_frame;
video_frame.dependency = media::cast::EncodedFrame::KEY;
@@ -117,9 +116,8 @@ TEST_F(CastTransportHostFilterTest, SimpleMessages) {
// are generated.
const int kVideoDataSize = 4711;
video_frame.data = std::string(kVideoDataSize, 'p');
- CastHostMsg_InsertCodedVideoFrame insert_coded_video_frame(
- kChannelId, video_frame);
- FakeSend(insert_coded_video_frame);
+ CastHostMsg_InsertFrame insert_video_frame(11, kChannelId, video_frame);
+ FakeSend(insert_video_frame);
CastHostMsg_SendSenderReport rtcp_msg(
kChannelId, 1, base::TimeTicks(), 2);
« 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