Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Side by Side Diff: ipc/ipc_channel_mojo_unittest.cc

Issue 2173323002: Disable IPCChannelMojoTest.SendFailWithPendingMessages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a comment Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ipc_channel_mojo.h" 5 #include "ipc/ipc_channel_mojo.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(IPCChannelMojoErraticTestClient, 258 DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(IPCChannelMojoErraticTestClient,
259 ChannelClient) { 259 ChannelClient) {
260 ListenerThatQuits listener; 260 ListenerThatQuits listener;
261 Connect(&listener); 261 Connect(&listener);
262 262
263 base::RunLoop().Run(); 263 base::RunLoop().Run();
264 264
265 Close(); 265 Close();
266 } 266 }
267 267
268 TEST_F(IPCChannelMojoTest, SendFailWithPendingMessages) { 268 // Disabled because flake. http://crbug.com/630831
269 TEST_F(IPCChannelMojoTest, DISABLED_SendFailWithPendingMessages) {
269 InitWithMojo("IPCChannelMojoErraticTestClient"); 270 InitWithMojo("IPCChannelMojoErraticTestClient");
270 271
271 // Set up IPC channel and start client. 272 // Set up IPC channel and start client.
272 ListenerExpectingErrors listener; 273 ListenerExpectingErrors listener;
273 CreateChannel(&listener); 274 CreateChannel(&listener);
274 ASSERT_TRUE(ConnectChannel()); 275 ASSERT_TRUE(ConnectChannel());
275 276
276 // This matches a value in mojo/edk/system/constants.h 277 // This matches a value in mojo/edk/system/constants.h
277 const int kMaxMessageNumBytes = 4 * 1024 * 1024; 278 const int kMaxMessageNumBytes = 4 * 1024 * 1024;
278 std::string overly_large_data(kMaxMessageNumBytes, '*'); 279 std::string overly_large_data(kMaxMessageNumBytes, '*');
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 Connect(&listener); 1049 Connect(&listener);
1049 1050
1050 base::MessageLoop::current()->Run(); 1051 base::MessageLoop::current()->Run();
1051 1052
1052 Close(); 1053 Close();
1053 } 1054 }
1054 1055
1055 #endif // OS_LINUX 1056 #endif // OS_LINUX
1056 1057
1057 } // namespace 1058 } // namespace
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698