#include "mojo/public/cpp/system/wait.h"
#include <string>
#include <string_view>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/threading/platform_thread.h"
#include "base/threading/simple_thread.h"
#include "base/time/time.h"
#include "mojo/public/c/system/types.h"
#include "mojo/public/cpp/system/handle_signals_state.h"
#include "mojo/public/cpp/system/message_pipe.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
namespace {
WaitTest;
WaitManyTest;
void WriteMessage(const ScopedMessagePipeHandle& handle,
const std::string_view& message) { … }
std::string ReadMessage(const ScopedMessagePipeHandle& handle) { … }
class ThreadedRunner : public base::SimpleThread { … };
TEST_F(WaitTest, InvalidArguments) { … }
TEST_F(WaitTest, Basic) { … }
TEST_F(WaitTest, DelayedWrite) { … }
TEST_F(WaitTest, DelayedPeerClosure) { … }
TEST_F(WaitTest, CloseWhileWaiting) { … }
TEST_F(WaitManyTest, Basic) { … }
TEST_F(WaitManyTest, CloseWhileWaiting) { … }
TEST_F(WaitManyTest, DelayedWrite) { … }
TEST_F(WaitManyTest, DelayedPeerClosure) { … }
}
}