| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include "base/pickle.h" | 7 #include "base/pickle.h" |
| 8 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
| 9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
| 10 #include "ipc/ipc_test_base.h" | 10 #include "ipc/ipc_test_base.h" |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 EXPECT_TRUE(DidListenerGetBadMessage()); | 416 EXPECT_TRUE(DidListenerGetBadMessage()); |
| 417 } | 417 } |
| 418 #endif | 418 #endif |
| 419 | 419 |
| 420 #endif | 420 #endif |
| 421 | 421 |
| 422 MULTIPROCESS_IPC_TEST_CLIENT_MAIN(ChannelProxyClient) { | 422 MULTIPROCESS_IPC_TEST_CLIENT_MAIN(ChannelProxyClient) { |
| 423 base::MessageLoopForIO main_message_loop; | 423 base::MessageLoopForIO main_message_loop; |
| 424 ChannelReflectorListener listener; | 424 ChannelReflectorListener listener; |
| 425 scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( | 425 scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
| 426 IPCTestBase::GetChannelName("ChannelProxyClient"), | 426 IPCTestBase::GetChannelName("ChannelProxyClient"), &listener, nullptr)); |
| 427 &listener)); | |
| 428 CHECK(channel->Connect()); | 427 CHECK(channel->Connect()); |
| 429 listener.Init(channel.get()); | 428 listener.Init(channel.get()); |
| 430 | 429 |
| 431 base::MessageLoop::current()->Run(); | 430 base::MessageLoop::current()->Run(); |
| 432 return 0; | 431 return 0; |
| 433 } | 432 } |
| 434 | 433 |
| 435 } // namespace | 434 } // namespace |
| OLD | NEW |