Loading tests/resolv_test_utils.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -229,3 +229,7 @@ void RemoveMdnsRoute() { }; EXPECT_EQ(0, ForkAndRun(args_v6)); } bool is64bitAbi() { return android::base::GetProperty("ro.product.cpu.abi", "").find("64") != std::string::npos; } tests/resolv_test_utils.h +4 −3 Original line number Diff line number Diff line Loading @@ -439,9 +439,10 @@ void RemoveMdnsRoute(); } \ } while (0) bool is64bitAbi(); static const std::string DNS_HELPER = android::bpf::isUserspace64bit() ? "/apex/com.android.tethering/lib64/libcom.android.tethering.dns_helper.so" is64bitAbi() ? "/apex/com.android.tethering/lib64/libcom.android.tethering.dns_helper.so" : "/apex/com.android.tethering/lib/libcom.android.tethering.dns_helper.so"; #define SKIP_IF_DEPENDENT_LIB_DOES_NOT_EXIST(libPath) \ Loading Loading
tests/resolv_test_utils.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -229,3 +229,7 @@ void RemoveMdnsRoute() { }; EXPECT_EQ(0, ForkAndRun(args_v6)); } bool is64bitAbi() { return android::base::GetProperty("ro.product.cpu.abi", "").find("64") != std::string::npos; }
tests/resolv_test_utils.h +4 −3 Original line number Diff line number Diff line Loading @@ -439,9 +439,10 @@ void RemoveMdnsRoute(); } \ } while (0) bool is64bitAbi(); static const std::string DNS_HELPER = android::bpf::isUserspace64bit() ? "/apex/com.android.tethering/lib64/libcom.android.tethering.dns_helper.so" is64bitAbi() ? "/apex/com.android.tethering/lib64/libcom.android.tethering.dns_helper.so" : "/apex/com.android.tethering/lib/libcom.android.tethering.dns_helper.so"; #define SKIP_IF_DEPENDENT_LIB_DOES_NOT_EXIST(libPath) \ Loading