| 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  | 
|   11 #ifndef WEBRTC_MEDIA_BASE_FAKENETWORKINTERFACE_H_ |   11 #ifndef WEBRTC_MEDIA_BASE_FAKENETWORKINTERFACE_H_ | 
|   12 #define WEBRTC_MEDIA_BASE_FAKENETWORKINTERFACE_H_ |   12 #define WEBRTC_MEDIA_BASE_FAKENETWORKINTERFACE_H_ | 
|   13  |   13  | 
|   14 #include <map> |   14 #include <map> | 
|   15 #include <vector> |   15 #include <vector> | 
|   16  |   16  | 
|   17 #include "webrtc/base/byteorder.h" |  | 
|   18 #include "webrtc/base/copyonwritebuffer.h" |  | 
|   19 #include "webrtc/base/criticalsection.h" |  | 
|   20 #include "webrtc/base/dscp.h" |  | 
|   21 #include "webrtc/base/messagehandler.h" |  | 
|   22 #include "webrtc/base/messagequeue.h" |  | 
|   23 #include "webrtc/base/thread.h" |  | 
|   24 #include "webrtc/media/base/mediachannel.h" |   17 #include "webrtc/media/base/mediachannel.h" | 
|   25 #include "webrtc/media/base/rtputils.h" |   18 #include "webrtc/media/base/rtputils.h" | 
 |   19 #include "webrtc/rtc_base/byteorder.h" | 
 |   20 #include "webrtc/rtc_base/copyonwritebuffer.h" | 
 |   21 #include "webrtc/rtc_base/criticalsection.h" | 
 |   22 #include "webrtc/rtc_base/dscp.h" | 
 |   23 #include "webrtc/rtc_base/messagehandler.h" | 
 |   24 #include "webrtc/rtc_base/messagequeue.h" | 
 |   25 #include "webrtc/rtc_base/thread.h" | 
|   26  |   26  | 
|   27 namespace cricket { |   27 namespace cricket { | 
|   28  |   28  | 
|   29 // Fake NetworkInterface that sends/receives RTP/RTCP packets. |   29 // Fake NetworkInterface that sends/receives RTP/RTCP packets. | 
|   30 class FakeNetworkInterface : public MediaChannel::NetworkInterface, |   30 class FakeNetworkInterface : public MediaChannel::NetworkInterface, | 
|   31                              public rtc::MessageHandler { |   31                              public rtc::MessageHandler { | 
|   32  public: |   32  public: | 
|   33   FakeNetworkInterface() |   33   FakeNetworkInterface() | 
|   34       : thread_(rtc::Thread::Current()), |   34       : thread_(rtc::Thread::Current()), | 
|   35         dest_(NULL), |   35         dest_(NULL), | 
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  218   std::vector<rtc::CopyOnWriteBuffer> rtp_packets_; |  218   std::vector<rtc::CopyOnWriteBuffer> rtp_packets_; | 
|  219   std::vector<rtc::CopyOnWriteBuffer> rtcp_packets_; |  219   std::vector<rtc::CopyOnWriteBuffer> rtcp_packets_; | 
|  220   int sendbuf_size_; |  220   int sendbuf_size_; | 
|  221   int recvbuf_size_; |  221   int recvbuf_size_; | 
|  222   rtc::DiffServCodePoint dscp_; |  222   rtc::DiffServCodePoint dscp_; | 
|  223 }; |  223 }; | 
|  224  |  224  | 
|  225 }  // namespace cricket |  225 }  // namespace cricket | 
|  226  |  226  | 
|  227 #endif  // WEBRTC_MEDIA_BASE_FAKENETWORKINTERFACE_H_ |  227 #endif  // WEBRTC_MEDIA_BASE_FAKENETWORKINTERFACE_H_ | 
| OLD | NEW |