OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNITTES
T_HELPER_H_ | 11 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNITTES
T_HELPER_H_ |
12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNITTES
T_HELPER_H_ | 12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNITTES
T_HELPER_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
15 #include <map> | 15 #include <map> |
16 #include <memory> | 16 #include <memory> |
17 #include <utility> | 17 #include <utility> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "webrtc/test/gtest.h" | |
21 #include "webrtc/base/constructormagic.h" | 20 #include "webrtc/base/constructormagic.h" |
22 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" | 21 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" |
23 #include "webrtc/system_wrappers/include/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
| 23 #include "webrtc/test/gtest.h" |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 namespace testing { | 26 namespace testing { |
27 | 27 |
28 class TestBitrateObserver : public RemoteBitrateObserver { | 28 class TestBitrateObserver : public RemoteBitrateObserver { |
29 public: | 29 public: |
30 TestBitrateObserver() : updated_(false), latest_bitrate_(0) {} | 30 TestBitrateObserver() : updated_(false), latest_bitrate_(0) {} |
31 virtual ~TestBitrateObserver() {} | 31 virtual ~TestBitrateObserver() {} |
32 | 32 |
33 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, | 33 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 std::unique_ptr<testing::TestBitrateObserver> bitrate_observer_; | 212 std::unique_ptr<testing::TestBitrateObserver> bitrate_observer_; |
213 std::unique_ptr<RemoteBitrateEstimator> bitrate_estimator_; | 213 std::unique_ptr<RemoteBitrateEstimator> bitrate_estimator_; |
214 std::unique_ptr<testing::StreamGenerator> stream_generator_; | 214 std::unique_ptr<testing::StreamGenerator> stream_generator_; |
215 int64_t arrival_time_offset_ms_; | 215 int64_t arrival_time_offset_ms_; |
216 | 216 |
217 RTC_DISALLOW_COPY_AND_ASSIGN(RemoteBitrateEstimatorTest); | 217 RTC_DISALLOW_COPY_AND_ASSIGN(RemoteBitrateEstimatorTest); |
218 }; | 218 }; |
219 } // namespace webrtc | 219 } // namespace webrtc |
220 | 220 |
221 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNIT
TEST_HELPER_H_ | 221 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNIT
TEST_HELPER_H_ |
OLD | NEW |