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

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

Issue 551883004: Cast: Let the extension control if DSCP is on or off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed 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 20b2641eebb20c652ef5d719b084b01f507ed80a..c367dc5e35bdc76d01fe3e7ad3c0e0c313bab1eb 100644
--- a/chrome/browser/media/cast_transport_host_filter_unittest.cc
+++ b/chrome/browser/media/cast_transport_host_filter_unittest.cc
@@ -33,6 +33,7 @@ class CastTransportHostFilterTest : public testing::Test {
EXPECT_TRUE(filter_->OnMessageReceived(message));
}
+ base::DictionaryValue options_;
content::TestBrowserThreadBundle browser_thread_bundle_;
scoped_refptr<content::BrowserMessageFilter> filter_;
net::IPAddressNumber receiver_address_;
@@ -41,7 +42,7 @@ class CastTransportHostFilterTest : public testing::Test {
TEST_F(CastTransportHostFilterTest, NewDelete) {
const int kChannelId = 17;
- CastHostMsg_New new_msg(kChannelId, receive_endpoint_);
+ CastHostMsg_New new_msg(kChannelId, receive_endpoint_, options_);
CastHostMsg_Delete delete_msg(kChannelId);
// New, then delete, as expected.
@@ -64,7 +65,7 @@ TEST_F(CastTransportHostFilterTest, NewDelete) {
TEST_F(CastTransportHostFilterTest, NewMany) {
for (int i = 0; i < 100; i++) {
- CastHostMsg_New new_msg(i, receive_endpoint_);
+ CastHostMsg_New new_msg(i, receive_endpoint_, options_);
FakeSend(new_msg);
}
@@ -79,7 +80,7 @@ TEST_F(CastTransportHostFilterTest, NewMany) {
TEST_F(CastTransportHostFilterTest, SimpleMessages) {
// Create a cast transport sender.
const int32 kChannelId = 42;
- CastHostMsg_New new_msg(kChannelId, receive_endpoint_);
+ CastHostMsg_New new_msg(kChannelId, receive_endpoint_, options_);
FakeSend(new_msg);
media::cast::CastTransportRtpConfig audio_config;
« 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