Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: webrtc/video/video_send_stream_tests.cc

Issue 1613643004: Remove mutable from rtc::CriticalSection members. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/send_statistics_proxy.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/video/send_statistics_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698