#include "base/barrier_callback.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/test/bind.h"
#include "base/test/gtest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
TEST(BarrierCallbackTest, RunsImmediatelyForZeroCallbacks) { … }
TEST(BarrierCallbackTest, ErrorToCallCallbackWithZeroCallbacks) { … }
TEST(BarrierCallbackTest, RunAfterNumCallbacks) { … }
TEST(BarrierCallbackTest, CopiesShareState) { … }
template <typename... Args>
class DestructionIndicator { … };
TEST(BarrierCallbackTest, ReleasesDoneCallbackWhenDone) { … }
TEST(BarrierCallbackTest, KeepingCallbackAliveUntilDone) { … }
TEST(BarrierCallbackTest, SupportsMoveonlyTypes) { … }
TEST(BarrierCallbackTest, SupportsConstRefResults) { … }
TEST(BarrierCallbackTest, SupportsReferenceTypes) { … }
}