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 #ifndef WEBRTC_TEST_FAKE_ENCODER_H_ | 11 #ifndef WEBRTC_TEST_FAKE_ENCODER_H_ |
12 #define WEBRTC_TEST_FAKE_ENCODER_H_ | 12 #define WEBRTC_TEST_FAKE_ENCODER_H_ |
13 | 13 |
14 #include <vector> | 14 #include <vector> |
15 #include <memory> | 15 #include <memory> |
16 | 16 |
| 17 #include "webrtc/api/video_codecs/video_encoder.h" |
17 #include "webrtc/base/criticalsection.h" | 18 #include "webrtc/base/criticalsection.h" |
18 #include "webrtc/base/sequenced_task_checker.h" | 19 #include "webrtc/base/sequenced_task_checker.h" |
19 #include "webrtc/base/task_queue.h" | 20 #include "webrtc/base/task_queue.h" |
20 #include "webrtc/common_types.h" | 21 #include "webrtc/common_types.h" |
21 #include "webrtc/system_wrappers/include/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
22 #include "webrtc/video_encoder.h" | |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace test { | 25 namespace test { |
26 | 26 |
27 class FakeEncoder : public VideoEncoder { | 27 class FakeEncoder : public VideoEncoder { |
28 public: | 28 public: |
29 explicit FakeEncoder(Clock* clock); | 29 explicit FakeEncoder(Clock* clock); |
30 virtual ~FakeEncoder() = default; | 30 virtual ~FakeEncoder() = default; |
31 | 31 |
32 // Sets max bitrate. Not thread-safe, call before registering the encoder. | 32 // Sets max bitrate. Not thread-safe, call before registering the encoder. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 int current_queue_ ACCESS_ON(sequence_checker_); | 122 int current_queue_ ACCESS_ON(sequence_checker_); |
123 std::unique_ptr<rtc::TaskQueue> queue1_ ACCESS_ON(sequence_checker_); | 123 std::unique_ptr<rtc::TaskQueue> queue1_ ACCESS_ON(sequence_checker_); |
124 std::unique_ptr<rtc::TaskQueue> queue2_ ACCESS_ON(sequence_checker_); | 124 std::unique_ptr<rtc::TaskQueue> queue2_ ACCESS_ON(sequence_checker_); |
125 rtc::SequencedTaskChecker sequence_checker_; | 125 rtc::SequencedTaskChecker sequence_checker_; |
126 }; | 126 }; |
127 | 127 |
128 } // namespace test | 128 } // namespace test |
129 } // namespace webrtc | 129 } // namespace webrtc |
130 | 130 |
131 #endif // WEBRTC_TEST_FAKE_ENCODER_H_ | 131 #endif // WEBRTC_TEST_FAKE_ENCODER_H_ |
OLD | NEW |