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 #ifndef WEBRTC_TEST_CALL_TEST_H_ | 10 #ifndef WEBRTC_TEST_CALL_TEST_H_ |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 std::vector<VideoReceiveStream::Config> video_receive_configs_; | 95 std::vector<VideoReceiveStream::Config> video_receive_configs_; |
96 std::vector<VideoReceiveStream*> video_receive_streams_; | 96 std::vector<VideoReceiveStream*> video_receive_streams_; |
97 std::vector<AudioReceiveStream::Config> audio_receive_configs_; | 97 std::vector<AudioReceiveStream::Config> audio_receive_configs_; |
98 std::vector<AudioReceiveStream*> audio_receive_streams_; | 98 std::vector<AudioReceiveStream*> audio_receive_streams_; |
99 | 99 |
100 std::unique_ptr<test::FrameGeneratorCapturer> frame_generator_capturer_; | 100 std::unique_ptr<test::FrameGeneratorCapturer> frame_generator_capturer_; |
101 test::FakeEncoder fake_encoder_; | 101 test::FakeEncoder fake_encoder_; |
102 std::vector<std::unique_ptr<VideoDecoder>> allocated_decoders_; | 102 std::vector<std::unique_ptr<VideoDecoder>> allocated_decoders_; |
103 size_t num_video_streams_; | 103 size_t num_video_streams_; |
104 size_t num_audio_streams_; | 104 size_t num_audio_streams_; |
| 105 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
105 | 106 |
106 private: | 107 private: |
107 // TODO(holmer): Remove once VoiceEngine is fully refactored to the new API. | 108 // TODO(holmer): Remove once VoiceEngine is fully refactored to the new API. |
108 // These methods are used to set up legacy voice engines and channels which is | 109 // These methods are used to set up legacy voice engines and channels which is |
109 // necessary while voice engine is being refactored to the new stream API. | 110 // necessary while voice engine is being refactored to the new stream API. |
110 struct VoiceEngineState { | 111 struct VoiceEngineState { |
111 VoiceEngineState() | 112 VoiceEngineState() |
112 : voice_engine(nullptr), | 113 : voice_engine(nullptr), |
113 base(nullptr), | 114 base(nullptr), |
114 codec(nullptr), | 115 codec(nullptr), |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 public: | 180 public: |
180 explicit EndToEndTest(unsigned int timeout_ms); | 181 explicit EndToEndTest(unsigned int timeout_ms); |
181 | 182 |
182 bool ShouldCreateReceivers() const override; | 183 bool ShouldCreateReceivers() const override; |
183 }; | 184 }; |
184 | 185 |
185 } // namespace test | 186 } // namespace test |
186 } // namespace webrtc | 187 } // namespace webrtc |
187 | 188 |
188 #endif // WEBRTC_TEST_CALL_TEST_H_ | 189 #endif // WEBRTC_TEST_CALL_TEST_H_ |
OLD | NEW |