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.h" | 5 #include "ipc/ipc_message.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
7 #include <string.h> | 9 #include <string.h> |
8 | 10 |
9 #include <limits> | 11 #include <limits> |
10 | 12 |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
13 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "build/build_config.h" |
14 #include "ipc/attachment_broker.h" | 17 #include "ipc/attachment_broker.h" |
15 #include "ipc/ipc_message_utils.h" | 18 #include "ipc/ipc_message_utils.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
17 | 20 |
18 // IPC messages for testing ---------------------------------------------------- | 21 // IPC messages for testing ---------------------------------------------------- |
19 | 22 |
20 #define IPC_MESSAGE_IMPL | 23 #define IPC_MESSAGE_IMPL |
21 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
22 | 25 |
23 #define IPC_MESSAGE_START TestMsgStart | 26 #define IPC_MESSAGE_START TestMsgStart |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 /* TODO: handle sync IPCs | 283 /* TODO: handle sync IPCs |
281 TEST_F(IPCMessageParameterTest, Sync) { | 284 TEST_F(IPCMessageParameterTest, Sync) { |
282 std::string output; | 285 std::string output; |
283 TestMsgClassIS message(42, &output); | 286 TestMsgClassIS message(42, &output); |
284 EXPECT_TRUE(OnMessageReceived(message)); | 287 EXPECT_TRUE(OnMessageReceived(message)); |
285 EXPECT_TRUE(called_); | 288 EXPECT_TRUE(called_); |
286 EXPECT_EQ(output, std::string("out")); | 289 EXPECT_EQ(output, std::string("out")); |
287 }*/ | 290 }*/ |
288 | 291 |
289 } // namespace IPC | 292 } // namespace IPC |
OLD | NEW |