| 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_TEST_DIRECT_TRANSPORT_H_ | 10 #ifndef WEBRTC_TEST_DIRECT_TRANSPORT_H_ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 public: | 32 public: |
| 33 DirectTransport(Call* send_call, | 33 DirectTransport(Call* send_call, |
| 34 const std::map<uint8_t, MediaType>& payload_type_map); | 34 const std::map<uint8_t, MediaType>& payload_type_map); |
| 35 DirectTransport(const FakeNetworkPipe::Config& config, | 35 DirectTransport(const FakeNetworkPipe::Config& config, |
| 36 Call* send_call, | 36 Call* send_call, |
| 37 const std::map<uint8_t, MediaType>& payload_type_map); | 37 const std::map<uint8_t, MediaType>& payload_type_map); |
| 38 DirectTransport(const FakeNetworkPipe::Config& config, | 38 DirectTransport(const FakeNetworkPipe::Config& config, |
| 39 Call* send_call, | 39 Call* send_call, |
| 40 std::unique_ptr<Demuxer> demuxer); | 40 std::unique_ptr<Demuxer> demuxer); |
| 41 | 41 |
| 42 // These deprecated variants always use ForceDemuxer. | 42 // This deprecated variant always uses MediaType::VIDEO. |
| 43 RTC_DEPRECATED DirectTransport(Call* send_call, MediaType media_type) | |
| 44 : DirectTransport( | |
| 45 FakeNetworkPipe::Config(), | |
| 46 send_call, | |
| 47 std::unique_ptr<Demuxer>(new ForceDemuxer(media_type))) {} | |
| 48 RTC_DEPRECATED DirectTransport(const FakeNetworkPipe::Config& config, | |
| 49 Call* send_call, | |
| 50 MediaType media_type) | |
| 51 : DirectTransport( | |
| 52 config, | |
| 53 send_call, | |
| 54 std::unique_ptr<Demuxer>(new ForceDemuxer(media_type))) {} | |
| 55 | |
| 56 // These deprecated variants always use MediaType::VIDEO. | |
| 57 RTC_DEPRECATED explicit DirectTransport(Call* send_call) | 43 RTC_DEPRECATED explicit DirectTransport(Call* send_call) |
| 58 : DirectTransport( | 44 : DirectTransport( |
| 59 FakeNetworkPipe::Config(), | 45 FakeNetworkPipe::Config(), |
| 60 send_call, | 46 send_call, |
| 61 std::unique_ptr<Demuxer>(new ForceDemuxer(MediaType::VIDEO))) {} | 47 std::unique_ptr<Demuxer>(new ForceDemuxer(MediaType::VIDEO))) {} |
| 62 | 48 |
| 63 RTC_DEPRECATED DirectTransport(const FakeNetworkPipe::Config& config, | |
| 64 Call* send_call) | |
| 65 : DirectTransport( | |
| 66 config, | |
| 67 send_call, | |
| 68 std::unique_ptr<Demuxer>(new ForceDemuxer(MediaType::VIDEO))) {} | |
| 69 | |
| 70 ~DirectTransport(); | 49 ~DirectTransport(); |
| 71 | 50 |
| 72 void SetConfig(const FakeNetworkPipe::Config& config); | 51 void SetConfig(const FakeNetworkPipe::Config& config); |
| 73 | 52 |
| 74 virtual void StopSending(); | 53 virtual void StopSending(); |
| 75 // TODO(holmer): Look into moving this to the constructor. | 54 // TODO(holmer): Look into moving this to the constructor. |
| 76 virtual void SetReceiver(PacketReceiver* receiver); | 55 virtual void SetReceiver(PacketReceiver* receiver); |
| 77 | 56 |
| 78 bool SendRtp(const uint8_t* data, | 57 bool SendRtp(const uint8_t* data, |
| 79 size_t length, | 58 size_t length, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 108 Clock* const clock_; | 87 Clock* const clock_; |
| 109 | 88 |
| 110 bool shutting_down_; | 89 bool shutting_down_; |
| 111 | 90 |
| 112 FakeNetworkPipe fake_network_; | 91 FakeNetworkPipe fake_network_; |
| 113 }; | 92 }; |
| 114 } // namespace test | 93 } // namespace test |
| 115 } // namespace webrtc | 94 } // namespace webrtc |
| 116 | 95 |
| 117 #endif // WEBRTC_TEST_DIRECT_TRANSPORT_H_ | 96 #endif // WEBRTC_TEST_DIRECT_TRANSPORT_H_ |
| OLD | NEW |