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

Side by Side Diff: ipc/ipc_message_utils_unittest.cc

Issue 1546533002: Switch to standard integer types in ipc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « ipc/ipc_message_utils.cc ('k') | ipc/ipc_perftest_support.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ipc/ipc_message_utils.h" 5 #include "ipc/ipc_message_utils.h"
6 6
7 #include <stddef.h>
7 #include <stdint.h> 8 #include <stdint.h>
8 9
9 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
10 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 namespace IPC { 14 namespace IPC {
14 namespace { 15 namespace {
15 16
16 // Tests nesting of messages as parameters to other messages. 17 // Tests nesting of messages as parameters to other messages.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 85
85 base::StackVector<double, stack_capacity> output; 86 base::StackVector<double, stack_capacity> output;
86 base::PickleIterator iter(msg); 87 base::PickleIterator iter(msg);
87 EXPECT_TRUE(IPC::ReadParam(&msg, &iter, &output)); 88 EXPECT_TRUE(IPC::ReadParam(&msg, &iter, &output));
88 for (size_t i = 0; i < 2 * stack_capacity; i++) 89 for (size_t i = 0; i < 2 * stack_capacity; i++)
89 EXPECT_EQ(stack_vector[i], output[i]); 90 EXPECT_EQ(stack_vector[i], output[i]);
90 } 91 }
91 92
92 } // namespace 93 } // namespace
93 } // namespace IPC 94 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_message_utils.cc ('k') | ipc/ipc_perftest_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698