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 | 10 |
11 #include "webrtc/modules/video_coding/utility/simulcast_rate_allocator.h" | 11 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_rate_allocator.h" |
12 | 12 |
13 #include <limits> | 13 #include <limits> |
14 #include <memory> | 14 #include <memory> |
15 #include <utility> | 15 #include <utility> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/test/gmock.h" | 18 #include "webrtc/test/gmock.h" |
19 #include "webrtc/test/gtest.h" | 19 #include "webrtc/test/gtest.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 allocator_->GetAllocation(kMaxBitrateKbps * 2000, kFramerateFps); | 362 allocator_->GetAllocation(kMaxBitrateKbps * 2000, kFramerateFps); |
363 | 363 |
364 // Fill both TL0 and TL1, but no more. | 364 // Fill both TL0 and TL1, but no more. |
365 EXPECT_EQ(kMaxBitrateKbps, allocation.get_sum_kbps()); | 365 EXPECT_EQ(kMaxBitrateKbps, allocation.get_sum_kbps()); |
366 EXPECT_EQ(kTargetBitrateKbps, allocation.GetBitrate(0, 0) / 1000); | 366 EXPECT_EQ(kTargetBitrateKbps, allocation.GetBitrate(0, 0) / 1000); |
367 EXPECT_EQ(kMaxBitrateKbps - kTargetBitrateKbps, | 367 EXPECT_EQ(kMaxBitrateKbps - kTargetBitrateKbps, |
368 allocation.GetBitrate(0, 1) / 1000); | 368 allocation.GetBitrate(0, 1) / 1000); |
369 } | 369 } |
370 | 370 |
371 } // namespace webrtc | 371 } // namespace webrtc |
OLD | NEW |