Skip to content

Commit

Permalink
Stop using DEPRECATED_SingleThreadedTaskQueueForTesting in MultiStrea…
Browse files Browse the repository at this point in the history
…mTester

Bug: webrtc:10933
Change-Id: I61ae0726fb197e5a779e036b5b1390c29ca96aa1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159714
Reviewed-by: Ilya Nikolaevskiy <[email protected]>
Commit-Queue: Danil Chapovalov <[email protected]>
Cr-Commit-Position: refs/heads/master@{#29829}
  • Loading branch information
DanilChapovalov authored and Commit Bot committed Nov 19, 2019
1 parent 3574d05 commit 0197887
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion video/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@ if (rtc_include_tests) {
"../test:null_transport",
"../test:perf_test",
"../test:rtp_test_utils",
"../test:single_threaded_task_queue",
"../test:test_common",
"../test:test_support",
"../test:video_test_common",
Expand Down
10 changes: 5 additions & 5 deletions video/end_to_end_tests/multi_stream_tester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "rtc_base/task_queue_for_test.h"
#include "test/call_test.h"
#include "test/encoder_settings.h"
#include "test/single_threaded_task_queue.h"

namespace webrtc {

Expand All @@ -44,10 +43,11 @@ MultiStreamTester::~MultiStreamTester() = default;
void MultiStreamTester::RunTest() {
webrtc::RtcEventLogNull event_log;
auto task_queue_factory = CreateDefaultTaskQueueFactory();
// TODO(bugs.webrtc.org/10933): Use production task queue implementation.
auto task_queue =
std::make_unique<test::DEPRECATED_SingleThreadedTaskQueueForTesting>(
"TaskQueue");
// Use high prioirity since this task_queue used for fake network delivering
// at correct time. Those test tasks should be prefered over code under test
// to make test more stable.
auto task_queue = task_queue_factory->CreateTaskQueue(
"TaskQueue", TaskQueueFactory::Priority::HIGH);
Call::Config config(&event_log);
config.task_queue_factory = task_queue_factory.get();
std::unique_ptr<Call> sender_call;
Expand Down

0 comments on commit 0197887

Please sign in to comment.