| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2  *  Copyright (c) 2004 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 184                                 const rtc::PacketTime& packet_time) { | 184                                 const rtc::PacketTime& packet_time) { | 
| 185     rtp_packets_.push_back(std::string(packet->data<char>(), packet->size())); | 185     rtp_packets_.push_back(std::string(packet->data<char>(), packet->size())); | 
| 186   } | 186   } | 
| 187   virtual void OnRtcpReceived(rtc::Buffer* packet, | 187   virtual void OnRtcpReceived(rtc::Buffer* packet, | 
| 188                               const rtc::PacketTime& packet_time) { | 188                               const rtc::PacketTime& packet_time) { | 
| 189     rtcp_packets_.push_back(std::string(packet->data<char>(), packet->size())); | 189     rtcp_packets_.push_back(std::string(packet->data<char>(), packet->size())); | 
| 190   } | 190   } | 
| 191   virtual void OnReadyToSend(bool ready) { | 191   virtual void OnReadyToSend(bool ready) { | 
| 192     ready_to_send_ = ready; | 192     ready_to_send_ = ready; | 
| 193   } | 193   } | 
|  | 194   virtual void OnNetworkChanged(int local_net_id, int remote_net_id) {} | 
| 194   bool fail_set_send_codecs() const { return fail_set_send_codecs_; } | 195   bool fail_set_send_codecs() const { return fail_set_send_codecs_; } | 
| 195   bool fail_set_recv_codecs() const { return fail_set_recv_codecs_; } | 196   bool fail_set_recv_codecs() const { return fail_set_recv_codecs_; } | 
| 196 | 197 | 
| 197  private: | 198  private: | 
| 198   bool sending_; | 199   bool sending_; | 
| 199   bool playout_; | 200   bool playout_; | 
| 200   std::vector<RtpHeaderExtension> recv_extensions_; | 201   std::vector<RtpHeaderExtension> recv_extensions_; | 
| 201   std::vector<RtpHeaderExtension> send_extensions_; | 202   std::vector<RtpHeaderExtension> send_extensions_; | 
| 202   std::list<std::string> rtp_packets_; | 203   std::list<std::string> rtp_packets_; | 
| 203   std::list<std::string> rtcp_packets_; | 204   std::list<std::string> rtcp_packets_; | 
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 863 | 864 | 
| 864  private: | 865  private: | 
| 865   std::vector<FakeDataMediaChannel*> channels_; | 866   std::vector<FakeDataMediaChannel*> channels_; | 
| 866   std::vector<DataCodec> data_codecs_; | 867   std::vector<DataCodec> data_codecs_; | 
| 867   DataChannelType last_channel_type_; | 868   DataChannelType last_channel_type_; | 
| 868 }; | 869 }; | 
| 869 | 870 | 
| 870 }  // namespace cricket | 871 }  // namespace cricket | 
| 871 | 872 | 
| 872 #endif  // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_ | 873 #endif  // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_ | 
| OLD | NEW | 
|---|