| 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 <queue> | 13 #include <queue> |
| 14 | 14 |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
| 17 #include "webrtc/modules/video_coding/main/source/packet.h" | 17 #include "webrtc/modules/video_coding/main/source/packet.h" |
| 18 #include "webrtc/modules/video_coding/main/source/receiver.h" | 18 #include "webrtc/modules/video_coding/main/source/receiver.h" |
| 19 #include "webrtc/modules/video_coding/main/source/test/stream_generator.h" | 19 #include "webrtc/modules/video_coding/main/source/test/stream_generator.h" |
| 20 #include "webrtc/modules/video_coding/main/source/timing.h" | 20 #include "webrtc/modules/video_coding/main/source/timing.h" |
| 21 #include "webrtc/modules/video_coding/main/test/test_util.h" | 21 #include "webrtc/modules/video_coding/main/test/test_util.h" |
| 22 #include "webrtc/system_wrappers/interface/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
| 23 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 23 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
| 24 | 24 |
| 25 namespace webrtc { | 25 namespace webrtc { |
| 26 | 26 |
| 27 class TestVCMReceiver : public ::testing::Test { | 27 class TestVCMReceiver : public ::testing::Test { |
| 28 protected: | 28 protected: |
| 29 enum { kWidth = 640 }; | 29 enum { kWidth = 640 }; |
| 30 enum { kHeight = 480 }; | 30 enum { kHeight = 480 }; |
| 31 | 31 |
| 32 TestVCMReceiver() | 32 TestVCMReceiver() |
| 33 : clock_(new SimulatedClock(0)), | 33 : clock_(new SimulatedClock(0)), |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 receiver_.ReleaseFrame(frame); | 517 receiver_.ReleaseFrame(frame); |
| 518 ++num_frames_return; | 518 ++num_frames_return; |
| 519 EXPECT_GE(kMaxWaitTime, end_time - start_time); | 519 EXPECT_GE(kMaxWaitTime, end_time - start_time); |
| 520 } else { | 520 } else { |
| 521 EXPECT_EQ(kMaxWaitTime, end_time - start_time); | 521 EXPECT_EQ(kMaxWaitTime, end_time - start_time); |
| 522 } | 522 } |
| 523 } | 523 } |
| 524 } | 524 } |
| 525 | 525 |
| 526 } // namespace webrtc | 526 } // namespace webrtc |
| OLD | NEW |