#include "device/bluetooth/server_socket.h"
#include <memory>
#include <optional>
#include <tuple>
#include <vector>
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "device/bluetooth/bluetooth_socket.h"
#include "device/bluetooth/socket.h"
#include "device/bluetooth/test/fake_bluetooth_socket.h"
#include "device/bluetooth/test/mock_bluetooth_adapter.h"
#include "device/bluetooth/test/mock_bluetooth_device.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/base/io_buffer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace bluetooth {
class ServerSocketTest : public testing::Test { … };
TEST_F(ServerSocketTest, TestOnDestroyCallsClose) { … }
TEST_F(ServerSocketTest, TestAccept_Success) { … }
TEST_F(ServerSocketTest, TestAccept_Error) { … }
TEST_F(ServerSocketTest, TestDisconnect) { … }
}