#include "base/task/bind_post_task.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ref.h"
#include "base/sequence_checker_impl.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
void SetBool(bool* variable, bool value) { … }
void SetInt(int* variable, int value) { … }
void SetIntFromUniquePtr(int* variable, std::unique_ptr<int> value) { … }
int Multiply(int value) { … }
void ClearReference(OnceClosure callback) { … }
class SequenceRestrictionChecker { … };
}
class BindPostTaskTest : public testing::Test { … };
TEST_F(BindPostTaskTest, OnceClosure) { … }
TEST_F(BindPostTaskTest, OnceCallback) { … }
TEST_F(BindPostTaskTest, OnceWithBoundMoveOnlyArg) { … }
TEST_F(BindPostTaskTest, OnceWithUnboundMoveOnlyArg) { … }
TEST_F(BindPostTaskTest, OnceWithIgnoreResult) { … }
TEST_F(BindPostTaskTest, OnceThen) { … }
TEST_F(BindPostTaskTest, OnceRunDestroyedOnBound) { … }
TEST_F(BindPostTaskTest, OnceNotRunDestroyedOnBound) { … }
TEST_F(BindPostTaskTest, RepeatingClosure) { … }
TEST_F(BindPostTaskTest, RepeatingCallback) { … }
TEST_F(BindPostTaskTest, RepeatingWithUnboundMoveOnlyArg) { … }
TEST_F(BindPostTaskTest, RepeatingWithIgnoreResult) { … }
TEST_F(BindPostTaskTest, RepeatingThen) { … }
TEST_F(BindPostTaskTest, RepeatingRunDestroyedOnBound) { … }
TEST_F(BindPostTaskTest, RepeatingNotRunDestroyedOnBound) { … }
}