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 #include <math.h> | 11 #include <math.h> |
| 12 |
| 13 #include <algorithm> |
12 #include <cmath> | 14 #include <cmath> |
13 #include <cstdlib> | 15 #include <cstdlib> |
14 | 16 |
15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
16 | 18 |
17 #include "webrtc/base/random.h" | 19 #include "webrtc/base/random.h" |
18 #include "webrtc/base/scoped_ptr.h" | 20 #include "webrtc/base/scoped_ptr.h" |
19 #include "webrtc/common_types.h" | 21 #include "webrtc/common_types.h" |
20 #include "webrtc/modules/remote_bitrate_estimator/inter_arrival.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/inter_arrival.h" |
21 #include "webrtc/modules/remote_bitrate_estimator/overuse_detector.h" | 23 #include "webrtc/modules/remote_bitrate_estimator/overuse_detector.h" |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 if (overuse_state == kBwOverusing) { | 735 if (overuse_state == kBwOverusing) { |
734 overuse_detected = true; | 736 overuse_detected = true; |
735 } | 737 } |
736 ++num_deltas; | 738 ++num_deltas; |
737 now_ms += 5; | 739 now_ms += 5; |
738 } | 740 } |
739 EXPECT_TRUE(overuse_detected); | 741 EXPECT_TRUE(overuse_detected); |
740 } | 742 } |
741 } // namespace testing | 743 } // namespace testing |
742 } // namespace webrtc | 744 } // namespace webrtc |
OLD | NEW |