OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "device/serial/test_serial_io_handler.h" | 5 #include "device/serial/test_serial_io_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "device/serial/serial.mojom.h" | 10 #include "device/serial/serial.mojom.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 bool TestSerialIoHandler::SetControlSignals( | 95 bool TestSerialIoHandler::SetControlSignals( |
96 const serial::HostControlSignals& signals) { | 96 const serial::HostControlSignals& signals) { |
97 if (signals.has_dtr) | 97 if (signals.has_dtr) |
98 dtr_ = signals.dtr; | 98 dtr_ = signals.dtr; |
99 if (signals.has_rts) | 99 if (signals.has_rts) |
100 rts_ = signals.rts; | 100 rts_ = signals.rts; |
101 return true; | 101 return true; |
102 } | 102 } |
103 | 103 |
| 104 bool TestSerialIoHandler::SetBreak() { |
| 105 return true; |
| 106 } |
| 107 |
| 108 bool TestSerialIoHandler::ClearBreak() { |
| 109 return true; |
| 110 } |
| 111 |
104 TestSerialIoHandler::~TestSerialIoHandler() { | 112 TestSerialIoHandler::~TestSerialIoHandler() { |
105 } | 113 } |
106 | 114 |
107 } // namespace device | 115 } // namespace device |
OLD | NEW |