Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: webrtc/test/call_test.h

Issue 2705093002: Injectable audio encoders: WebRtcVoiceEngine and company (Closed)
Patch Set: Moved encoder creation up into AudioSendStream, bypassing most of Channel. Created 3 years, 10 months 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 #ifndef WEBRTC_TEST_CALL_TEST_H_ 10 #ifndef WEBRTC_TEST_CALL_TEST_H_
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 std::vector<FlexfecReceiveStream::Config> flexfec_receive_configs_; 112 std::vector<FlexfecReceiveStream::Config> flexfec_receive_configs_;
113 std::vector<FlexfecReceiveStream*> flexfec_receive_streams_; 113 std::vector<FlexfecReceiveStream*> flexfec_receive_streams_;
114 114
115 std::unique_ptr<test::FrameGeneratorCapturer> frame_generator_capturer_; 115 std::unique_ptr<test::FrameGeneratorCapturer> frame_generator_capturer_;
116 test::FakeEncoder fake_encoder_; 116 test::FakeEncoder fake_encoder_;
117 std::vector<std::unique_ptr<VideoDecoder>> allocated_decoders_; 117 std::vector<std::unique_ptr<VideoDecoder>> allocated_decoders_;
118 size_t num_video_streams_; 118 size_t num_video_streams_;
119 size_t num_audio_streams_; 119 size_t num_audio_streams_;
120 size_t num_flexfec_streams_; 120 size_t num_flexfec_streams_;
121 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; 121 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_;
122 rtc::scoped_refptr<AudioEncoderFactory> encoder_factory_;
122 test::FakeVideoRenderer fake_renderer_; 123 test::FakeVideoRenderer fake_renderer_;
123 124
124 private: 125 private:
125 // TODO(holmer): Remove once VoiceEngine is fully refactored to the new API. 126 // TODO(holmer): Remove once VoiceEngine is fully refactored to the new API.
126 // These methods are used to set up legacy voice engines and channels which is 127 // These methods are used to set up legacy voice engines and channels which is
127 // necessary while voice engine is being refactored to the new stream API. 128 // necessary while voice engine is being refactored to the new stream API.
128 struct VoiceEngineState { 129 struct VoiceEngineState {
129 VoiceEngineState() 130 VoiceEngineState()
130 : voice_engine(nullptr), 131 : voice_engine(nullptr),
131 base(nullptr), 132 base(nullptr),
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 public: 207 public:
207 explicit EndToEndTest(unsigned int timeout_ms); 208 explicit EndToEndTest(unsigned int timeout_ms);
208 209
209 bool ShouldCreateReceivers() const override; 210 bool ShouldCreateReceivers() const override;
210 }; 211 };
211 212
212 } // namespace test 213 } // namespace test
213 } // namespace webrtc 214 } // namespace webrtc
214 215
215 #endif // WEBRTC_TEST_CALL_TEST_H_ 216 #endif // WEBRTC_TEST_CALL_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698