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 <stdint.h> | 5 #include <stdint.h> |
6 #include <stdio.h> | 6 #include <stdio.h> |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <sstream> | 9 #include <sstream> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 16 #include "build/build_config.h" |
16 #include "ipc/ipc_test_base.h" | 17 #include "ipc/ipc_test_base.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
19 // IPC messages for testing ---------------------------------------------------- | 20 // IPC messages for testing ---------------------------------------------------- |
20 | 21 |
21 #define IPC_MESSAGE_IMPL | 22 #define IPC_MESSAGE_IMPL |
22 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
23 | 24 |
24 #define IPC_MESSAGE_START TestMsgStart | 25 #define IPC_MESSAGE_START TestMsgStart |
25 | 26 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 // thrown out of sync by the extra argument. | 365 // thrown out of sync by the extra argument. |
365 msg = new MsgClassIS(3, base::ASCIIToUTF16("expect three")); | 366 msg = new MsgClassIS(3, base::ASCIIToUTF16("expect three")); |
366 sender()->Send(msg); | 367 sender()->Send(msg); |
367 EXPECT_TRUE(listener.ExpectMessage(3, MsgClassIS::ID)); | 368 EXPECT_TRUE(listener.ExpectMessage(3, MsgClassIS::ID)); |
368 | 369 |
369 EXPECT_TRUE(WaitForClientShutdown()); | 370 EXPECT_TRUE(WaitForClientShutdown()); |
370 DestroyChannel(); | 371 DestroyChannel(); |
371 } | 372 } |
372 | 373 |
373 } // namespace | 374 } // namespace |
OLD | NEW |