#include "device/bluetooth/socket.h"
#include <optional>
#include <tuple>
#include <vector>
#include "base/containers/span.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/task_environment.h"
#include "device/bluetooth/bluetooth_socket.h"
#include "device/bluetooth/test/fake_bluetooth_socket.h"
#include "mojo/public/cpp/system/simple_watcher.h"
#include "net/base/io_buffer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace bluetooth {
class SocketTest : public testing::Test { … };
TEST_F(SocketTest, TestOnDestroyCallsClose) { … }
TEST_F(SocketTest, TestDisconnect) { … }
TEST_F(SocketTest, TestReceive_Success) { … }
TEST_F(SocketTest, TestReceive_Error) { … }
TEST_F(SocketTest, TestSend_Success) { … }
TEST_F(SocketTest, TestSend_Error) { … }
TEST_F(SocketTest, TestReceiveAndSendMultiple) { … }
}