OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2014 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 class MockWebRtcSession : public webrtc::WebRtcSession { | 68 class MockWebRtcSession : public webrtc::WebRtcSession { |
69 public: | 69 public: |
70 // TODO(nisse): Valid overrides commented out, because the gmock | 70 // TODO(nisse): Valid overrides commented out, because the gmock |
71 // methods don't use any override declarations, and we want to avoid | 71 // methods don't use any override declarations, and we want to avoid |
72 // warnings from -Winconsistent-missing-override. See | 72 // warnings from -Winconsistent-missing-override. See |
73 // http://crbug.com/428099. | 73 // http://crbug.com/428099. |
74 explicit MockWebRtcSession(webrtc::MediaControllerInterface* media_controller) | 74 explicit MockWebRtcSession(webrtc::MediaControllerInterface* media_controller) |
75 : WebRtcSession(media_controller, | 75 : WebRtcSession(media_controller, |
76 rtc::Thread::Current(), | 76 rtc::Thread::Current(), |
77 rtc::Thread::Current(), | 77 rtc::Thread::Current(), |
| 78 rtc::Thread::Current(), |
78 nullptr) {} | 79 nullptr) {} |
79 MOCK_METHOD0(voice_channel, cricket::VoiceChannel*()); | 80 MOCK_METHOD0(voice_channel, cricket::VoiceChannel*()); |
80 MOCK_METHOD0(video_channel, cricket::VideoChannel*()); | 81 MOCK_METHOD0(video_channel, cricket::VideoChannel*()); |
81 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming | 82 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming |
82 // track. | 83 // track. |
83 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32_t, std::string*)); | 84 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32_t, std::string*)); |
84 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32_t, std::string*)); | 85 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32_t, std::string*)); |
85 MOCK_METHOD1(GetTransportStats, bool(SessionStats*)); | 86 MOCK_METHOD1(GetTransportStats, bool(SessionStats*)); |
86 MOCK_METHOD2(GetLocalCertificate, | 87 MOCK_METHOD2(GetLocalCertificate, |
87 bool(const std::string& transport_name, | 88 bool(const std::string& transport_name, |
(...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 cricket::VoiceSenderInfo new_voice_sender_info; | 1765 cricket::VoiceSenderInfo new_voice_sender_info; |
1765 InitVoiceSenderInfo(&new_voice_sender_info); | 1766 InitVoiceSenderInfo(&new_voice_sender_info); |
1766 cricket::VoiceMediaInfo new_stats_read; | 1767 cricket::VoiceMediaInfo new_stats_read; |
1767 reports.clear(); | 1768 reports.clear(); |
1768 SetupAndVerifyAudioTrackStats( | 1769 SetupAndVerifyAudioTrackStats( |
1769 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, | 1770 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, |
1770 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); | 1771 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); |
1771 } | 1772 } |
1772 | 1773 |
1773 } // namespace webrtc | 1774 } // namespace webrtc |
OLD | NEW |