#include "services/device/serial/serial_port_impl.h"
#include "base/test/bind.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/system/simple_watcher.h"
#include "services/device/device_service_test_base.h"
#include "services/device/public/mojom/serial.mojom.h"
#include "services/device/serial/serial_io_handler.h"
namespace device {
namespace {
class FakeSerialIoHandler : public SerialIoHandler { … };
}
class SerialPortImplTest : public DeviceServiceTestBase { … };
TEST_F(SerialPortImplTest, WatcherClosedWhenPortClosed) { … }
TEST_F(SerialPortImplTest, PortClosedWhenWatcherClosed) { … }
TEST_F(SerialPortImplTest, FlushRead) { … }
TEST_F(SerialPortImplTest, OpenFailure) { … }
TEST_F(SerialPortImplTest, GetControlSignalsFailure) { … }
TEST_F(SerialPortImplTest, SetControlSignalsFailure) { … }
TEST_F(SerialPortImplTest, FlushWrite) { … }
TEST_F(SerialPortImplTest, Drain) { … }
TEST_F(SerialPortImplTest, Close) { … }
}