Home | History | Annotate | Download | only in linux
      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
      3 # found in the LICENSE file.
      4 
      5 # Tests need to be compiled in the same link unit, so we have to list them
      6 # in a separate .gypi file.
      7 {
      8   'dependencies': [
      9     'sandbox',
     10     '../base/base.gyp:base',
     11     '../testing/gtest.gyp:gtest',
     12   ],
     13   'include_dirs': [
     14     '../..',
     15   ],
     16   'sources': [
     17     'tests/main.cc',
     18     'tests/unit_tests.cc',
     19     'tests/unit_tests.h',
     20     'services/broker_process_unittest.cc',
     21   ],
     22   'conditions': [
     23     [ 'compile_suid_client==1', {
     24       'sources': [
     25         'suid/client/setuid_sandbox_client_unittest.cc',
     26       ],
     27     }],
     28     [ 'compile_seccomp_bpf==1', {
     29       'sources': [
     30         'seccomp-bpf/bpf_tests.h',
     31         'seccomp-bpf/codegen_unittest.cc',
     32         'seccomp-bpf/errorcode_unittest.cc',
     33         'seccomp-bpf/sandbox_bpf_unittest.cc',
     34         'seccomp-bpf/syscall_iterator_unittest.cc',
     35         'seccomp-bpf/syscall_unittest.cc',
     36       ],
     37     }],
     38   ],
     39 }
     40