| 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/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/pickle.h" | 8 #include "base/pickle.h" |
| 9 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
| 10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 SendQuitMessageAndWaitForIdle(); | 421 SendQuitMessageAndWaitForIdle(); |
| 422 EXPECT_TRUE(DidListenerGetBadMessage()); | 422 EXPECT_TRUE(DidListenerGetBadMessage()); |
| 423 } | 423 } |
| 424 #endif | 424 #endif |
| 425 | 425 |
| 426 #endif | 426 #endif |
| 427 | 427 |
| 428 MULTIPROCESS_IPC_TEST_CLIENT_MAIN(ChannelProxyClient) { | 428 MULTIPROCESS_IPC_TEST_CLIENT_MAIN(ChannelProxyClient) { |
| 429 base::MessageLoopForIO main_message_loop; | 429 base::MessageLoopForIO main_message_loop; |
| 430 ChannelReflectorListener listener; | 430 ChannelReflectorListener listener; |
| 431 IPC::Channel channel(IPCTestBase::GetChannelName("ChannelProxyClient"), | 431 scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
| 432 IPC::Channel::MODE_CLIENT, | 432 IPCTestBase::GetChannelName("ChannelProxyClient"), |
| 433 &listener); | 433 &listener)); |
| 434 CHECK(channel.Connect()); | 434 CHECK(channel->Connect()); |
| 435 listener.Init(&channel); | 435 listener.Init(channel.get()); |
| 436 | 436 |
| 437 base::MessageLoop::current()->Run(); | 437 base::MessageLoop::current()->Run(); |
| 438 return 0; | 438 return 0; |
| 439 } | 439 } |
| 440 | 440 |
| 441 } // namespace | 441 } // namespace |
| OLD | NEW |