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

Unified Diff: sandbox/linux/sandbox_linux.gypi

Issue 12093055: Linux sandbox: Make the test run on Android as Native executable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename unit tests. Created 7 years, 11 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 | « build/android/pylib/gtest/gtest_config.py ('k') | sandbox/linux/sandbox_linux_test_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/sandbox_linux.gypi
diff --git a/sandbox/linux/sandbox_linux.gypi b/sandbox/linux/sandbox_linux.gypi
index a223febc52da6a0e73ec8331fcf9bbc8ded4e318..ae7769ff766ef128445103d2b79c43cf3f9f960d 100644
--- a/sandbox/linux/sandbox_linux.gypi
+++ b/sandbox/linux/sandbox_linux.gypi
@@ -65,41 +65,26 @@
],
},
{
+ # The main sandboxing test target.
'target_name': 'sandbox_linux_unittests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- 'sandbox',
- '../testing/gtest.gyp:gtest',
- ],
- 'sources': [
- 'tests/main.cc',
- 'tests/unit_tests.cc',
- 'tests/unit_tests.h',
- 'services/broker_process_unittest.cc',
+ 'includes': [
+ 'sandbox_linux_test_sources.gypi',
],
- 'include_dirs': [
- '../..',
+ 'type': 'executable',
+ },
+ {
+ # This target is the shared library used by Android APK (i.e.
+ # JNI-friendly) tests.
+ 'target_name': 'sandbox_linux_jni_unittests',
+ 'includes': [
+ 'sandbox_linux_test_sources.gypi',
],
+ 'type': 'shared_library',
'conditions': [
- [ 'compile_suid_client==1', {
- 'sources': [
- 'suid/client/setuid_sandbox_client_unittest.cc',
- ],
- }],
- [ 'compile_seccomp_bpf==1', {
- 'sources': [
- 'seccomp-bpf/bpf_tests.h',
- 'seccomp-bpf/codegen_unittest.cc',
- 'seccomp-bpf/errorcode_unittest.cc',
- 'seccomp-bpf/sandbox_bpf_unittest.cc',
- 'seccomp-bpf/syscall_iterator_unittest.cc',
- 'seccomp-bpf/syscall_unittest.cc',
- ],
- }],
- ['OS == "android" and gtest_target_type == "shared_library"', {
+ [ 'OS == "android" and gtest_target_type == "shared_library"', {
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
- ]
+ ],
}],
],
},
@@ -216,24 +201,24 @@
'..',
],
},
-
],
'conditions': [
# Strategy copied from base_unittests_apk in base/base.gyp.
[ 'OS=="android" and gtest_target_type == "shared_library"', {
'targets': [
{
- 'target_name': 'sandbox_linux_unittests_apk',
+ 'target_name': 'sandbox_linux_jni_unittests_apk',
'type': 'none',
- 'dependencies': [
- 'sandbox_linux_unittests',
- ],
'variables': {
- 'test_suite_name': 'sandbox_linux_unittests',
+ 'test_suite_name': 'sandbox_linux_jni_unittests',
'input_shlib_path':
- '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sandbox_linux_unittests'
+ '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)'
+ 'sandbox_linux_jni_unittests'
'<(SHARED_LIB_SUFFIX)',
},
+ 'dependencies': [
+ 'sandbox_linux_jni_unittests',
+ ],
'includes': [ '../../build/apk_test.gypi' ],
}
],
« no previous file with comments | « build/android/pylib/gtest/gtest_config.py ('k') | sandbox/linux/sandbox_linux_test_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698