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/api/video_codecs/video_encoder.h" |
| 18 #include "webrtc/base/criticalsection.h" |
| 19 #include "webrtc/base/sequenced_task_checker.h" |
| 20 #include "webrtc/base/task_queue.h" |
18 #include "webrtc/common_types.h" | 21 #include "webrtc/common_types.h" |
19 #include "webrtc/rtc_base/criticalsection.h" | |
20 #include "webrtc/rtc_base/sequenced_task_checker.h" | |
21 #include "webrtc/rtc_base/task_queue.h" | |
22 #include "webrtc/system_wrappers/include/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.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 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 int current_queue_ ACCESS_ON(sequence_checker_); | 128 int current_queue_ ACCESS_ON(sequence_checker_); |
129 std::unique_ptr<rtc::TaskQueue> queue1_ ACCESS_ON(sequence_checker_); | 129 std::unique_ptr<rtc::TaskQueue> queue1_ ACCESS_ON(sequence_checker_); |
130 std::unique_ptr<rtc::TaskQueue> queue2_ ACCESS_ON(sequence_checker_); | 130 std::unique_ptr<rtc::TaskQueue> queue2_ ACCESS_ON(sequence_checker_); |
131 rtc::SequencedTaskChecker sequence_checker_; | 131 rtc::SequencedTaskChecker sequence_checker_; |
132 }; | 132 }; |
133 | 133 |
134 } // namespace test | 134 } // namespace test |
135 } // namespace webrtc | 135 } // namespace webrtc |
136 | 136 |
137 #endif // WEBRTC_TEST_FAKE_ENCODER_H_ | 137 #endif // WEBRTC_TEST_FAKE_ENCODER_H_ |
OLD | NEW |