#include "mojo/public/cpp/system/scope_to_message_pipe.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/system/message_pipe.h"
#include "mojo/public/cpp/system/simple_watcher.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
namespace {
class RunCallbackOnDestruction { … };
class ScopeToMessagePipeTest : public testing::Test { … };
TEST_F(ScopeToMessagePipeTest, ObjectDestroyedOnPeerClosure) { … }
TEST_F(ScopeToMessagePipeTest, PipeClosedOnPeerClosure) { … }
}
}