| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 scoped_voe_engine engine_; | 129 scoped_voe_engine engine_; |
| 130 scoped_voe_ptr<webrtc::VoEAudioProcessing> processing_; | 130 scoped_voe_ptr<webrtc::VoEAudioProcessing> processing_; |
| 131 scoped_voe_ptr<webrtc::VoEBase> base_; | 131 scoped_voe_ptr<webrtc::VoEBase> base_; |
| 132 scoped_voe_ptr<webrtc::VoECodec> codec_; | 132 scoped_voe_ptr<webrtc::VoECodec> codec_; |
| 133 scoped_voe_ptr<webrtc::VoEDtmf> dtmf_; | 133 scoped_voe_ptr<webrtc::VoEDtmf> dtmf_; |
| 134 scoped_voe_ptr<webrtc::VoEHardware> hw_; | 134 scoped_voe_ptr<webrtc::VoEHardware> hw_; |
| 135 scoped_voe_ptr<webrtc::VoENetwork> network_; | 135 scoped_voe_ptr<webrtc::VoENetwork> network_; |
| 136 scoped_voe_ptr<webrtc::VoERTP_RTCP> rtp_; | 136 scoped_voe_ptr<webrtc::VoERTP_RTCP> rtp_; |
| 137 scoped_voe_ptr<webrtc::VoEVolumeControl> volume_; | 137 scoped_voe_ptr<webrtc::VoEVolumeControl> volume_; |
| 138 }; | 138 }; |
| 139 | |
| 140 // Adds indirection to static WebRtc functions, allowing them to be mocked. | |
| 141 class VoETraceWrapper { | |
| 142 public: | |
| 143 virtual ~VoETraceWrapper() {} | |
| 144 | |
| 145 virtual int SetTraceFilter(const unsigned int filter) { | |
| 146 return webrtc::VoiceEngine::SetTraceFilter(filter); | |
| 147 } | |
| 148 virtual int SetTraceFile(const char* fileNameUTF8) { | |
| 149 return webrtc::VoiceEngine::SetTraceFile(fileNameUTF8); | |
| 150 } | |
| 151 virtual int SetTraceCallback(webrtc::TraceCallback* callback) { | |
| 152 return webrtc::VoiceEngine::SetTraceCallback(callback); | |
| 153 } | |
| 154 }; | |
| 155 | |
| 156 } // namespace cricket | 139 } // namespace cricket |
| 157 | 140 |
| 158 #endif // TALK_MEDIA_WEBRTCVOE_H_ | 141 #endif // TALK_MEDIA_WEBRTCVOE_H_ |
| OLD | NEW |