#include "base/task/thread_pool/test_task_factory.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace internal {
namespace test {
TestTaskFactory::TestTaskFactory(scoped_refptr<TaskRunner> task_runner,
TaskSourceExecutionMode execution_mode)
: … { … }
TestTaskFactory::~TestTaskFactory() { … }
bool TestTaskFactory::PostTask(PostNestedTask post_nested_task,
OnceClosure after_task_closure) { … }
void TestTaskFactory::WaitForAllTasksToRun() const { … }
void TestTaskFactory::RunTaskCallback(size_t task_index,
PostNestedTask post_nested_task,
OnceClosure after_task_closure) { … }
}
}
}