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

Unified Diff: webrtc/test/call_test.cc

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/test/call_test.h ('k') | webrtc/voice_engine/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/call_test.cc
diff --git a/webrtc/test/call_test.cc b/webrtc/test/call_test.cc
index b5d7236a65181350001d518ddb7ae8b8b0c538ff..d4084d52a965a5e5dc30125689dfe374194e098e 100644
--- a/webrtc/test/call_test.cc
+++ b/webrtc/test/call_test.cc
@@ -153,8 +153,9 @@ void CallTest::RunBaseTest(BaseTest* test) {
test->PerformTest();
- task_queue_.SendTask([this]() {
+ task_queue_.SendTask([this, test]() {
Stop();
+ test->OnStreamsStopped();
DestroyStreams();
send_transport_.reset();
receive_transport_.reset();
@@ -162,8 +163,6 @@ void CallTest::RunBaseTest(BaseTest* test) {
if (num_audio_streams_ > 0)
DestroyVoiceEngines();
});
-
- test->OnTestFinished();
}
void CallTest::CreateCalls(const Call::Config& sender_config,
@@ -223,7 +222,7 @@ void CallTest::CreateSendConfig(size_t num_video_streams,
audio_send_config_.rtp.ssrc = kAudioSendSsrc;
audio_send_config_.send_codec_spec =
rtc::Optional<AudioSendStream::Config::SendCodecSpec>(
- {kAudioSendPayloadType, {"OPUS", 48000, 2, {{"stereo", "1"}}}});
+ {kAudioSendPayloadType, {"opus", 48000, 2, {{"stereo", "1"}}}});
audio_send_config_.encoder_factory = encoder_factory_;
}
@@ -590,7 +589,7 @@ void BaseTest::OnFrameGeneratorCapturerCreated(
FrameGeneratorCapturer* frame_generator_capturer) {
}
-void BaseTest::OnTestFinished() {
+void BaseTest::OnStreamsStopped() {
}
SendTest::SendTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
« no previous file with comments | « webrtc/test/call_test.h ('k') | webrtc/voice_engine/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698