summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_send_fds_test.cc
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-11 15:13:37 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-11 15:13:37 +0000
commit0cb7d8c8ce8a7261743dbe613ad93495457dd174 (patch)
tree1b7fe8dc10f5b0c06c40466d2c7ecfe7466352a8 /ipc/ipc_send_fds_test.cc
parenta3c07c2082a2347b5c74d8b0c0bb9240812d331e (diff)
downloadchromium_src-0cb7d8c8ce8a7261743dbe613ad93495457dd174.zip
chromium_src-0cb7d8c8ce8a7261743dbe613ad93495457dd174.tar.gz
chromium_src-0cb7d8c8ce8a7261743dbe613ad93495457dd174.tar.bz2
Make ipc_tests file structure a little saner and add an ipc_perftests target.
This means that the (one, semi-manual) IPC perf test that we have will build without manual hackery (and do so separately from the ipc_tests target). Review URL: https://chromiumcodereview.appspot.com/11819041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_send_fds_test.cc')
-rw-r--r--ipc/ipc_send_fds_test.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/ipc/ipc_send_fds_test.cc b/ipc/ipc_send_fds_test.cc
index 6679088..06a4660 100644
--- a/ipc/ipc_send_fds_test.cc
+++ b/ipc/ipc_send_fds_test.cc
@@ -4,8 +4,6 @@
#include "build/build_config.h"
-#include "ipc/ipc_tests.h"
-
#if defined(OS_MACOSX)
extern "C" {
#include <sandbox.h>
@@ -20,6 +18,7 @@ extern "C" {
#include "ipc/ipc_listener.h"
#include "ipc/ipc_message_utils.h"
#include "ipc/ipc_multiprocess_test.h"
+#include "ipc/ipc_test_base.h"
#include "testing/multiprocess_func_list.h"
#if defined(OS_POSIX)
@@ -132,7 +131,9 @@ int TestDescriptorClient(ino_t expected_inode_num) {
} // namespace
-// ---------------------------------------------------------------------------
+class IPCSendFdsTest : public IPCTestBase {
+};
+
#if defined(OS_MACOSX)
// TODO(port): Make this test cross-platform.
MULTIPROCESS_IPC_TEST_MAIN(RunTestDescriptorClientSandboxed) {
@@ -165,7 +166,7 @@ MULTIPROCESS_IPC_TEST_MAIN(RunTestDescriptorClientSandboxed) {
}
// Test that FDs are correctly sent to a sandboxed process.
-TEST_F(IPCChannelTest, DescriptorTestSandboxed) {
+TEST_F(IPCSendFdsTest, DescriptorTestSandboxed) {
// Setup IPC channel.
MyChannelDescriptorListener listener(-1);
@@ -189,7 +190,7 @@ MULTIPROCESS_IPC_TEST_MAIN(RunTestDescriptorClient) {
return TestDescriptorClient(st.st_ino);
}
-TEST_F(IPCChannelTest, DescriptorTest) {
+TEST_F(IPCSendFdsTest, DescriptorTest) {
// Setup IPC channel.
MyChannelDescriptorListener listener(-1);