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()); |
53 MOCK_METHOD1(GetStats, | 54 MOCK_METHOD1(GetStats, |
54 std::unique_ptr<SessionStats>(const ChannelNamePairs&)); | 55 std::unique_ptr<SessionStats>(const ChannelNamePairs&)); |
55 MOCK_METHOD2(GetLocalCertificate, | 56 MOCK_METHOD2(GetLocalCertificate, |
56 bool(const std::string& transport_name, | 57 bool(const std::string& transport_name, |
57 rtc::scoped_refptr<rtc::RTCCertificate>* certificate)); | 58 rtc::scoped_refptr<rtc::RTCCertificate>* certificate)); |
58 | 59 |
59 // Workaround for gmock's inability to cope with move-only return values. | 60 // Workaround for gmock's inability to cope with move-only return values. |
60 std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate( | 61 std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate( |
61 const std::string& transport_name) /* override */ { | 62 const std::string& transport_name) /* override */ { |
62 return std::unique_ptr<rtc::SSLCertificate>( | 63 return std::unique_ptr<rtc::SSLCertificate>( |
63 GetRemoteSSLCertificate_ReturnsRawPointer(transport_name)); | 64 GetRemoteSSLCertificate_ReturnsRawPointer(transport_name)); |
64 } | 65 } |
65 MOCK_METHOD1(GetRemoteSSLCertificate_ReturnsRawPointer, | 66 MOCK_METHOD1(GetRemoteSSLCertificate_ReturnsRawPointer, |
66 rtc::SSLCertificate*(const std::string& transport_name)); | 67 rtc::SSLCertificate*(const std::string& transport_name)); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace webrtc | 70 } // namespace webrtc |
70 | 71 |
71 #endif // WEBRTC_PC_TEST_MOCK_WEBRTCSESSION_H_ | 72 #endif // WEBRTC_PC_TEST_MOCK_WEBRTCSESSION_H_ |
OLD | NEW |