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

Side by Side Diff: webrtc/audio/test/low_bandwidth_audio_test.h

Issue 2694203002: Low-bandwidth audio testing (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « webrtc/audio/DEPS ('k') | webrtc/audio/test/low_bandwidth_audio_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10 #ifndef WEBRTC_AUDIO_TEST_LOW_BANDWIDTH_AUDIO_TEST_H_
11 #define WEBRTC_AUDIO_TEST_LOW_BANDWIDTH_AUDIO_TEST_H_
12
13 #include <memory>
14 #include <string>
15 #include <vector>
16
17 #include "webrtc/test/call_test.h"
18 #include "webrtc/test/fake_audio_device.h"
19
20 namespace webrtc {
21 namespace test {
22
23 class AudioQualityTest : public test::EndToEndTest {
24 public:
25 AudioQualityTest();
26
27 protected:
28 virtual std::string AudioInputFile();
29 virtual std::string AudioOutputFile();
30
31 virtual FakeNetworkPipe::Config GetNetworkPipeConfig();
32
33 size_t GetNumVideoStreams() const override;
34 size_t GetNumAudioStreams() const override;
35 size_t GetNumFlexfecStreams() const override;
36
37 std::unique_ptr<test::FakeAudioDevice::Capturer> CreateCapturer() override;
38 std::unique_ptr<test::FakeAudioDevice::Renderer> CreateRenderer() override;
39
40 void OnFakeAudioDevicesCreated(
41 test::FakeAudioDevice* send_audio_device,
42 test::FakeAudioDevice* recv_audio_device) override;
43
44 test::PacketTransport* CreateSendTransport(Call* sender_call) override;
45 test::PacketTransport* CreateReceiveTransport() override;
46
47 void ModifyAudioConfigs(
48 AudioSendStream::Config* send_config,
49 std::vector<AudioReceiveStream::Config>* receive_configs) override;
50
51 void PerformTest() override;
52 void OnTestFinished() override;
53
54 private:
55 test::FakeAudioDevice* send_audio_device_;
56 };
57
58 } // namespace test
59 } // namespace webrtc
60
61 #endif // WEBRTC_AUDIO_TEST_LOW_BANDWIDTH_AUDIO_TEST_H_
OLDNEW
« no previous file with comments | « webrtc/audio/DEPS ('k') | webrtc/audio/test/low_bandwidth_audio_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698