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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 EXPECT_EQ(2, packet_.codecSpecificHeader.codecHeader.VP9.pid_diff[1]); | 188 EXPECT_EQ(2, packet_.codecSpecificHeader.codecHeader.VP9.pid_diff[1]); |
189 } | 189 } |
190 | 190 |
191 class ProcessThreadMock : public ProcessThread { | 191 class ProcessThreadMock : public ProcessThread { |
192 public: | 192 public: |
193 MOCK_METHOD0(Start, void()); | 193 MOCK_METHOD0(Start, void()); |
194 MOCK_METHOD0(Stop, void()); | 194 MOCK_METHOD0(Stop, void()); |
195 MOCK_METHOD1(WakeUp, void(Module* module)); | 195 MOCK_METHOD1(WakeUp, void(Module* module)); |
196 MOCK_METHOD1(RegisterModule, void(Module* module)); | 196 MOCK_METHOD1(RegisterModule, void(Module* module)); |
197 MOCK_METHOD1(DeRegisterModule, void(Module* module)); | 197 MOCK_METHOD1(DeRegisterModule, void(Module* module)); |
198 void PostTask(std::unique_ptr<ProcessTask> task) {} | 198 void PostTask(rtc::scoped_ptr<ProcessTask> task) {} |
199 }; | 199 }; |
200 | 200 |
201 class TestBasicJitterBuffer : public ::testing::TestWithParam<std::string>, | 201 class TestBasicJitterBuffer : public ::testing::TestWithParam<std::string>, |
202 public NackSender, | 202 public NackSender, |
203 public KeyFrameRequestSender { | 203 public KeyFrameRequestSender { |
204 public: | 204 public: |
205 void SendNack(const std::vector<uint16_t>& sequence_numbers) override { | 205 void SendNack(const std::vector<uint16_t>& sequence_numbers) override { |
206 nack_sent_.insert(nack_sent_.end(), sequence_numbers.begin(), | 206 nack_sent_.insert(nack_sent_.end(), sequence_numbers.begin(), |
207 sequence_numbers.end()); | 207 sequence_numbers.end()); |
208 } | 208 } |
(...skipping 2454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2663 | 2663 |
2664 // Stream should be decodable from this point. | 2664 // Stream should be decodable from this point. |
2665 clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); | 2665 clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); |
2666 InsertFrame(kVideoFrameDelta); | 2666 InsertFrame(kVideoFrameDelta); |
2667 EXPECT_TRUE(DecodeCompleteFrame()); | 2667 EXPECT_TRUE(DecodeCompleteFrame()); |
2668 nack_list = jitter_buffer_->GetNackList(&extended); | 2668 nack_list = jitter_buffer_->GetNackList(&extended); |
2669 EXPECT_EQ(0u, nack_list.size()); | 2669 EXPECT_EQ(0u, nack_list.size()); |
2670 } | 2670 } |
2671 | 2671 |
2672 } // namespace webrtc | 2672 } // namespace webrtc |
OLD | NEW |