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

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: Created 6 years, 9 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/chrome_browser.gypi » ('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 c7139a4f2f7a3c8682e91877f54ea17166180cd8..0061d7036db3f57ff55ade13d18186f50c184bb2 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 {
@@ -14,8 +15,9 @@ namespace {
class CastTransportHostFilterTest : public testing::Test {
public:
CastTransportHostFilterTest()
- : browser_thread_bundle_(
- content::TestBrowserThreadBundle::IO_MAINLOOP) {
+ : browser_thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP),
+ logging_config_(
+ media::cast::GetLoggingConfigWithRawEventsAndStatsEnabled()) {
filter_ = new cast::CastTransportHostFilter();
local_endpoint_ = net::IPEndPoint(net::IPAddressNumber(4, 0), 0);
// 127.0.0.1:7 is the local echo service port, which
@@ -40,11 +42,13 @@ class CastTransportHostFilterTest : public testing::Test {
net::IPAddressNumber receiver_address_;
net::IPEndPoint local_endpoint_;
net::IPEndPoint receive_endpoint_;
+ media::cast::CastLoggingConfig logging_config_;
};
TEST_F(CastTransportHostFilterTest, NewDelete) {
const int kChannelId = 17;
- CastHostMsg_New new_msg(kChannelId, local_endpoint_, receive_endpoint_);
+ CastHostMsg_New new_msg(
+ kChannelId, local_endpoint_, receive_endpoint_, logging_config_);
CastHostMsg_Delete delete_msg(kChannelId);
// New, then delete, as expected.
@@ -67,7 +71,8 @@ TEST_F(CastTransportHostFilterTest, NewDelete) {
TEST_F(CastTransportHostFilterTest, NewMany) {
for (int i = 0; i < 100; i++) {
- CastHostMsg_New new_msg(i, local_endpoint_, receive_endpoint_);
+ CastHostMsg_New new_msg(
+ i, local_endpoint_, receive_endpoint_, logging_config_);
FakeSend(new_msg);
}
@@ -82,7 +87,8 @@ TEST_F(CastTransportHostFilterTest, NewMany) {
TEST_F(CastTransportHostFilterTest, SimpleMessages) {
// Create a cast transport sender.
const int32 kChannelId = 42;
- CastHostMsg_New new_msg(kChannelId, local_endpoint_, receive_endpoint_);
+ CastHostMsg_New new_msg(
+ kChannelId, local_endpoint_, receive_endpoint_, logging_config_);
FakeSend(new_msg);
media::cast::transport::CastTransportAudioConfig audio_config;
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698