diff options
Diffstat (limited to 'ipc/ipc.gyp')
-rw-r--r-- | ipc/ipc.gyp | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/ipc/ipc.gyp b/ipc/ipc.gyp index 678d166..c56f68a 100644 --- a/ipc/ipc.gyp +++ b/ipc/ipc.gyp @@ -37,6 +37,7 @@ 'test_support_ipc', '../base/base.gyp:base', '../base/base.gyp:base_i18n', + '../base/base.gyp:run_all_unittests', '../base/base.gyp:test_support_base', '../testing/gtest.gyp:gtest', ], @@ -46,6 +47,7 @@ 'sources': [ 'file_descriptor_set_posix_unittest.cc', 'ipc_channel_posix_unittest.cc', + 'ipc_channel_unittest.cc', 'ipc_fuzzing_tests.cc', 'ipc_message_unittest.cc', 'ipc_message_utils_unittest.cc', @@ -53,8 +55,8 @@ 'ipc_sync_channel_unittest.cc', 'ipc_sync_message_unittest.cc', 'ipc_sync_message_unittest.h', - 'ipc_tests.cc', - 'ipc_tests.h', + 'ipc_test_base.cc', + 'ipc_test_base.h', 'sync_socket_unittest.cc', ], 'conditions': [ @@ -80,6 +82,49 @@ ], }, { + 'target_name': 'ipc_perftests', + 'type': '<(gtest_target_type)', + # TODO(viettrungluu): Figure out which dependencies are really needed. + 'dependencies': [ + 'ipc', + 'test_support_ipc', + '../base/base.gyp:base', + '../base/base.gyp:base_i18n', + '../base/base.gyp:test_support_base', + '../base/base.gyp:test_support_perf', + '../testing/gtest.gyp:gtest', + ], + 'include_dirs': [ + '..' + ], + 'sources': [ + 'ipc_perftests.cc', + 'ipc_test_base.cc', + 'ipc_test_base.h', + ], + 'conditions': [ + ['toolkit_uses_gtk == 1', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], + }], + ['OS == "android" and gtest_target_type == "shared_library"', { + 'dependencies': [ + '../testing/android/native_test.gyp:native_test_native_code', + ], + }], + ['os_posix == 1 and OS != "mac" and OS != "android"', { + 'conditions': [ + ['linux_use_tcmalloc==1', { + 'dependencies': [ + '../base/allocator/allocator.gyp:allocator', + ], + }], + ], + }] + ], + }, + { 'target_name': 'test_support_ipc', 'type': 'static_library', 'dependencies': [ |