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

Side by Side Diff: mojo/edk/system/message_in_transit_test_utils.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « mojo/edk/system/message_in_transit_queue.h ('k') | mojo/edk/system/message_pipe_dispatcher.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 "mojo/edk/system/message_in_transit_test_utils.h" 5 #include "mojo/edk/system/message_in_transit_test_utils.h"
6 6
7 #include <stdint.h>
8
7 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
8 10
9 namespace mojo { 11 namespace mojo {
10 namespace edk { 12 namespace edk {
11 namespace test { 13 namespace test {
12 14
13 scoped_ptr<MessageInTransit> MakeTestMessage(unsigned id) { 15 scoped_ptr<MessageInTransit> MakeTestMessage(unsigned id) {
14 return make_scoped_ptr( 16 return make_scoped_ptr(
15 new MessageInTransit(MessageInTransit::Type::MESSAGE, 17 new MessageInTransit(MessageInTransit::Type::MESSAGE,
16 static_cast<uint32_t>(sizeof(id)), &id)); 18 static_cast<uint32_t>(sizeof(id)), &id));
(...skipping 11 matching lines...) Expand all
28 message->num_bytes() != sizeof(*id)) 30 message->num_bytes() != sizeof(*id))
29 return false; 31 return false;
30 32
31 *id = *static_cast<const unsigned*>(message->bytes()); 33 *id = *static_cast<const unsigned*>(message->bytes());
32 return true; 34 return true;
33 } 35 }
34 36
35 } // namespace test 37 } // namespace test
36 } // namespace edk 38 } // namespace edk
37 } // namespace mojo 39 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/message_in_transit_queue.h ('k') | mojo/edk/system/message_pipe_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698