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 <utility> | 16 #include <utility> |
17 | 17 |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "webrtc/base/constructormagic.h" | 19 #include "webrtc/base/constructormagic.h" |
20 #include "webrtc/base/scoped_ptr.h" | 20 #include "webrtc/base/scoped_ptr.h" |
21 #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" |
22 #include "webrtc/system_wrappers/interface/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace testing { | 25 namespace testing { |
26 | 26 |
27 class TestBitrateObserver : public RemoteBitrateObserver { | 27 class TestBitrateObserver : public RemoteBitrateObserver { |
28 public: | 28 public: |
29 TestBitrateObserver() : updated_(false), latest_bitrate_(0) {} | 29 TestBitrateObserver() : updated_(false), latest_bitrate_(0) {} |
30 virtual ~TestBitrateObserver() {} | 30 virtual ~TestBitrateObserver() {} |
31 | 31 |
32 void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, | 32 void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 SimulatedClock clock_; // Time at the receiver. | 209 SimulatedClock clock_; // Time at the receiver. |
210 rtc::scoped_ptr<testing::TestBitrateObserver> bitrate_observer_; | 210 rtc::scoped_ptr<testing::TestBitrateObserver> bitrate_observer_; |
211 rtc::scoped_ptr<RemoteBitrateEstimator> bitrate_estimator_; | 211 rtc::scoped_ptr<RemoteBitrateEstimator> bitrate_estimator_; |
212 rtc::scoped_ptr<testing::StreamGenerator> stream_generator_; | 212 rtc::scoped_ptr<testing::StreamGenerator> stream_generator_; |
213 | 213 |
214 RTC_DISALLOW_COPY_AND_ASSIGN(RemoteBitrateEstimatorTest); | 214 RTC_DISALLOW_COPY_AND_ASSIGN(RemoteBitrateEstimatorTest); |
215 }; | 215 }; |
216 } // namespace webrtc | 216 } // namespace webrtc |
217 | 217 |
218 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNIT
TEST_HELPER_H_ | 218 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNIT
TEST_HELPER_H_ |
OLD | NEW |