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

Unified Diff: ipc/ipc_multiprocess_test.h

Issue 10387218: Make GlobalDescriptors::MaybeGet return -1 when the key is not found. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing NaCl tests. Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_fuzzing_tests.cc ('k') | ipc/ipc_multiprocess_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_multiprocess_test.h
diff --git a/ipc/ipc_multiprocess_test.h b/ipc/ipc_multiprocess_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..5364eeb796b61806c36309343d5ba9188ab45d06
--- /dev/null
+++ b/ipc/ipc_multiprocess_test.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IPC_IPC_MULTIPROCESS_TEST_H_
+#define IPC_IPC_MULTIPROCESS_TEST_H_
+#pragma once
+
+#include "base/test/multiprocess_test.h"
+
+// Use this macro when your sub-process is using an IPCChannel to communicate
+// with the test process.
+// See comment below for MultiProcessTestIPCSetUp() on why this is needed.
+#define MULTIPROCESS_IPC_TEST_MAIN(test_main) \
+ MULTIPROCESS_TEST_MAIN_WITH_SETUP(test_main, MultiProcessTestIPCSetUp)
+
+// Setup function used by MULTIPROCESS_IPC_TEST_MAIN.
+// Registers the IPC channel as a global descriptor in the child process. This
+// is needed on POSIX as the IPCChannel when created looks for a specific global
+// descriptor to establish the connection to the parent process.
+void MultiProcessTestIPCSetUp();
+
+#endif // IPC_IPC_MULTIPROCESS_TEST_H_
« no previous file with comments | « ipc/ipc_fuzzing_tests.cc ('k') | ipc/ipc_multiprocess_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698