OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 "webrtc/test/fake_encoder.h" | 11 #include "webrtc/test/fake_encoder.h" |
12 | 12 |
13 #include <string.h> | 13 #include <string.h> |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 #include <memory> | 16 #include <memory> |
17 | 17 |
18 #include "webrtc/base/checks.h" | |
19 #include "webrtc/common_types.h" | 18 #include "webrtc/common_types.h" |
20 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 19 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
| 20 #include "webrtc/rtc_base/checks.h" |
21 #include "webrtc/system_wrappers/include/sleep.h" | 21 #include "webrtc/system_wrappers/include/sleep.h" |
22 #include "webrtc/test/gtest.h" | 22 #include "webrtc/test/gtest.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace test { | 25 namespace test { |
26 | 26 |
27 const int kKeyframeSizeFactor = 10; | 27 const int kKeyframeSizeFactor = 10; |
28 | 28 |
29 FakeEncoder::FakeEncoder(Clock* clock) | 29 FakeEncoder::FakeEncoder(Clock* clock) |
30 : clock_(clock), | 30 : clock_(clock), |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 RTC_DCHECK_CALLED_SEQUENTIALLY(&sequence_checker_); | 368 RTC_DCHECK_CALLED_SEQUENTIALLY(&sequence_checker_); |
369 | 369 |
370 queue1_.reset(); | 370 queue1_.reset(); |
371 queue2_.reset(); | 371 queue2_.reset(); |
372 | 372 |
373 return FakeH264Encoder::Release(); | 373 return FakeH264Encoder::Release(); |
374 } | 374 } |
375 | 375 |
376 } // namespace test | 376 } // namespace test |
377 } // namespace webrtc | 377 } // namespace webrtc |
OLD | NEW |