1// 2// Copyright (C) 2018 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15 16cc_test_library { 17 name: "libnetd_test_tun_interface", 18 defaults: ["netd_defaults"], 19 srcs: [ 20 "tun_interface.cpp" 21 ], 22 export_include_dirs: ["."], 23 shared_libs: [ 24 "libbase", 25 "libnetutils", 26 ], 27} 28 29cc_test_library { 30 name: "libnetd_test_unsol_service", 31 defaults: ["netd_defaults"], 32 srcs: [ 33 "TestUnsolService.cpp" 34 ], 35 include_dirs: [ 36 "system/netd/include", 37 ], 38 shared_libs: [ 39 "libbase", 40 "libbinder", 41 "libcutils", 42 "liblog", 43 "libnetutils", 44 "libsysutils", 45 "libutils", 46 "netd_aidl_interface-cpp", 47 ], 48} 49 50cc_test { 51 name: "netd_integration_test", 52 test_suites: ["device-tests"], 53 defaults: ["netd_defaults"], 54 srcs: [ 55 ":netd_integration_test_shared", 56 "binder_test.cpp", 57 "bpf_base_test.cpp", 58 "netd_test.cpp", 59 "netlink_listener_test.cpp", 60 ], 61 include_dirs: ["system/netd/server"], 62 shared_libs: [ 63 "libbase", 64 "libbinder", 65 "libcrypto", 66 "libcutils", 67 "liblog", 68 "libnetd_client", 69 "libnetutils", 70 "libprocessgroup", 71 "libssl", 72 "libutils", 73 ], 74 static_libs: [ 75 "libcap", 76 "libnetd_test_tun_interface", 77 "libnetd_test_unsol_service", 78 "libbpf_android", 79 "liblogwrap", 80 "libnetdbpf", 81 "libnetdutils", 82 "libqtaguid", 83 "netd_aidl_interface-cpp", 84 "netd_event_listener_interface-cpp", 85 "oemnetd_aidl_interface-cpp", 86 ], 87 compile_multilib: "both", 88 multilib: { 89 lib32: { 90 suffix: "32", 91 }, 92 lib64: { 93 suffix: "64", 94 }, 95 }, 96 sanitize: { 97 address: true, 98 recover: [ "all" ], 99 }, 100} 101