| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/browser/api/cast_channel/cast_socket.h" | 5 #include "extensions/browser/api/cast_channel/cast_socket.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 using ::testing::_; | 36 using ::testing::_; |
| 37 using ::testing::A; | 37 using ::testing::A; |
| 38 using ::testing::DoAll; | 38 using ::testing::DoAll; |
| 39 using ::testing::Invoke; | 39 using ::testing::Invoke; |
| 40 using ::testing::InvokeArgument; | 40 using ::testing::InvokeArgument; |
| 41 using ::testing::NotNull; | 41 using ::testing::NotNull; |
| 42 using ::testing::Return; | 42 using ::testing::Return; |
| 43 using ::testing::SaveArg; | 43 using ::testing::SaveArg; |
| 44 | 44 |
| 45 namespace extensions { | 45 namespace extensions { |
| 46 namespace core_api { | 46 namespace api { |
| 47 namespace cast_channel { | 47 namespace cast_channel { |
| 48 const char kAuthNamespace[] = "urn:x-cast:com.google.cast.tp.deviceauth"; | 48 const char kAuthNamespace[] = "urn:x-cast:com.google.cast.tp.deviceauth"; |
| 49 | 49 |
| 50 // Returns an auth challenge message inline. | 50 // Returns an auth challenge message inline. |
| 51 CastMessage CreateAuthChallenge() { | 51 CastMessage CreateAuthChallenge() { |
| 52 CastMessage output; | 52 CastMessage output; |
| 53 CreateAuthChallengeMessage(&output); | 53 CreateAuthChallengeMessage(&output); |
| 54 return output; | 54 return output; |
| 55 } | 55 } |
| 56 | 56 |
| (...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 } | 939 } |
| 940 | 940 |
| 941 // Tests channel policy verification for device with video out capability. | 941 // Tests channel policy verification for device with video out capability. |
| 942 TEST_F(CastSocketTest, TestChannelPolicyVerificationCapabilitiesVideoOut) { | 942 TEST_F(CastSocketTest, TestChannelPolicyVerificationCapabilitiesVideoOut) { |
| 943 socket_ = TestCastSocket::Create( | 943 socket_ = TestCastSocket::Create( |
| 944 logger_, cast_channel::CastDeviceCapability::VIDEO_OUT); | 944 logger_, cast_channel::CastDeviceCapability::VIDEO_OUT); |
| 945 EXPECT_TRUE(socket_->TestVerifyChannelPolicyNone()); | 945 EXPECT_TRUE(socket_->TestVerifyChannelPolicyNone()); |
| 946 EXPECT_FALSE(socket_->TestVerifyChannelPolicyAudioOnly()); | 946 EXPECT_FALSE(socket_->TestVerifyChannelPolicyAudioOnly()); |
| 947 } | 947 } |
| 948 } // namespace cast_channel | 948 } // namespace cast_channel |
| 949 } // namespace core_api | 949 } // namespace api |
| 950 } // namespace extensions | 950 } // namespace extensions |
| OLD | NEW |