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 1419193002: Call OnSentPacket for all packets sent in the test framework. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years, 1 month 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 FakeNetworkPipe::Config forward_transport_config_;
66 const size_t num_streams_; 67 const size_t num_streams_;
67 const bool rtx_; 68 const bool rtx_;
68 const bool red_; 69 const bool red_;
69 VideoSendStream* send_stream_; 70 VideoSendStream* send_stream_;
70 71
71 private: 72 private:
72 typedef std::map<uint32_t, uint32_t> SsrcMap; 73 typedef std::map<uint32_t, uint32_t> SsrcMap;
73 74
74 Call::Config GetSenderCallConfig() override; 75 Call::Config GetSenderCallConfig() override;
75 void OnStreamsCreated( 76 void OnStreamsCreated(
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 static const int kExpectedHighBitrateBps = 60000; 116 static const int kExpectedHighBitrateBps = 60000;
116 static const int kLowBandwidthLimitBps = 20000; 117 static const int kLowBandwidthLimitBps = 20000;
117 static const int kExpectedLowBitrateBps = 20000; 118 static const int kExpectedLowBitrateBps = 20000;
118 enum TestStates { kFirstRampup, kLowRate, kSecondRampup }; 119 enum TestStates { kFirstRampup, kLowRate, kSecondRampup };
119 120
120 Call::Config GetReceiverCallConfig() override; 121 Call::Config GetReceiverCallConfig() override;
121 122
122 std::string GetModifierString() const; 123 std::string GetModifierString() const;
123 void EvolveTestState(int bitrate_bps, bool suspended); 124 void EvolveTestState(int bitrate_bps, bool suspended);
124 125
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

Powered by Google App Engine
This is Rietveld 408576698