Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: tools/battor_agent/battor_connection_unittest.cc

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/battor_agent/battor_connection.h ('k') | tools/battor_agent/battor_protocol_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/battor_agent/battor_connection.h ('k') | tools/battor_agent/battor_protocol_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698