#include <memory>
#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/waitable_event.h"
#include "mojo/public/cpp/bindings/sync_handle_registry.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
class SyncHandleRegistryTest : public testing::Test { … };
TEST_F(SyncHandleRegistryTest, DuplicateEventRegistration) { … }
TEST_F(SyncHandleRegistryTest, UnregisterDuplicateEventInNestedWait) { … }
TEST_F(SyncHandleRegistryTest, UnregisterAndRegisterForNewEventInCallback) { … }
TEST_F(SyncHandleRegistryTest, UnregisterAndRegisterForSameEventInCallback) { … }
TEST_F(SyncHandleRegistryTest, RegisterDuplicateEventFromWithinCallback) { … }
TEST_F(SyncHandleRegistryTest, UnregisterUniqueEventInNestedWait) { … }
}