| 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 "ipc/mojo/ipc_channel_mojo.h" | 5 #include "ipc/mojo/ipc_channel_mojo.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 558 |
| 559 EXPECT_TRUE(WaitForClientShutdown()); | 559 EXPECT_TRUE(WaitForClientShutdown()); |
| 560 DestroyChannel(); | 560 DestroyChannel(); |
| 561 } | 561 } |
| 562 | 562 |
| 563 DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(ParamTraitInvalidMessagePipeClient, | 563 DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(ParamTraitInvalidMessagePipeClient, |
| 564 ParamTraitMessagePipeClient) { | 564 ParamTraitMessagePipeClient) { |
| 565 RunTest(false); | 565 RunTest(false); |
| 566 } | 566 } |
| 567 | 567 |
| 568 TEST_F(IPCChannelMojoTest, SendFailAfterClose) { | 568 // Times out on Android. crbug.com/593790 |
| 569 #if defined(OS_ANDROID) |
| 570 #define MAYBE_SendFailAfterClose DISABLED_SendFailAfterClose |
| 571 #else |
| 572 #define MAYBE_SendFailAfterClose SendFailAfterClose |
| 573 #endif |
| 574 TEST_F(IPCChannelMojoTest, MAYBE_SendFailAfterClose) { |
| 569 InitWithMojo("IPCChannelMojoTestSendOkClient"); | 575 InitWithMojo("IPCChannelMojoTestSendOkClient"); |
| 570 | 576 |
| 571 ListenerThatExpectsOK listener; | 577 ListenerThatExpectsOK listener; |
| 572 CreateChannel(&listener); | 578 CreateChannel(&listener); |
| 573 ASSERT_TRUE(ConnectChannel()); | 579 ASSERT_TRUE(ConnectChannel()); |
| 574 | 580 |
| 575 base::MessageLoop::current()->Run(); | 581 base::MessageLoop::current()->Run(); |
| 576 channel()->Close(); | 582 channel()->Close(); |
| 577 ASSERT_FALSE(channel()->Send(new IPC::Message())); | 583 ASSERT_FALSE(channel()->Send(new IPC::Message())); |
| 578 | 584 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 Connect(&listener); | 774 Connect(&listener); |
| 769 | 775 |
| 770 base::MessageLoop::current()->Run(); | 776 base::MessageLoop::current()->Run(); |
| 771 | 777 |
| 772 Close(); | 778 Close(); |
| 773 } | 779 } |
| 774 | 780 |
| 775 #endif // OS_LINUX | 781 #endif // OS_LINUX |
| 776 | 782 |
| 777 } // namespace | 783 } // namespace |
| OLD | NEW |