OLD | NEW |
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 Loading... |
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 |
OLD | NEW |