| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_DIRECT_TRANSPORT_H_ | 10 #ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_DIRECT_TRANSPORT_H_ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 public: | 32 public: |
| 33 DirectTransport(); | 33 DirectTransport(); |
| 34 explicit DirectTransport(const FakeNetworkPipe::Config& config); | 34 explicit DirectTransport(const FakeNetworkPipe::Config& config); |
| 35 ~DirectTransport(); | 35 ~DirectTransport(); |
| 36 | 36 |
| 37 void SetConfig(const FakeNetworkPipe::Config& config); | 37 void SetConfig(const FakeNetworkPipe::Config& config); |
| 38 | 38 |
| 39 virtual void StopSending(); | 39 virtual void StopSending(); |
| 40 virtual void SetReceiver(PacketReceiver* receiver); | 40 virtual void SetReceiver(PacketReceiver* receiver); |
| 41 | 41 |
| 42 bool SendRtp(const uint8_t* data, size_t length) override; | 42 bool SendRtp(const uint8_t* data, |
| 43 size_t length, |
| 44 const PacketOptions& options) override; |
| 43 bool SendRtcp(const uint8_t* data, size_t length) override; | 45 bool SendRtcp(const uint8_t* data, size_t length) override; |
| 44 | 46 |
| 45 private: | 47 private: |
| 46 static bool NetworkProcess(void* transport); | 48 static bool NetworkProcess(void* transport); |
| 47 bool SendPackets(); | 49 bool SendPackets(); |
| 48 | 50 |
| 49 rtc::CriticalSection lock_; | 51 rtc::CriticalSection lock_; |
| 50 rtc::scoped_ptr<EventWrapper> packet_event_; | 52 rtc::scoped_ptr<EventWrapper> packet_event_; |
| 51 rtc::scoped_ptr<ThreadWrapper> thread_; | 53 rtc::scoped_ptr<ThreadWrapper> thread_; |
| 52 Clock* const clock_; | 54 Clock* const clock_; |
| 53 | 55 |
| 54 bool shutting_down_; | 56 bool shutting_down_; |
| 55 | 57 |
| 56 FakeNetworkPipe fake_network_; | 58 FakeNetworkPipe fake_network_; |
| 57 }; | 59 }; |
| 58 } // namespace test | 60 } // namespace test |
| 59 } // namespace webrtc | 61 } // namespace webrtc |
| 60 | 62 |
| 61 #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_DIRECT_TRANSPORT_H_ | 63 #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_DIRECT_TRANSPORT_H_ |
| OLD | NEW |