| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "webrtc/base/logging.h" |
| 12 #include "webrtc/modules/congestion_controller/probe_controller.h" | 13 #include "webrtc/modules/congestion_controller/probe_controller.h" |
| 13 #include "webrtc/modules/pacing/mock/mock_paced_sender.h" | 14 #include "webrtc/modules/pacing/mock/mock_paced_sender.h" |
| 14 #include "webrtc/rtc_base/logging.h" | |
| 15 #include "webrtc/system_wrappers/include/clock.h" | 15 #include "webrtc/system_wrappers/include/clock.h" |
| 16 #include "webrtc/test/gmock.h" | 16 #include "webrtc/test/gmock.h" |
| 17 #include "webrtc/test/gtest.h" | 17 #include "webrtc/test/gtest.h" |
| 18 | 18 |
| 19 using testing::_; | 19 using testing::_; |
| 20 using testing::AtLeast; | 20 using testing::AtLeast; |
| 21 using testing::NiceMock; | 21 using testing::NiceMock; |
| 22 using testing::Return; | 22 using testing::Return; |
| 23 | 23 |
| 24 namespace webrtc { | 24 namespace webrtc { |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 probe_controller_->SetEstimatedBitrate(60 * kMbpsMultiplier); | 213 probe_controller_->SetEstimatedBitrate(60 * kMbpsMultiplier); |
| 214 testing::Mock::VerifyAndClearExpectations(&pacer_); | 214 testing::Mock::VerifyAndClearExpectations(&pacer_); |
| 215 | 215 |
| 216 // Verify that repeated probes aren't sent. | 216 // Verify that repeated probes aren't sent. |
| 217 EXPECT_CALL(pacer_, CreateProbeCluster(_)).Times(0); | 217 EXPECT_CALL(pacer_, CreateProbeCluster(_)).Times(0); |
| 218 probe_controller_->SetEstimatedBitrate(100 * kMbpsMultiplier); | 218 probe_controller_->SetEstimatedBitrate(100 * kMbpsMultiplier); |
| 219 } | 219 } |
| 220 | 220 |
| 221 } // namespace test | 221 } // namespace test |
| 222 } // namespace webrtc | 222 } // namespace webrtc |
| OLD | NEW |