Home | History | Annotate | Download | only in test
      1 // Copyright 2018 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "base/task/sequence_manager/test/test_task_queue.h"
      6 
      7 #include "base/task/sequence_manager/task_queue_impl.h"
      8 
      9 namespace base {
     10 namespace sequence_manager {
     11 
     12 TestTaskQueue::TestTaskQueue(std::unique_ptr<internal::TaskQueueImpl> impl,
     13                              const TaskQueue::Spec& spec)
     14     : TaskQueue(std::move(impl), spec), weak_factory_(this) {}
     15 
     16 TestTaskQueue::~TestTaskQueue() = default;
     17 
     18 WeakPtr<TestTaskQueue> TestTaskQueue::GetWeakPtr() {
     19   return weak_factory_.GetWeakPtr();
     20 }
     21 
     22 }  // namespace sequence_manager
     23 }  // namespace base
     24