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 "tools/battor_agent/battor_connection.h" | 5 #include "tools/battor_agent/battor_connection.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 #include <string.h> |
| 10 |
7 #include "base/bind.h" | 11 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
9 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
10 #include "device/serial/serial.mojom.h" | 14 #include "device/serial/serial.mojom.h" |
11 #include "device/serial/test_serial_io_handler.h" | 15 #include "device/serial/test_serial_io_handler.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "tools/battor_agent/battor_protocol_types.h" | 17 #include "tools/battor_agent/battor_protocol_types.h" |
14 | 18 |
15 namespace { | 19 namespace { |
16 | 20 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 281 |
278 BattOrControlMessage* msg = | 282 BattOrControlMessage* msg = |
279 reinterpret_cast<BattOrControlMessage*>(GetReadBytes()->data()); | 283 reinterpret_cast<BattOrControlMessage*>(GetReadBytes()->data()); |
280 | 284 |
281 ASSERT_EQ(BATTOR_CONTROL_MESSAGE_TYPE_RESET, msg->type); | 285 ASSERT_EQ(BATTOR_CONTROL_MESSAGE_TYPE_RESET, msg->type); |
282 ASSERT_EQ(4, msg->param1); | 286 ASSERT_EQ(4, msg->param1); |
283 ASSERT_EQ(7, msg->param2); | 287 ASSERT_EQ(7, msg->param2); |
284 } | 288 } |
285 | 289 |
286 } // namespace battor | 290 } // namespace battor |
OLD | NEW |