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

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

Issue 178073004: Cast: IPC from browser to renderer to send packet events from transport to cast library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix sender app Created 6 years, 10 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 0332dd4f98ce0baff128dd126d483c34c9fe333d..b120fe6c129a2d2d1d587db841784a0c6a53c35e 100644
--- a/chrome/browser/media/cast_transport_host_filter_unittest.cc
+++ b/chrome/browser/media/cast_transport_host_filter_unittest.cc
@@ -7,6 +7,7 @@
#include "base/time/default_tick_clock.h"
#include "chrome/browser/media/cast_transport_host_filter.h"
#include "content/public/test/test_browser_thread_bundle.h"
+#include "media/cast/logging/logging_defines.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -52,8 +53,9 @@ TEST_F(CastTransportHostFilterTest, NewDelete) {
media::cast::transport::CastTransportConfig config;
config.local_endpoint = GetLocalEndPoint();
config.receiver_endpoint = GetRemoteEndPoint();
+ media::cast::CastLoggingConfig logging_config;
const int kChannelId = 17;
- CastHostMsg_New new_msg(kChannelId, config);
+ CastHostMsg_New new_msg(kChannelId, config, logging_config);
CastHostMsg_Delete delete_msg(kChannelId);
// New, then delete, as expected.
@@ -76,11 +78,12 @@ TEST_F(CastTransportHostFilterTest, NewDelete) {
TEST_F(CastTransportHostFilterTest, NewMany) {
media::cast::transport::CastTransportConfig config;
+ media::cast::CastLoggingConfig logging_config;
config.local_endpoint = GetLocalEndPoint();
config.receiver_endpoint = GetRemoteEndPoint();
for (int i = 0; i < 100; i++) {
- CastHostMsg_New new_msg(i, config);
+ CastHostMsg_New new_msg(i, config, logging_config);
FakeSend(new_msg);
}
@@ -97,8 +100,9 @@ TEST_F(CastTransportHostFilterTest, SimpleMessages) {
media::cast::transport::CastTransportConfig config;
config.local_endpoint = GetLocalEndPoint();
config.receiver_endpoint = GetRemoteEndPoint();
+ media::cast::CastLoggingConfig logging_config;
const int32 kChannelId = 42;
- CastHostMsg_New new_msg(kChannelId, config);
+ CastHostMsg_New new_msg(kChannelId, config, logging_config);
FakeSend(new_msg);
media::cast::transport::EncodedAudioFrame audio_frame;

Powered by Google App Engine
This is Rietveld 408576698