From 39703fb7cbda4ac831258c70e7fac6517125febc Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Tue, 19 Oct 2010 19:11:15 +0000 Subject: ipc_channel: warn if someone forgets to check the result of Connect() I found a test that was doing this. Review URL: http://codereview.chromium.org/3759004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63083 0039d316-1c4b-4281-b951-d872f2087c98 --- ipc/ipc_fuzzing_tests.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipc/ipc_fuzzing_tests.cc') diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc index 9817ade..8c4dbe3 100644 --- a/ipc/ipc_fuzzing_tests.cc +++ b/ipc/ipc_fuzzing_tests.cc @@ -270,7 +270,7 @@ MULTIPROCESS_TEST_MAIN(RunFuzzServer) { MessageLoopForIO main_message_loop; FuzzerServerListener listener; IPC::Channel chan(kFuzzerChannel, IPC::Channel::MODE_CLIENT, &listener); - chan.Connect(); + CHECK(chan.Connect()); listener.Init(&chan); MessageLoop::current()->Run(); return 0; -- cgit v1.1