#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "base/synchronization/waitable_event.h"
#include <stddef.h>
#include <algorithm>
#include "base/compiler_specific.h"
#include "base/memory/raw_ptr.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
TEST(WaitableEventTest, ManualBasics) { … }
TEST(WaitableEventTest, ManualInitiallySignaled) { … }
TEST(WaitableEventTest, AutoBasics) { … }
TEST(WaitableEventTest, AutoInitiallySignaled) { … }
TEST(WaitableEventTest, WaitManyShortcut) { … }
TEST(WaitableEventTest, WaitManyLeftToRight) { … }
class WaitableEventSignaler : public PlatformThread::Delegate { … };
TEST(WaitableEventTest, WaitAndDelete) { … }
TEST(WaitableEventTest, WaitMany) { … }
TEST(WaitableEventTest, TimedWait) { … }
TEST(WaitableEventTest, SubMsTimedWait) { … }
TEST(WaitableEventTest, ZeroTimeout) { … }
TEST(WaitableEventTest, NegativeTimeout) { … }
}