OLD | NEW |
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const std::string& units) const; | 57 const std::string& units) const; |
58 void TriggerTestDone(); | 58 void TriggerTestDone(); |
59 | 59 |
60 rtc::Event event_; | 60 rtc::Event event_; |
61 Clock* const clock_; | 61 Clock* const clock_; |
62 FakeNetworkPipe::Config forward_transport_config_; | 62 FakeNetworkPipe::Config forward_transport_config_; |
63 const size_t num_video_streams_; | 63 const size_t num_video_streams_; |
64 const size_t num_audio_streams_; | 64 const size_t num_audio_streams_; |
65 const bool rtx_; | 65 const bool rtx_; |
66 const bool red_; | 66 const bool red_; |
| 67 Call* sender_call_; |
67 VideoSendStream* send_stream_; | 68 VideoSendStream* send_stream_; |
68 test::PacketTransport* send_transport_; | 69 test::PacketTransport* send_transport_; |
69 | 70 |
70 private: | 71 private: |
71 typedef std::map<uint32_t, uint32_t> SsrcMap; | 72 typedef std::map<uint32_t, uint32_t> SsrcMap; |
72 | 73 |
73 Call::Config GetSenderCallConfig() override; | 74 Call::Config GetSenderCallConfig() override; |
74 void OnVideoStreamsCreated( | 75 void OnVideoStreamsCreated( |
75 VideoSendStream* send_stream, | 76 VideoSendStream* send_stream, |
76 const std::vector<VideoReceiveStream*>& receive_streams) override; | 77 const std::vector<VideoReceiveStream*>& receive_streams) override; |
(...skipping 15 matching lines...) Expand all Loading... |
92 int64_t test_start_ms_; | 93 int64_t test_start_ms_; |
93 int64_t ramp_up_finished_ms_; | 94 int64_t ramp_up_finished_ms_; |
94 | 95 |
95 const std::string extension_type_; | 96 const std::string extension_type_; |
96 std::vector<uint32_t> video_ssrcs_; | 97 std::vector<uint32_t> video_ssrcs_; |
97 std::vector<uint32_t> video_rtx_ssrcs_; | 98 std::vector<uint32_t> video_rtx_ssrcs_; |
98 std::vector<uint32_t> audio_ssrcs_; | 99 std::vector<uint32_t> audio_ssrcs_; |
99 SsrcMap rtx_ssrc_map_; | 100 SsrcMap rtx_ssrc_map_; |
100 | 101 |
101 rtc::PlatformThread poller_thread_; | 102 rtc::PlatformThread poller_thread_; |
102 Call* sender_call_; | |
103 }; | 103 }; |
104 | 104 |
105 class RampUpDownUpTester : public RampUpTester { | 105 class RampUpDownUpTester : public RampUpTester { |
106 public: | 106 public: |
107 RampUpDownUpTester(size_t num_video_streams, | 107 RampUpDownUpTester(size_t num_video_streams, |
108 size_t num_audio_streams, | 108 size_t num_audio_streams, |
109 unsigned int start_bitrate_bps, | 109 unsigned int start_bitrate_bps, |
110 const std::string& extension_type, | 110 const std::string& extension_type, |
111 bool rtx, | 111 bool rtx, |
112 bool red); | 112 bool red); |
(...skipping 14 matching lines...) Expand all Loading... |
127 std::string GetModifierString() const; | 127 std::string GetModifierString() const; |
128 void EvolveTestState(int bitrate_bps, bool suspended); | 128 void EvolveTestState(int bitrate_bps, bool suspended); |
129 | 129 |
130 TestStates test_state_; | 130 TestStates test_state_; |
131 int64_t state_start_ms_; | 131 int64_t state_start_ms_; |
132 int64_t interval_start_ms_; | 132 int64_t interval_start_ms_; |
133 int sent_bytes_; | 133 int sent_bytes_; |
134 }; | 134 }; |
135 } // namespace webrtc | 135 } // namespace webrtc |
136 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ | 136 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ |
OLD | NEW |