| cc_test_library { |
| name: "libnetd_test_resolv_utils", |
| defaults: ["netd_defaults"], |
| srcs: [ |
| "resolv_test_utils.cpp", |
| ], |
| header_libs: [ |
| "libnetd_resolv_headers", |
| "libnetd_resolv_internal_headers", |
| ], |
| shared_libs: [ |
| "libbase", |
| "libutils", |
| ], |
| static_libs: [ |
| "libnetd_test_dnsresponder", |
| "libnetdutils", |
| "dnsresolver_aidl_interface-V2-cpp", |
| ], |
| } |
| |
| cc_test { |
| name: "resolv_stress_test", |
| test_suites: ["device-tests"], |
| // This won't work with test_config |
| // require_root: true, |
| test_config: "resolv_stress_test_config.xml", |
| defaults: ["netd_defaults"], |
| srcs: [ |
| "resolv_stress_test.cpp", |
| ], |
| header_libs: [ |
| "libnetd_resolv_headers", |
| "libnetd_resolv_internal_headers", |
| ], |
| shared_libs: [ |
| "libbase", |
| "libbinder", |
| "libnetd_client", |
| "libutils", |
| ], |
| static_libs: [ |
| "libgmock", |
| "libnetd_test_dnsresponder", |
| "libnetd_test_resolv_utils", |
| "libnetdutils", |
| "netd_aidl_interface-V2-cpp", |
| "netd_event_listener_interface-cpp", |
| "dnsresolver_aidl_interface-V2-cpp", |
| ], |
| compile_multilib: "both", |
| sanitize: { |
| address: true, |
| recover: ["all"], |
| }, |
| } |