OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Unit test for SyncChannel. | 5 // Unit test for SyncChannel. |
6 | 6 |
7 #include "ipc/ipc_sync_channel.h" | 7 #include "ipc/ipc_sync_channel.h" |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 SendWithTimeoutOK(true); | 990 SendWithTimeoutOK(true); |
991 } | 991 } |
992 | 992 |
993 // Tests that SendWithTimeout does time-out. | 993 // Tests that SendWithTimeout does time-out. |
994 TEST_F(IPCSyncChannelTest, SendWithTimeoutTimeout) { | 994 TEST_F(IPCSyncChannelTest, SendWithTimeoutTimeout) { |
995 SendWithTimeoutTimeout(false); | 995 SendWithTimeoutTimeout(false); |
996 SendWithTimeoutTimeout(true); | 996 SendWithTimeoutTimeout(true); |
997 } | 997 } |
998 | 998 |
999 // Sends some message that time-out and some that succeed. | 999 // Sends some message that time-out and some that succeed. |
1000 TEST_F(IPCSyncChannelTest, SendWithTimeoutMixedOKAndTimeout) { | 1000 // Crashes flakily, http://crbug.com/70075. |
| 1001 TEST_F(IPCSyncChannelTest, DISABLED_SendWithTimeoutMixedOKAndTimeout) { |
1001 SendWithTimeoutMixedOKAndTimeout(false); | 1002 SendWithTimeoutMixedOKAndTimeout(false); |
1002 SendWithTimeoutMixedOKAndTimeout(true); | 1003 SendWithTimeoutMixedOKAndTimeout(true); |
1003 } | 1004 } |
1004 | 1005 |
1005 //------------------------------------------------------------------------------ | 1006 //------------------------------------------------------------------------------ |
1006 | 1007 |
1007 namespace { | 1008 namespace { |
1008 | 1009 |
1009 class NestedTask : public Task { | 1010 class NestedTask : public Task { |
1010 public: | 1011 public: |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 server.done_event()->Wait(); | 1158 server.done_event()->Wait(); |
1158 server.done_event()->Reset(); | 1159 server.done_event()->Reset(); |
1159 | 1160 |
1160 server.SendDummy(); | 1161 server.SendDummy(); |
1161 server.done_event()->Wait(); | 1162 server.done_event()->Wait(); |
1162 | 1163 |
1163 EXPECT_FALSE(server.send_result()); | 1164 EXPECT_FALSE(server.send_result()); |
1164 } | 1165 } |
1165 | 1166 |
1166 | 1167 |
OLD | NEW |