summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_fuzzing_tests.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 19:11:15 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 19:11:15 +0000
commit39703fb7cbda4ac831258c70e7fac6517125febc (patch)
tree8460f0622922154910721c7d2a698a0ea52106e5 /ipc/ipc_fuzzing_tests.cc
parent63dc378eac88be2da11255b61d7af140bb89ba55 (diff)
downloadchromium_src-39703fb7cbda4ac831258c70e7fac6517125febc.zip
chromium_src-39703fb7cbda4ac831258c70e7fac6517125febc.tar.gz
chromium_src-39703fb7cbda4ac831258c70e7fac6517125febc.tar.bz2
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
Diffstat (limited to 'ipc/ipc_fuzzing_tests.cc')
-rw-r--r--ipc/ipc_fuzzing_tests.cc2
1 files changed, 1 insertions, 1 deletions
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;