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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h

Issue 2756483002: Use RTC_UNUSED instead of conditional compilation in BWE simulator tool. (Closed)
Patch Set: Attempt static_cast<void>(x) Created 3 years, 9 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 | « no previous file | webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc » ('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) 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 10
(...skipping 16 matching lines...) Expand all
27 #include "webrtc/base/constructormagic.h" 27 #include "webrtc/base/constructormagic.h"
28 #include "webrtc/base/random.h" 28 #include "webrtc/base/random.h"
29 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" 29 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h"
30 #include "webrtc/modules/include/module_common_types.h" 30 #include "webrtc/modules/include/module_common_types.h"
31 #include "webrtc/modules/pacing/paced_sender.h" 31 #include "webrtc/modules/pacing/paced_sender.h"
32 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h" 32 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h"
33 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" 33 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
34 #include "webrtc/modules/remote_bitrate_estimator/test/packet.h" 34 #include "webrtc/modules/remote_bitrate_estimator/test/packet.h"
35 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 35 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
36 #include "webrtc/system_wrappers/include/clock.h" 36 #include "webrtc/system_wrappers/include/clock.h"
37 #include "webrtc/typedefs.h"
37 38
38 namespace webrtc { 39 namespace webrtc {
39 40
40 class RtcpBandwidthObserver; 41 class RtcpBandwidthObserver;
41 42
42 namespace testing { 43 namespace testing {
43 namespace bwe { 44 namespace bwe {
44 45
45 class DelayCapHelper; 46 class DelayCapHelper;
46 47
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 244
244 void LogStats(); 245 void LogStats();
245 Stats<double> GetBitrateStats() const; 246 Stats<double> GetBitrateStats() const;
246 virtual void Plot(int64_t timestamp_ms); 247 virtual void Plot(int64_t timestamp_ms);
247 virtual void RunFor(int64_t time_ms, Packets* in_out); 248 virtual void RunFor(int64_t time_ms, Packets* in_out);
248 249
249 private: 250 private:
250 Stats<double> packets_per_second_stats_; 251 Stats<double> packets_per_second_stats_;
251 Stats<double> kbps_stats_; 252 Stats<double> kbps_stats_;
252 int64_t start_plotting_time_ms_; 253 int64_t start_plotting_time_ms_;
253 #if BWE_TEST_LOGGING_COMPILE_TIME_ENABLE
254 int flow_id_ = 0; 254 int flow_id_ = 0;
255 #endif
256 std::string name_; 255 std::string name_;
257 // Algorithm name if single flow, Total link utilization if all flows. 256 // Algorithm name if single flow, Total link utilization if all flows.
258 std::string algorithm_name_; 257 std::string algorithm_name_;
259 258
260 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RateCounterFilter); 259 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RateCounterFilter);
261 }; 260 };
262 261
263 class LossFilter : public PacketProcessor { 262 class LossFilter : public PacketProcessor {
264 public: 263 public:
265 LossFilter(PacketProcessorListener* listener, int flow_id); 264 LossFilter(PacketProcessorListener* listener, int flow_id);
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 uint32_t frame_counter_; 464 uint32_t frame_counter_;
466 int compensation_bytes_; 465 int compensation_bytes_;
467 int compensation_per_frame_; 466 int compensation_per_frame_;
468 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(PeriodicKeyFrameSource); 467 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(PeriodicKeyFrameSource);
469 }; 468 };
470 } // namespace bwe 469 } // namespace bwe
471 } // namespace testing 470 } // namespace testing
472 } // namespace webrtc 471 } // namespace webrtc
473 472
474 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_FRAMEWORK_H_ 473 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_FRAMEWORK_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698