OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 MockPeerConnection() | 113 MockPeerConnection() |
114 : rtc::RefCountedObject<webrtc::PeerConnection>( | 114 : rtc::RefCountedObject<webrtc::PeerConnection>( |
115 new FakePeerConnectionFactory()) {} | 115 new FakePeerConnectionFactory()) {} |
116 MOCK_METHOD0(session, WebRtcSession*()); | 116 MOCK_METHOD0(session, WebRtcSession*()); |
117 MOCK_CONST_METHOD0(sctp_data_channels, | 117 MOCK_CONST_METHOD0(sctp_data_channels, |
118 const std::vector<rtc::scoped_refptr<DataChannel>>&()); | 118 const std::vector<rtc::scoped_refptr<DataChannel>>&()); |
119 }; | 119 }; |
120 | 120 |
121 class MockVideoMediaChannel : public cricket::FakeVideoMediaChannel { | 121 class MockVideoMediaChannel : public cricket::FakeVideoMediaChannel { |
122 public: | 122 public: |
123 MockVideoMediaChannel() : | 123 MockVideoMediaChannel() |
124 cricket::FakeVideoMediaChannel(NULL, cricket::VideoOptions()) {} | 124 : cricket::FakeVideoMediaChannel(NULL, |
| 125 cricket::MediaChannelOptions(), |
| 126 cricket::VideoOptions()) {} |
125 MOCK_METHOD1(GetStats, bool(cricket::VideoMediaInfo*)); | 127 MOCK_METHOD1(GetStats, bool(cricket::VideoMediaInfo*)); |
126 }; | 128 }; |
127 | 129 |
128 class MockVoiceMediaChannel : public cricket::FakeVoiceMediaChannel { | 130 class MockVoiceMediaChannel : public cricket::FakeVoiceMediaChannel { |
129 public: | 131 public: |
130 MockVoiceMediaChannel() : | 132 MockVoiceMediaChannel() |
131 cricket::FakeVoiceMediaChannel(NULL, cricket::AudioOptions()) {} | 133 : cricket::FakeVoiceMediaChannel(NULL, |
| 134 cricket::MediaChannelOptions(), |
| 135 cricket::AudioOptions()) {} |
132 MOCK_METHOD1(GetStats, bool(cricket::VoiceMediaInfo*)); | 136 MOCK_METHOD1(GetStats, bool(cricket::VoiceMediaInfo*)); |
133 }; | 137 }; |
134 | 138 |
135 class FakeAudioProcessor : public webrtc::AudioProcessorInterface { | 139 class FakeAudioProcessor : public webrtc::AudioProcessorInterface { |
136 public: | 140 public: |
137 FakeAudioProcessor() {} | 141 FakeAudioProcessor() {} |
138 ~FakeAudioProcessor() {} | 142 ~FakeAudioProcessor() {} |
139 | 143 |
140 private: | 144 private: |
141 void GetStats(AudioProcessorInterface::AudioProcessorStats* stats) override { | 145 void GetStats(AudioProcessorInterface::AudioProcessorStats* stats) override { |
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 cricket::VoiceSenderInfo new_voice_sender_info; | 1751 cricket::VoiceSenderInfo new_voice_sender_info; |
1748 InitVoiceSenderInfo(&new_voice_sender_info); | 1752 InitVoiceSenderInfo(&new_voice_sender_info); |
1749 cricket::VoiceMediaInfo new_stats_read; | 1753 cricket::VoiceMediaInfo new_stats_read; |
1750 reports.clear(); | 1754 reports.clear(); |
1751 SetupAndVerifyAudioTrackStats( | 1755 SetupAndVerifyAudioTrackStats( |
1752 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, | 1756 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, |
1753 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); | 1757 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); |
1754 } | 1758 } |
1755 | 1759 |
1756 } // namespace webrtc | 1760 } // namespace webrtc |
OLD | NEW |