OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 nullptr, | 43 nullptr, |
44 /*redetermine_role_on_ice_restart=*/true, | 44 /*redetermine_role_on_ice_restart=*/true, |
45 rtc::CryptoOptions())), | 45 rtc::CryptoOptions())), |
46 std::unique_ptr<cricket::SctpTransportInternalFactory>()) {} | 46 std::unique_ptr<cricket::SctpTransportInternalFactory>()) {} |
47 MOCK_METHOD0(voice_channel, cricket::VoiceChannel*()); | 47 MOCK_METHOD0(voice_channel, cricket::VoiceChannel*()); |
48 MOCK_METHOD0(video_channel, cricket::VideoChannel*()); | 48 MOCK_METHOD0(video_channel, cricket::VideoChannel*()); |
49 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming | 49 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming |
50 // track. | 50 // track. |
51 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32_t, std::string*)); | 51 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32_t, std::string*)); |
52 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32_t, std::string*)); | 52 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32_t, std::string*)); |
53 MOCK_METHOD0(GetCallStats, Call::Stats()); | |
54 MOCK_METHOD1(GetStats, | 53 MOCK_METHOD1(GetStats, |
55 std::unique_ptr<SessionStats>(const ChannelNamePairs&)); | 54 std::unique_ptr<SessionStats>(const ChannelNamePairs&)); |
56 MOCK_METHOD2(GetLocalCertificate, | 55 MOCK_METHOD2(GetLocalCertificate, |
57 bool(const std::string& transport_name, | 56 bool(const std::string& transport_name, |
58 rtc::scoped_refptr<rtc::RTCCertificate>* certificate)); | 57 rtc::scoped_refptr<rtc::RTCCertificate>* certificate)); |
59 | 58 |
60 // Workaround for gmock's inability to cope with move-only return values. | 59 // Workaround for gmock's inability to cope with move-only return values. |
61 std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate( | 60 std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate( |
62 const std::string& transport_name) /* override */ { | 61 const std::string& transport_name) /* override */ { |
63 return std::unique_ptr<rtc::SSLCertificate>( | 62 return std::unique_ptr<rtc::SSLCertificate>( |
64 GetRemoteSSLCertificate_ReturnsRawPointer(transport_name)); | 63 GetRemoteSSLCertificate_ReturnsRawPointer(transport_name)); |
65 } | 64 } |
66 MOCK_METHOD1(GetRemoteSSLCertificate_ReturnsRawPointer, | 65 MOCK_METHOD1(GetRemoteSSLCertificate_ReturnsRawPointer, |
67 rtc::SSLCertificate*(const std::string& transport_name)); | 66 rtc::SSLCertificate*(const std::string& transport_name)); |
68 }; | 67 }; |
69 | 68 |
70 } // namespace webrtc | 69 } // namespace webrtc |
71 | 70 |
72 #endif // WEBRTC_PC_TEST_MOCK_WEBRTCSESSION_H_ | 71 #endif // WEBRTC_PC_TEST_MOCK_WEBRTCSESSION_H_ |
OLD | NEW |