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

Side by Side Diff: webrtc/video/rampup_tests.h

Issue 1380483002: Fix bug in ramp-up tests stats where rtx was accounted for in the media ssrc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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/video/rampup_tests.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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const std::string& extension_type, 43 const std::string& extension_type,
44 bool rtx, 44 bool rtx,
45 bool red); 45 bool red);
46 ~RampUpTester() override; 46 ~RampUpTester() override;
47 47
48 void PerformTest() override; 48 void PerformTest() override;
49 49
50 protected: 50 protected:
51 virtual bool PollStats(); 51 virtual bool PollStats();
52 52
53 void GetStats(const VideoSendStream::StreamStats& stream, 53 void AccumulateStats(const VideoSendStream::StreamStats& stream,
54 size_t* total_packets_sent, 54 size_t* total_packets_sent,
55 size_t* total_sent, 55 size_t* total_sent,
56 size_t* padding_sent, 56 size_t* padding_sent,
57 size_t* media_sent) const; 57 size_t* media_sent) const;
58 58
59 void ReportResult(const std::string& measurement, 59 void ReportResult(const std::string& measurement,
60 size_t value, 60 size_t value,
61 const std::string& units) const; 61 const std::string& units) const;
62 void TriggerTestDone(); 62 void TriggerTestDone();
63 63
64 rtc::Event event_; 64 rtc::Event event_;
65 Clock* const clock_; 65 Clock* const clock_;
66 const size_t num_streams_; 66 const size_t num_streams_;
67 const bool rtx_; 67 const bool rtx_;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void EvolveTestState(int bitrate_bps, bool suspended); 123 void EvolveTestState(int bitrate_bps, bool suspended);
124 124
125 FakeNetworkPipe::Config forward_transport_config_; 125 FakeNetworkPipe::Config forward_transport_config_;
126 TestStates test_state_; 126 TestStates test_state_;
127 int64_t state_start_ms_; 127 int64_t state_start_ms_;
128 int64_t interval_start_ms_; 128 int64_t interval_start_ms_;
129 int sent_bytes_; 129 int sent_bytes_;
130 }; 130 };
131 } // namespace webrtc 131 } // namespace webrtc
132 #endif // WEBRTC_VIDEO_RAMPUP_TESTS_H_ 132 #endif // WEBRTC_VIDEO_RAMPUP_TESTS_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/rampup_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698