OLD | NEW |
1 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 1 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
2 * | 2 * |
3 * Use of this source code is governed by a BSD-style license | 3 * Use of this source code is governed by a BSD-style license |
4 * that can be found in the LICENSE file in the root of the source | 4 * that can be found in the LICENSE file in the root of the source |
5 * tree. An additional intellectual property rights grant can be found | 5 * tree. An additional intellectual property rights grant can be found |
6 * in the file PATENTS. All contributing project authors may | 6 * in the file PATENTS. All contributing project authors may |
7 * be found in the AUTHORS file in the root of the source tree. | 7 * be found in the AUTHORS file in the root of the source tree. |
8 */ | 8 */ |
9 | 9 |
10 #include <string.h> | 10 #include <string.h> |
11 | 11 |
12 #include <list> | 12 #include <list> |
13 #include <memory> | 13 #include <memory> |
14 #include <queue> | 14 #include <queue> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/base/checks.h" | 17 #include "webrtc/base/checks.h" |
18 #include "webrtc/modules/video_coding/encoded_frame.h" | 18 #include "webrtc/modules/video_coding/encoded_frame.h" |
19 #include "webrtc/modules/video_coding/packet.h" | 19 #include "webrtc/modules/video_coding/packet.h" |
20 #include "webrtc/modules/video_coding/receiver.h" | 20 #include "webrtc/modules/video_coding/receiver.h" |
21 #include "webrtc/modules/video_coding/test/stream_generator.h" | 21 #include "webrtc/modules/video_coding/test/stream_generator.h" |
22 #include "webrtc/modules/video_coding/test/test_util.h" | 22 #include "webrtc/modules/video_coding/test/test_util.h" |
23 #include "webrtc/modules/video_coding/timing.h" | 23 #include "webrtc/modules/video_coding/timing.h" |
24 #include "webrtc/system_wrappers/include/clock.h" | 24 #include "webrtc/system_wrappers/include/clock.h" |
25 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | |
26 #include "webrtc/test/gtest.h" | 25 #include "webrtc/test/gtest.h" |
27 | 26 |
28 namespace webrtc { | 27 namespace webrtc { |
29 | 28 |
30 class TestVCMReceiver : public ::testing::Test { | 29 class TestVCMReceiver : public ::testing::Test { |
31 protected: | 30 protected: |
32 TestVCMReceiver() | 31 TestVCMReceiver() |
33 : clock_(new SimulatedClock(0)), | 32 : clock_(new SimulatedClock(0)), |
34 timing_(clock_.get()), | 33 timing_(clock_.get()), |
35 receiver_(&timing_, clock_.get(), &event_factory_) { | 34 receiver_(&timing_, clock_.get(), &event_factory_) { |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 end_time); | 498 end_time); |
500 receiver_.ReleaseFrame(frame); | 499 receiver_.ReleaseFrame(frame); |
501 ++num_frames_return; | 500 ++num_frames_return; |
502 } else { | 501 } else { |
503 EXPECT_EQ(kMaxWaitTime, end_time - start_time); | 502 EXPECT_EQ(kMaxWaitTime, end_time - start_time); |
504 } | 503 } |
505 } | 504 } |
506 } | 505 } |
507 | 506 |
508 } // namespace webrtc | 507 } // namespace webrtc |
OLD | NEW |