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

Unified Diff: extensions/browser/api/cast_channel/cast_channel_apitest.cc

Issue 807723004: Cast audio only policy enforcement support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check audio only policy against client auth certificate part of the response Created 5 years, 11 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: extensions/browser/api/cast_channel/cast_channel_apitest.cc
diff --git a/extensions/browser/api/cast_channel/cast_channel_apitest.cc b/extensions/browser/api/cast_channel/cast_channel_apitest.cc
index 2b5fa6b1492c5f99118517cd3c7e765c596d8cff..45314c837f870f9fd823cfea1de3ad0065baae97 100644
--- a/extensions/browser/api/cast_channel/cast_channel_apitest.cc
+++ b/extensions/browser/api/cast_channel/cast_channel_apitest.cc
@@ -103,6 +103,7 @@ class MockCastSocket : public CastSocket {
MOCK_CONST_METHOD0(ip_endpoint, const net::IPEndPoint&());
MOCK_CONST_METHOD0(id, int());
MOCK_METHOD1(set_id, void(int id));
+ MOCK_METHOD1(set_has_video_out, void(bool has_video_out));
MOCK_CONST_METHOD0(channel_auth, ChannelAuthType());
MOCK_CONST_METHOD0(cast_url, std::string());
MOCK_CONST_METHOD0(ready_state, ReadyState());
@@ -144,6 +145,8 @@ class CastChannelAPITest : public ExtensionApiTest {
.WillByDefault(SaveArg<0>(&channel_id_));
ON_CALL(*mock_cast_socket_, id())
.WillByDefault(ReturnPointee(&channel_id_));
+ ON_CALL(*mock_cast_socket_, set_has_video_out(_))
+ .WillByDefault(SaveArg<0>(&has_video_out_));
ON_CALL(*mock_cast_socket_, ip_endpoint())
.WillByDefault(ReturnRef(ip_endpoint_));
ON_CALL(*mock_cast_socket_, channel_auth())
@@ -234,6 +237,7 @@ class CastChannelAPITest : public ExtensionApiTest {
CastTransport::Delegate* message_delegate_;
net::CapturingNetLog capturing_net_log_;
int channel_id_;
+ bool has_video_out_;
};
// TODO(munjal): Win Dbg has a workaround that makes RunExtensionSubtest

Powered by Google App Engine
This is Rietveld 408576698