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

Unified Diff: webrtc/audio/test/audio_end_to_end_test.h

Issue 3008273002: Replace voe_conference_test. (Closed)
Patch Set: rebase Created 3 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/audio/BUILD.gn ('k') | webrtc/audio/test/audio_end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/test/audio_end_to_end_test.h
diff --git a/webrtc/audio/test/low_bandwidth_audio_test.h b/webrtc/audio/test/audio_end_to_end_test.h
similarity index 64%
rename from webrtc/audio/test/low_bandwidth_audio_test.h
rename to webrtc/audio/test/audio_end_to_end_test.h
index ae75707f66d3b64d3f7b1d707ec8dab8d2b34db1..d14b7a108f6785541f17cb61907568ca4a7022dc 100644
--- a/webrtc/audio/test/low_bandwidth_audio_test.h
+++ b/webrtc/audio/test/audio_end_to_end_test.h
@@ -7,28 +7,28 @@
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
-#ifndef WEBRTC_AUDIO_TEST_LOW_BANDWIDTH_AUDIO_TEST_H_
-#define WEBRTC_AUDIO_TEST_LOW_BANDWIDTH_AUDIO_TEST_H_
+#ifndef WEBRTC_AUDIO_TEST_AUDIO_END_TO_END_TEST_H_
+#define WEBRTC_AUDIO_TEST_AUDIO_END_TO_END_TEST_H_
#include <memory>
#include <string>
#include <vector>
#include "webrtc/test/call_test.h"
-#include "webrtc/test/fake_audio_device.h"
namespace webrtc {
namespace test {
-class AudioQualityTest : public test::EndToEndTest {
+class AudioEndToEndTest : public test::EndToEndTest {
public:
- AudioQualityTest();
+ AudioEndToEndTest();
protected:
- virtual std::string AudioInputFile();
- virtual std::string AudioOutputFile();
+ test::FakeAudioDevice* send_audio_device() { return send_audio_device_; }
+ const AudioSendStream* send_stream() const { return send_stream_; }
+ const AudioReceiveStream* receive_stream() const { return receive_stream_; }
- virtual FakeNetworkPipe::Config GetNetworkPipeConfig();
+ virtual FakeNetworkPipe::Config GetNetworkPipeConfig() const;
size_t GetNumVideoStreams() const override;
size_t GetNumAudioStreams() const override;
@@ -50,15 +50,19 @@ class AudioQualityTest : public test::EndToEndTest {
void ModifyAudioConfigs(
AudioSendStream::Config* send_config,
std::vector<AudioReceiveStream::Config>* receive_configs) override;
+ void OnAudioStreamsCreated(
+ AudioSendStream* send_stream,
+ const std::vector<AudioReceiveStream*>& receive_streams) override;
void PerformTest() override;
- void OnTestFinished() override;
private:
- test::FakeAudioDevice* send_audio_device_;
+ test::FakeAudioDevice* send_audio_device_ = nullptr;
+ AudioSendStream* send_stream_ = nullptr;
+ AudioReceiveStream* receive_stream_ = nullptr;
};
} // namespace test
} // namespace webrtc
-#endif // WEBRTC_AUDIO_TEST_LOW_BANDWIDTH_AUDIO_TEST_H_
+#endif // WEBRTC_AUDIO_TEST_AUDIO_END_TO_END_TEST_H_
« no previous file with comments | « webrtc/audio/BUILD.gn ('k') | webrtc/audio/test/audio_end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698