| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming | 87 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming |
| 88 // track. | 88 // track. |
| 89 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32, std::string*)); | 89 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32, std::string*)); |
| 90 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32, std::string*)); | 90 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32, std::string*)); |
| 91 MOCK_METHOD1(GetTransportStats, bool(cricket::SessionStats*)); | 91 MOCK_METHOD1(GetTransportStats, bool(cricket::SessionStats*)); |
| 92 MOCK_METHOD1(GetTransport, cricket::Transport*(const std::string&)); | 92 MOCK_METHOD1(GetTransport, cricket::Transport*(const std::string&)); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 class MockVideoMediaChannel : public cricket::FakeVideoMediaChannel { | 95 class MockVideoMediaChannel : public cricket::FakeVideoMediaChannel { |
| 96 public: | 96 public: |
| 97 MockVideoMediaChannel() : cricket::FakeVideoMediaChannel(NULL) {} | 97 MockVideoMediaChannel() : |
| 98 | 98 cricket::FakeVideoMediaChannel(NULL, cricket::VideoOptions()) {} |
| 99 // MOCK_METHOD0(transport_channel, cricket::TransportChannel*()); | |
| 100 MOCK_METHOD1(GetStats, bool(cricket::VideoMediaInfo*)); | 99 MOCK_METHOD1(GetStats, bool(cricket::VideoMediaInfo*)); |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 class MockVoiceMediaChannel : public cricket::FakeVoiceMediaChannel { | 102 class MockVoiceMediaChannel : public cricket::FakeVoiceMediaChannel { |
| 104 public: | 103 public: |
| 105 MockVoiceMediaChannel() : cricket::FakeVoiceMediaChannel(NULL) { | 104 MockVoiceMediaChannel() : |
| 106 } | 105 cricket::FakeVoiceMediaChannel(NULL, cricket::AudioOptions()) {} |
| 107 MOCK_METHOD1(GetStats, bool(cricket::VoiceMediaInfo*)); | 106 MOCK_METHOD1(GetStats, bool(cricket::VoiceMediaInfo*)); |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 class FakeAudioProcessor : public webrtc::AudioProcessorInterface { | 109 class FakeAudioProcessor : public webrtc::AudioProcessorInterface { |
| 111 public: | 110 public: |
| 112 FakeAudioProcessor() {} | 111 FakeAudioProcessor() {} |
| 113 ~FakeAudioProcessor() {} | 112 ~FakeAudioProcessor() {} |
| 114 | 113 |
| 115 private: | 114 private: |
| 116 void GetStats(AudioProcessorInterface::AudioProcessorStats* stats) override { | 115 void GetStats(AudioProcessorInterface::AudioProcessorStats* stats) override { |
| (...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 cricket::VoiceSenderInfo new_voice_sender_info; | 1703 cricket::VoiceSenderInfo new_voice_sender_info; |
| 1705 InitVoiceSenderInfo(&new_voice_sender_info); | 1704 InitVoiceSenderInfo(&new_voice_sender_info); |
| 1706 cricket::VoiceMediaInfo new_stats_read; | 1705 cricket::VoiceMediaInfo new_stats_read; |
| 1707 reports.clear(); | 1706 reports.clear(); |
| 1708 SetupAndVerifyAudioTrackStats( | 1707 SetupAndVerifyAudioTrackStats( |
| 1709 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, | 1708 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, |
| 1710 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); | 1709 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); |
| 1711 } | 1710 } |
| 1712 | 1711 |
| 1713 } // namespace webrtc | 1712 } // namespace webrtc |
| OLD | NEW |