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