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

Side by Side Diff: sandbox/linux/sandbox_linux.gypi

Issue 10878033: Simplified unit testing of sandboxing code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'targets': [ 6 'targets': [
7 # We have two principal targets: sandbox and sandbox_linux_unittests 7 # We have two principal targets: sandbox and sandbox_linux_unittests
8 # All other targets are listed as dependencies. 8 # All other targets are listed as dependencies.
9 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox 9 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox
10 # and is its own target. 10 # and is its own target.
(...skipping 23 matching lines...) Expand all
34 ], 34 ],
35 }, 35 },
36 { 36 {
37 'target_name': 'sandbox_linux_unittests', 37 'target_name': 'sandbox_linux_unittests',
38 'type': 'executable', 38 'type': 'executable',
39 'dependencies': [ 39 'dependencies': [
40 'sandbox', 40 'sandbox',
41 '../testing/gtest.gyp:gtest', 41 '../testing/gtest.gyp:gtest',
42 ], 42 ],
43 'sources': [ 43 'sources': [
44 'tests/main.cc',
44 'tests/unit_tests.cc', 45 'tests/unit_tests.cc',
46 'tests/unit_tests.h',
45 'suid/client/setuid_sandbox_client_unittest.cc', 47 'suid/client/setuid_sandbox_client_unittest.cc',
46 ], 48 ],
47 'include_dirs': [ 49 'include_dirs': [
48 '../..', 50 '../..',
49 ], 51 ],
50 'conditions': [ 52 'conditions': [
51 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64" ' 53 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64" '
52 'or target_arch=="arm")', { 54 'or target_arch=="arm")', {
53 'sources': [ 55 'sources': [
56 'seccomp-bpf/bpf_tests.h',
54 'seccomp-bpf/sandbox_bpf_unittest.cc', 57 'seccomp-bpf/sandbox_bpf_unittest.cc',
55 ], 58 ],
56 }], 59 }],
57 ], 60 ],
58 }, 61 },
59 { 62 {
60 'target_name': 'seccomp_bpf', 63 'target_name': 'seccomp_bpf',
61 'type': 'static_library', 64 'type': 'static_library',
62 'sources': [ 65 'sources': [
66 'seccomp-bpf/die.cc',
67 'seccomp-bpf/die.h',
63 'seccomp-bpf/sandbox_bpf.cc', 68 'seccomp-bpf/sandbox_bpf.cc',
64 'seccomp-bpf/sandbox_bpf.h', 69 'seccomp-bpf/sandbox_bpf.h',
65 'seccomp-bpf/verifier.cc', 70 'seccomp-bpf/verifier.cc',
66 'seccomp-bpf/verifier.h', 71 'seccomp-bpf/verifier.h',
67 ], 72 ],
68 'dependencies': [ 73 'dependencies': [
69 '../base/base.gyp:base', 74 '../base/base.gyp:base',
70 ], 75 ],
71 'include_dirs': [ 76 'include_dirs': [
72 '../..', 77 '../..',
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 'dependencies': [ 124 'dependencies': [
120 '../base/base.gyp:base', 125 '../base/base.gyp:base',
121 ], 126 ],
122 'include_dirs': [ 127 'include_dirs': [
123 '..', 128 '..',
124 ], 129 ],
125 }, 130 },
126 131
127 ], 132 ],
128 } 133 }
OLDNEW
« no previous file with comments | « no previous file | sandbox/linux/seccomp-bpf/Makefile » ('j') | sandbox/linux/seccomp-bpf/bpf_tests.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698