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

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

Issue 1578223002: Fix test bug introduced in r11101. (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 | « no previous file | webrtc/call/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 21 matching lines...) Expand all
32 class RampUpTester : public test::EndToEndTest { 32 class RampUpTester : public test::EndToEndTest {
33 public: 33 public:
34 RampUpTester(size_t num_video_streams, 34 RampUpTester(size_t num_video_streams,
35 size_t num_audio_streams, 35 size_t num_audio_streams,
36 unsigned int start_bitrate_bps, 36 unsigned int start_bitrate_bps,
37 const std::string& extension_type, 37 const std::string& extension_type,
38 bool rtx, 38 bool rtx,
39 bool red); 39 bool red);
40 ~RampUpTester() override; 40 ~RampUpTester() override;
41 41
42 size_t GetNumVideoStreams() const override;
43
42 void PerformTest() override; 44 void PerformTest() override;
43 45
44 protected: 46 protected:
45 virtual bool PollStats(); 47 virtual bool PollStats();
46 48
47 void AccumulateStats(const VideoSendStream::StreamStats& stream, 49 void AccumulateStats(const VideoSendStream::StreamStats& stream,
48 size_t* total_packets_sent, 50 size_t* total_packets_sent,
49 size_t* total_sent, 51 size_t* total_sent,
50 size_t* padding_sent, 52 size_t* padding_sent,
51 size_t* media_sent) const; 53 size_t* media_sent) const;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 std::string GetModifierString() const; 123 std::string GetModifierString() const;
122 void EvolveTestState(int bitrate_bps, bool suspended); 124 void EvolveTestState(int bitrate_bps, bool suspended);
123 125
124 TestStates test_state_; 126 TestStates test_state_;
125 int64_t state_start_ms_; 127 int64_t state_start_ms_;
126 int64_t interval_start_ms_; 128 int64_t interval_start_ms_;
127 int sent_bytes_; 129 int sent_bytes_;
128 }; 130 };
129 } // namespace webrtc 131 } // namespace webrtc
130 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ 132 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/call/rampup_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698