OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 23 matching lines...) Expand all Loading... |
34 this, | 34 this, |
35 "LoopBackTransport")), | 35 "LoopBackTransport")), |
36 channel_(channel), | 36 channel_(channel), |
37 voe_network_(voe_network), | 37 voe_network_(voe_network), |
38 transmitted_packets_(0) { | 38 transmitted_packets_(0) { |
39 thread_->Start(); | 39 thread_->Start(); |
40 } | 40 } |
41 | 41 |
42 ~LoopBackTransport() { thread_->Stop(); } | 42 ~LoopBackTransport() { thread_->Stop(); } |
43 | 43 |
44 bool SendRtp(const uint8_t* data, size_t len) override { | 44 bool SendRtp(const uint8_t* data, |
| 45 size_t len, |
| 46 const webrtc::PacketOptions& options) override { |
45 StorePacket(Packet::Rtp, data, len); | 47 StorePacket(Packet::Rtp, data, len); |
46 return true; | 48 return true; |
47 } | 49 } |
48 | 50 |
49 bool SendRtcp(const uint8_t* data, size_t len) override { | 51 bool SendRtcp(const uint8_t* data, size_t len) override { |
50 StorePacket(Packet::Rtcp, data, len); | 52 StorePacket(Packet::Rtcp, data, len); |
51 return true; | 53 return true; |
52 } | 54 } |
53 | 55 |
54 void WaitForTransmittedPackets(int32_t packet_count) { | 56 void WaitForTransmittedPackets(int32_t packet_count) { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 class AfterInitializationFixture : public BeforeInitializationFixture { | 163 class AfterInitializationFixture : public BeforeInitializationFixture { |
162 public: | 164 public: |
163 AfterInitializationFixture(); | 165 AfterInitializationFixture(); |
164 virtual ~AfterInitializationFixture(); | 166 virtual ~AfterInitializationFixture(); |
165 | 167 |
166 protected: | 168 protected: |
167 rtc::scoped_ptr<TestErrorObserver> error_observer_; | 169 rtc::scoped_ptr<TestErrorObserver> error_observer_; |
168 }; | 170 }; |
169 | 171 |
170 #endif // SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_AFTER_INIT_H_ | 172 #endif // SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_AFTER_INIT_H_ |
OLD | NEW |