OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "webrtc/modules/video_coding/codecs/interface/mock/mock_video_codec_int
erface.h" | 13 #include "webrtc/modules/video_coding/codecs/interface/mock/mock_video_codec_int
erface.h" |
14 #include "webrtc/modules/video_coding/main/interface/mock/mock_vcm_callbacks.h" | 14 #include "webrtc/modules/video_coding/main/interface/mock/mock_vcm_callbacks.h" |
15 #include "webrtc/modules/video_coding/main/interface/video_coding.h" | 15 #include "webrtc/modules/video_coding/main/interface/video_coding.h" |
16 #include "webrtc/modules/video_coding/main/test/test_util.h" | 16 #include "webrtc/modules/video_coding/main/test/test_util.h" |
17 #include "webrtc/system_wrappers/interface/clock.h" | 17 #include "webrtc/system_wrappers/include/clock.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 using ::testing::Return; | 21 using ::testing::Return; |
22 using ::testing::_; | 22 using ::testing::_; |
23 using ::testing::ElementsAre; | 23 using ::testing::ElementsAre; |
24 using ::testing::AllOf; | 24 using ::testing::AllOf; |
25 using ::testing::Args; | 25 using ::testing::Args; |
26 using ::testing::Field; | 26 using ::testing::Field; |
27 using ::testing::Pointee; | 27 using ::testing::Pointee; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 clock_->AdvanceTimeMilliseconds(23); | 230 clock_->AdvanceTimeMilliseconds(23); |
231 InsertPacket(3000, 4, false, false, kVideoFrameDelta); | 231 InsertPacket(3000, 4, false, false, kVideoFrameDelta); |
232 | 232 |
233 InsertPacket(9000, 9, true, false, kVideoFrameDelta); | 233 InsertPacket(9000, 9, true, false, kVideoFrameDelta); |
234 InsertPacket(9000, 10, false, false, kVideoFrameDelta); | 234 InsertPacket(9000, 10, false, false, kVideoFrameDelta); |
235 InsertPacket(9000, 11, false, true, kVideoFrameDelta); | 235 InsertPacket(9000, 11, false, true, kVideoFrameDelta); |
236 EXPECT_EQ(VCM_OK, vcm_->Decode(0)); // Decode timestamp 9000 complete. | 236 EXPECT_EQ(VCM_OK, vcm_->Decode(0)); // Decode timestamp 9000 complete. |
237 } | 237 } |
238 } // namespace webrtc | 238 } // namespace webrtc |
OLD | NEW |