#include "chrome/browser/sync_file_system/drive_backend/callback_helper.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace sync_file_system {
namespace drive_backend {
namespace {
void SimpleCallback(bool* called, int) { … }
void CallbackWithPassed(bool* called, std::unique_ptr<int>) { … }
void VerifyCalledOnTaskRunner(base::SingleThreadTaskRunner* task_runner,
bool* called) { … }
}
TEST(DriveBackendCallbackHelperTest, BasicTest) { … }
TEST(DriveBackendCallbackHelperTest, RunOnOtherThreadTest) { … }
TEST(DriveBackendCallbackHelperTest, PassNullFunctionTest) { … }
}
}