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 <stdio.h> | 5 #include <stdio.h> |
6 #include <string> | 6 #include <string> |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
11 #include "base/threading/platform_thread.h" | 11 #include "base/threading/platform_thread.h" |
12 #include "ipc/ipc_channel.h" | 12 #include "ipc/ipc_channel.h" |
13 #include "ipc/ipc_channel_proxy.h" | 13 #include "ipc/ipc_channel_proxy.h" |
14 #include "ipc/ipc_multiprocess_test.h" | 14 #include "ipc/ipc_multiprocess_test.h" |
15 #include "ipc/ipc_test_base.h" | 15 #include "ipc/ipc_test_base.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "testing/multiprocess_func_list.h" | |
18 | 17 |
19 // IPC messages for testing ---------------------------------------------------- | 18 // IPC messages for testing ---------------------------------------------------- |
20 | 19 |
21 #define IPC_MESSAGE_IMPL | 20 #define IPC_MESSAGE_IMPL |
22 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
23 | 22 |
24 #define IPC_MESSAGE_START TestMsgStart | 23 #define IPC_MESSAGE_START TestMsgStart |
25 | 24 |
26 // Generic message class that is an int followed by a wstring. | 25 // Generic message class that is an int followed by a wstring. |
27 IPC_MESSAGE_CONTROL2(MsgClassIS, int, std::wstring) | 26 IPC_MESSAGE_CONTROL2(MsgClassIS, int, std::wstring) |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 msg->WriteInt(0x64); | 414 msg->WriteInt(0x64); |
416 msg->WriteInt(0x32); | 415 msg->WriteInt(0x32); |
417 EXPECT_FALSE(server.OnMessageReceived(*msg)); | 416 EXPECT_FALSE(server.OnMessageReceived(*msg)); |
418 delete msg; | 417 delete msg; |
419 | 418 |
420 EXPECT_EQ(0, server.unhandled_msgs()); | 419 EXPECT_EQ(0, server.unhandled_msgs()); |
421 #endif | 420 #endif |
422 } | 421 } |
423 | 422 |
424 } // namespace | 423 } // namespace |
OLD | NEW |