OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 <algorithm> // max | 10 #include <algorithm> // max |
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 start_bitrate_kbps_ = new_target_bitrate; | 1073 start_bitrate_kbps_ = new_target_bitrate; |
1074 return FakeEncoder::SetRates(new_target_bitrate, framerate); | 1074 return FakeEncoder::SetRates(new_target_bitrate, framerate); |
1075 } | 1075 } |
1076 | 1076 |
1077 int GetStartBitrateKbps() const { | 1077 int GetStartBitrateKbps() const { |
1078 rtc::CritScope lock(&crit_); | 1078 rtc::CritScope lock(&crit_); |
1079 return start_bitrate_kbps_; | 1079 return start_bitrate_kbps_; |
1080 } | 1080 } |
1081 | 1081 |
1082 private: | 1082 private: |
1083 mutable rtc::CriticalSection crit_; | 1083 rtc::CriticalSection crit_; |
1084 int start_bitrate_kbps_ GUARDED_BY(crit_); | 1084 int start_bitrate_kbps_ GUARDED_BY(crit_); |
1085 }; | 1085 }; |
1086 | 1086 |
1087 CreateSenderCall(Call::Config()); | 1087 CreateSenderCall(Call::Config()); |
1088 | 1088 |
1089 test::NullTransport transport; | 1089 test::NullTransport transport; |
1090 CreateSendConfig(1, 0, &transport); | 1090 CreateSendConfig(1, 0, &transport); |
1091 | 1091 |
1092 Call::Config::BitrateConfig bitrate_config; | 1092 Call::Config::BitrateConfig bitrate_config; |
1093 bitrate_config.start_bitrate_bps = | 1093 bitrate_config.start_bitrate_bps = |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2258 observation_complete_.Set(); | 2258 observation_complete_.Set(); |
2259 } | 2259 } |
2260 } | 2260 } |
2261 } test; | 2261 } test; |
2262 | 2262 |
2263 RunBaseTest(&test); | 2263 RunBaseTest(&test); |
2264 } | 2264 } |
2265 #endif | 2265 #endif |
2266 | 2266 |
2267 } // namespace webrtc | 2267 } // namespace webrtc |
OLD | NEW |