#include "quiche/common/quiche_callbacks.h"
#include <memory>
#include <utility>
#include <vector>
#include "quiche/common/platform/api/quiche_test.h"
namespace quiche {
namespace {
void Apply(const std::vector<int>& container,
UnretainedCallback<void(int)> function) { … }
TEST(QuicheCallbacksTest, UnretainedCallback) { … }
TEST(QuicheCallbacksTest, SingleUseCallback) { … }
class SetFlagOnDestruction { … };
TEST(QuicheCallbacksTest, SingleUseCallbackOwnership) { … }
TEST(QuicheCallbacksTest, MultiUseCallback) { … }
TEST(QuicheCallbacksTest, MultiUseCallbackOwnership) { … }
}
}