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 #ifndef DEVICE_SERIAL_TEST_SERIAL_IO_HANDLER_H_ | 5 #ifndef DEVICE_SERIAL_TEST_SERIAL_IO_HANDLER_H_ |
6 #define DEVICE_SERIAL_TEST_SERIAL_IO_HANDLER_H_ | 6 #define DEVICE_SERIAL_TEST_SERIAL_IO_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
11 #include "device/serial/serial.mojom.h" | 12 #include "device/serial/serial.mojom.h" |
12 #include "device/serial/serial_io_handler.h" | 13 #include "device/serial/serial_io_handler.h" |
13 | 14 |
14 namespace device { | 15 namespace device { |
15 | 16 |
16 class TestSerialIoHandler : public SerialIoHandler { | 17 class TestSerialIoHandler : public SerialIoHandler { |
17 public: | 18 public: |
18 TestSerialIoHandler(); | 19 TestSerialIoHandler(); |
19 | 20 |
20 static scoped_refptr<SerialIoHandler> Create(); | 21 static scoped_refptr<SerialIoHandler> Create(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 mutable int flushes_; | 61 mutable int flushes_; |
61 std::string buffer_; | 62 std::string buffer_; |
62 base::Closure send_callback_; | 63 base::Closure send_callback_; |
63 | 64 |
64 DISALLOW_COPY_AND_ASSIGN(TestSerialIoHandler); | 65 DISALLOW_COPY_AND_ASSIGN(TestSerialIoHandler); |
65 }; | 66 }; |
66 | 67 |
67 } // namespace device | 68 } // namespace device |
68 | 69 |
69 #endif // DEVICE_SERIAL_TEST_SERIAL_IO_HANDLER_H_ | 70 #endif // DEVICE_SERIAL_TEST_SERIAL_IO_HANDLER_H_ |
OLD | NEW |