Add stream labels into PeerConnection level smoke test.
Bug: webrtc:10138 Change-Id: I779a8eb0516471273ddb313df3c2a34e66dff869 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/131396 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27479}
This commit is contained in:
@ -80,10 +80,12 @@ TEST(PeerConnectionE2EQualityTestSmokeTest, RunWithEmulatedNetwork) {
|
||||
{alice_endpoint});
|
||||
fixture->AddPeer(alice_network->network_thread(),
|
||||
alice_network->network_manager(), [](PeerConfigurer* alice) {
|
||||
VideoConfig alice_video_config(640, 360, 30);
|
||||
alice_video_config.stream_label = "alice-video";
|
||||
alice->AddVideoConfig(std::move(alice_video_config));
|
||||
alice->SetAudioConfig(AudioConfig());
|
||||
VideoConfig video_config(640, 360, 30);
|
||||
video_config.stream_label = "alice-video";
|
||||
alice->AddVideoConfig(std::move(video_config));
|
||||
AudioConfig audio_config;
|
||||
audio_config.stream_label = "alice-audio";
|
||||
alice->SetAudioConfig(std::move(audio_config));
|
||||
});
|
||||
|
||||
EmulatedNetworkManagerInterface* bob_network =
|
||||
@ -91,10 +93,12 @@ TEST(PeerConnectionE2EQualityTestSmokeTest, RunWithEmulatedNetwork) {
|
||||
{bob_endpoint});
|
||||
fixture->AddPeer(bob_network->network_thread(),
|
||||
bob_network->network_manager(), [](PeerConfigurer* bob) {
|
||||
VideoConfig bob_video_config(640, 360, 30);
|
||||
bob_video_config.stream_label = "bob-video";
|
||||
bob->AddVideoConfig(std::move(bob_video_config));
|
||||
bob->SetAudioConfig(AudioConfig());
|
||||
VideoConfig video_config(640, 360, 30);
|
||||
video_config.stream_label = "bob-video";
|
||||
bob->AddVideoConfig(std::move(video_config));
|
||||
AudioConfig audio_config;
|
||||
audio_config.stream_label = "bob-audio";
|
||||
bob->SetAudioConfig(std::move(audio_config));
|
||||
});
|
||||
|
||||
RunParams run_params(TimeDelta::seconds(5));
|
||||
|
Reference in New Issue
Block a user