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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Call* sender_call_; |
68 VideoSendStream* send_stream_; | 68 VideoSendStream* send_stream_; |
69 test::PacketTransport* send_transport_; | 69 test::PacketTransport* send_transport_; |
70 | 70 |
71 private: | 71 private: |
72 typedef std::map<uint32_t, uint32_t> SsrcMap; | 72 typedef std::map<uint32_t, uint32_t> SsrcMap; |
73 class VideoStreamFactory; | |
74 | 73 |
75 Call::Config GetSenderCallConfig() override; | 74 Call::Config GetSenderCallConfig() override; |
76 void OnVideoStreamsCreated( | 75 void OnVideoStreamsCreated( |
77 VideoSendStream* send_stream, | 76 VideoSendStream* send_stream, |
78 const std::vector<VideoReceiveStream*>& receive_streams) override; | 77 const std::vector<VideoReceiveStream*>& receive_streams) override; |
79 test::PacketTransport* CreateSendTransport(Call* sender_call) override; | 78 test::PacketTransport* CreateSendTransport(Call* sender_call) override; |
80 void ModifyVideoConfigs( | 79 void ModifyVideoConfigs( |
81 VideoSendStream::Config* send_config, | 80 VideoSendStream::Config* send_config, |
82 std::vector<VideoReceiveStream::Config>* receive_configs, | 81 std::vector<VideoReceiveStream::Config>* receive_configs, |
83 VideoEncoderConfig* encoder_config) override; | 82 VideoEncoderConfig* encoder_config) override; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 std::string GetModifierString() const; | 127 std::string GetModifierString() const; |
129 void EvolveTestState(int bitrate_bps, bool suspended); | 128 void EvolveTestState(int bitrate_bps, bool suspended); |
130 | 129 |
131 TestStates test_state_; | 130 TestStates test_state_; |
132 int64_t state_start_ms_; | 131 int64_t state_start_ms_; |
133 int64_t interval_start_ms_; | 132 int64_t interval_start_ms_; |
134 int sent_bytes_; | 133 int sent_bytes_; |
135 }; | 134 }; |
136 } // namespace webrtc | 135 } // namespace webrtc |
137 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ | 136 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ |
OLD | NEW |