Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: webrtc/modules/video_coding/jitter_buffer_unittest.cc

Issue 2016043003: Change ProcessThread's task type to be the one from TaskQueue. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Work around issue with STL on Windows Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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(std::unique_ptr<rtc::QueuedTask> task) /*override*/ {}
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 2450 matching lines...) Expand 10 before | Expand all | Expand 10 after
2659 2659
2660 // Stream should be decodable from this point. 2660 // Stream should be decodable from this point.
2661 clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); 2661 clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs);
2662 InsertFrame(kVideoFrameDelta); 2662 InsertFrame(kVideoFrameDelta);
2663 EXPECT_TRUE(DecodeCompleteFrame()); 2663 EXPECT_TRUE(DecodeCompleteFrame());
2664 nack_list = jitter_buffer_->GetNackList(&extended); 2664 nack_list = jitter_buffer_->GetNackList(&extended);
2665 EXPECT_EQ(0u, nack_list.size()); 2665 EXPECT_EQ(0u, nack_list.size());
2666 } 2666 }
2667 2667
2668 } // namespace webrtc 2668 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698