| 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/message_loop.h" |
| 10 #include "base/threading/platform_thread.h" | 10 #include "base/threading/platform_thread.h" |
| 11 #include "ipc/ipc_test_base.h" | 11 #include "ipc/ipc_test_base.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 // IPC messages for testing ---------------------------------------------------- | 14 // IPC messages for testing ---------------------------------------------------- |
| 15 | 15 |
| 16 #define IPC_MESSAGE_IMPL | 16 #define IPC_MESSAGE_IMPL |
| 17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
| 18 | 18 |
| 19 #define IPC_MESSAGE_START TestMsgStart | 19 #define IPC_MESSAGE_START TestMsgStart |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 msg->WriteInt(0x64); | 404 msg->WriteInt(0x64); |
| 405 msg->WriteInt(0x32); | 405 msg->WriteInt(0x32); |
| 406 EXPECT_FALSE(server.OnMessageReceived(*msg)); | 406 EXPECT_FALSE(server.OnMessageReceived(*msg)); |
| 407 delete msg; | 407 delete msg; |
| 408 | 408 |
| 409 EXPECT_EQ(0, server.unhandled_msgs()); | 409 EXPECT_EQ(0, server.unhandled_msgs()); |
| 410 #endif | 410 #endif |
| 411 } | 411 } |
| 412 | 412 |
| 413 } // namespace | 413 } // namespace |
| OLD | NEW |