| 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" | |
| 18 #include "webrtc/modules/video_coding/encoded_frame.h" | 17 #include "webrtc/modules/video_coding/encoded_frame.h" |
| 19 #include "webrtc/modules/video_coding/packet.h" | 18 #include "webrtc/modules/video_coding/packet.h" |
| 20 #include "webrtc/modules/video_coding/receiver.h" | 19 #include "webrtc/modules/video_coding/receiver.h" |
| 21 #include "webrtc/modules/video_coding/test/stream_generator.h" | 20 #include "webrtc/modules/video_coding/test/stream_generator.h" |
| 22 #include "webrtc/modules/video_coding/test/test_util.h" | 21 #include "webrtc/modules/video_coding/test/test_util.h" |
| 23 #include "webrtc/modules/video_coding/timing.h" | 22 #include "webrtc/modules/video_coding/timing.h" |
| 23 #include "webrtc/rtc_base/checks.h" |
| 24 #include "webrtc/system_wrappers/include/clock.h" | 24 #include "webrtc/system_wrappers/include/clock.h" |
| 25 #include "webrtc/test/gtest.h" | 25 #include "webrtc/test/gtest.h" |
| 26 | 26 |
| 27 namespace webrtc { | 27 namespace webrtc { |
| 28 | 28 |
| 29 class TestVCMReceiver : public ::testing::Test { | 29 class TestVCMReceiver : public ::testing::Test { |
| 30 protected: | 30 protected: |
| 31 TestVCMReceiver() | 31 TestVCMReceiver() |
| 32 : clock_(new SimulatedClock(0)), | 32 : clock_(new SimulatedClock(0)), |
| 33 timing_(clock_.get()), | 33 timing_(clock_.get()), |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 end_time); | 498 end_time); |
| 499 receiver_.ReleaseFrame(frame); | 499 receiver_.ReleaseFrame(frame); |
| 500 ++num_frames_return; | 500 ++num_frames_return; |
| 501 } else { | 501 } else { |
| 502 EXPECT_EQ(kMaxWaitTime, end_time - start_time); | 502 EXPECT_EQ(kMaxWaitTime, end_time - start_time); |
| 503 } | 503 } |
| 504 } | 504 } |
| 505 } | 505 } |
| 506 | 506 |
| 507 } // namespace webrtc | 507 } // namespace webrtc |
| OLD | NEW |