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 |
(...skipping 10 matching lines...) Expand all Loading... |
21 using ::testing::_; | 21 using ::testing::_; |
22 using ::testing::NiceMock; | 22 using ::testing::NiceMock; |
23 using ::testing::Return; | 23 using ::testing::Return; |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 constexpr size_t kNumControllers = 2; | 27 constexpr size_t kNumControllers = 2; |
28 | 28 |
29 MATCHER_P(NetworkMetricsIs, metric, "") { | 29 MATCHER_P(NetworkMetricsIs, metric, "") { |
30 return arg.uplink_bandwidth_bps == metric.uplink_bandwidth_bps && | 30 return arg.uplink_bandwidth_bps == metric.uplink_bandwidth_bps && |
31 arg.target_audio_bitrate_bps == metric.target_audio_bitrate_bps && | |
32 arg.uplink_packet_loss_fraction == metric.uplink_packet_loss_fraction; | 31 arg.uplink_packet_loss_fraction == metric.uplink_packet_loss_fraction; |
33 } | 32 } |
34 | 33 |
35 MATCHER_P(ConstraintsReceiverFrameLengthRangeIs, frame_length_range, "") { | 34 MATCHER_P(ConstraintsReceiverFrameLengthRangeIs, frame_length_range, "") { |
36 return arg.receiver_frame_length_range->min_frame_length_ms == | 35 return arg.receiver_frame_length_range->min_frame_length_ms == |
37 frame_length_range.min_frame_length_ms && | 36 frame_length_range.min_frame_length_ms && |
38 arg.receiver_frame_length_range->max_frame_length_ms == | 37 arg.receiver_frame_length_range->max_frame_length_ms == |
39 frame_length_range.max_frame_length_ms; | 38 frame_length_range.max_frame_length_ms; |
40 } | 39 } |
41 | 40 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 101 |
103 for (auto& mock_controller : states.mock_controllers) { | 102 for (auto& mock_controller : states.mock_controllers) { |
104 EXPECT_CALL(*mock_controller, | 103 EXPECT_CALL(*mock_controller, |
105 SetConstraints(ConstraintsReceiverFrameLengthRangeIs( | 104 SetConstraints(ConstraintsReceiverFrameLengthRangeIs( |
106 Controller::Constraints::FrameLengthRange(20, 120)))); | 105 Controller::Constraints::FrameLengthRange(20, 120)))); |
107 } | 106 } |
108 states.audio_network_adaptor->SetReceiverFrameLengthRange(20, 120); | 107 states.audio_network_adaptor->SetReceiverFrameLengthRange(20, 120); |
109 } | 108 } |
110 | 109 |
111 } // namespace webrtc | 110 } // namespace webrtc |
OLD | NEW |