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

Side by Side Diff: webrtc/test/fake_network_pipe.h

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/test/fake_audio_device.h ('k') | webrtc/video/overuse_frame_detector.h » ('j') | 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) 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
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 int64_t TimeUntilNextProcess() const; 64 int64_t TimeUntilNextProcess() const;
65 65
66 // Get statistics. 66 // Get statistics.
67 float PercentageLoss(); 67 float PercentageLoss();
68 int AverageDelay(); 68 int AverageDelay();
69 size_t dropped_packets() { return dropped_packets_; } 69 size_t dropped_packets() { return dropped_packets_; }
70 size_t sent_packets() { return sent_packets_; } 70 size_t sent_packets() { return sent_packets_; }
71 71
72 private: 72 private:
73 Clock* const clock_; 73 Clock* const clock_;
74 mutable rtc::CriticalSection lock_; 74 rtc::CriticalSection lock_;
75 PacketReceiver* packet_receiver_; 75 PacketReceiver* packet_receiver_;
76 std::queue<NetworkPacket*> capacity_link_; 76 std::queue<NetworkPacket*> capacity_link_;
77 std::queue<NetworkPacket*> delay_link_; 77 std::queue<NetworkPacket*> delay_link_;
78 78
79 // Link configuration. 79 // Link configuration.
80 Config config_; 80 Config config_;
81 81
82 // Statistics. 82 // Statistics.
83 size_t dropped_packets_; 83 size_t dropped_packets_;
84 size_t sent_packets_; 84 size_t sent_packets_;
85 int64_t total_packet_delay_; 85 int64_t total_packet_delay_;
86 86
87 int64_t next_process_time_; 87 int64_t next_process_time_;
88 88
89 RTC_DISALLOW_COPY_AND_ASSIGN(FakeNetworkPipe); 89 RTC_DISALLOW_COPY_AND_ASSIGN(FakeNetworkPipe);
90 }; 90 };
91 91
92 } // namespace webrtc 92 } // namespace webrtc
93 93
94 #endif // WEBRTC_TEST_FAKE_NETWORK_PIPE_H_ 94 #endif // WEBRTC_TEST_FAKE_NETWORK_PIPE_H_
OLDNEW
« no previous file with comments | « webrtc/test/fake_audio_device.h ('k') | webrtc/video/overuse_frame_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698