aboutsummaryrefslogtreecommitdiff
path: root/call/rampup_tests.h
diff options
context:
space:
mode:
authorDanil Chapovalov <danilchap@webrtc.org>2019-09-30 04:16:28 +0200
committerCommit Bot <commit-bot@chromium.org>2019-09-30 03:23:07 +0000
commit44db436e87a899e382ccfa557ec632e3320a14d6 (patch)
treeff834f3e7216476cc2d9b1d5da9aabfca376cdad /call/rampup_tests.h
parent578270d9d23a12e8400bacfc7e28f3536ab74a68 (diff)
downloadwebrtc-44db436e87a899e382ccfa557ec632e3320a14d6.tar.gz
Propagate task queue to create test::DirectTransport by TaskQueueBase interface
actual task queue implementation for these tests is intentionally unchanged for now. while at it, change return type of created transports to unique_ptr to note passing ownership. Bug: webrtc:10933 Change-Id: I324597b503e647c471f43511340eb9c07ba03ee8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/154743 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29335}
Diffstat (limited to 'call/rampup_tests.h')
-rw-r--r--call/rampup_tests.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/call/rampup_tests.h b/call/rampup_tests.h
index 2204927b14..34e174014e 100644
--- a/call/rampup_tests.h
+++ b/call/rampup_tests.h
@@ -12,11 +12,13 @@
#define CALL_RAMPUP_TESTS_H_
#include <map>
+#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "api/rtc_event_log/rtc_event_log.h"
+#include "api/task_queue/task_queue_base.h"
#include "api/test/simulated_network.h"
#include "call/call.h"
#include "call/simulated_network.h"
@@ -87,8 +89,8 @@ class RampUpTester : public test::EndToEndTest {
void OnVideoStreamsCreated(
VideoSendStream* send_stream,
const std::vector<VideoReceiveStream*>& receive_streams) override;
- test::PacketTransport* CreateSendTransport(
- test::DEPRECATED_SingleThreadedTaskQueueForTesting* task_queue,
+ std::unique_ptr<test::PacketTransport> CreateSendTransport(
+ TaskQueueBase* task_queue,
Call* sender_call) override;
void ModifyVideoConfigs(
VideoSendStream::Config* send_config,