| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/macros.h" |
| 5 #include "device/serial/serial_io_handler_posix.h" | 6 #include "device/serial/serial_io_handler_posix.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 8 |
| 8 namespace device { | 9 namespace device { |
| 9 | 10 |
| 10 class SerialIoHandlerPosixTest : public testing::Test { | 11 class SerialIoHandlerPosixTest : public testing::Test { |
| 11 public: | 12 public: |
| 12 SerialIoHandlerPosixTest() {} | 13 SerialIoHandlerPosixTest() {} |
| 13 | 14 |
| 14 void SetUp() override { | 15 void SetUp() override { |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 "\377\0", 2, "\377", 1, false, false); | 1012 "\377\0", 2, "\377", 1, false, false); |
| 1012 | 1013 |
| 1013 char buffer_3[30] = {'a', 'd', 'e'}; | 1014 char buffer_3[30] = {'a', 'd', 'e'}; |
| 1014 bytes_read = 3; | 1015 bytes_read = 3; |
| 1015 TestHelper(buffer_3, buffer_len, bytes_read, ErrorDetectState::NO_ERROR, "", | 1016 TestHelper(buffer_3, buffer_len, bytes_read, ErrorDetectState::NO_ERROR, "", |
| 1016 0, "de", 2, false, true); | 1017 0, "de", 2, false, true); |
| 1017 } | 1018 } |
| 1018 } | 1019 } |
| 1019 | 1020 |
| 1020 } // namespace device | 1021 } // namespace device |
| OLD | NEW |