#ifndef BASE_TEST_BIND_H_
#define BASE_TEST_BIND_H_
#include <string_view>
#include <type_traits>
#include <utility>
#include "base/functional/bind.h"
namespace base {
class Location;
namespace internal {
kHasConstCallOperator;
kHasConstCallOperator;
template <typename Lambda,
typename = ExtractCallableRunType<std::decay_t<Lambda>>>
struct BindLambdaForTestingHelper;
BindLambdaForTestingHelper<Lambda, R (Args...)>;
}
template <typename Lambda>
auto BindLambdaForTesting(Lambda&& lambda) { … }
OnceClosure MakeExpectedRunClosure(
const Location& location,
std::string_view message = std::string_view());
RepeatingClosure MakeExpectedRunAtLeastOnceClosure(
const Location& location,
std::string_view message = std::string_view());
RepeatingClosure MakeExpectedNotRunClosure(
const Location& location,
std::string_view message = std::string_view());
}
#endif