Replace SingleThreadedTaskQueueForTesting::SendTask usage with ::webrtc::SendTask
Bug: webrtc:10933 Change-Id: I60738434b46e77b4644173ad168bc0efa58459b6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/156001 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29551}
This commit is contained in:
committed by
Commit Bot
parent
712b676e80
commit
82a3f0ad7f
@ -25,7 +25,7 @@
|
||||
namespace webrtc {
|
||||
|
||||
template <typename Closure>
|
||||
void SendTask(TaskQueueBase* task_queue, Closure&& task, rtc::Location loc) {
|
||||
void SendTask(rtc::Location loc, TaskQueueBase* task_queue, Closure&& task) {
|
||||
RTC_CHECK(!task_queue->IsCurrent())
|
||||
<< "Called SendTask to a queue from the same queue at " << loc.ToString();
|
||||
rtc::Event event;
|
||||
@ -64,7 +64,7 @@ class RTC_LOCKABLE TaskQueueForTest : public rtc::TaskQueue {
|
||||
// a task executes on the task queue.
|
||||
template <class Closure>
|
||||
void SendTask(Closure&& task, rtc::Location loc) {
|
||||
::webrtc::SendTask(Get(), std::forward<Closure>(task), loc);
|
||||
::webrtc::SendTask(loc, Get(), std::forward<Closure>(task));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user