diff --git a/netd/BpfHandlerTest.cpp b/netd/BpfHandlerTest.cpp index d946fea2bc..c0f7e455ff 100644 --- a/netd/BpfHandlerTest.cpp +++ b/netd/BpfHandlerTest.cpp @@ -21,7 +21,7 @@ #include -#define TEST_BPF_MAP +#define BPF_MAP_MAKE_VISIBLE_FOR_TESTING #include "BpfHandler.h" using namespace android::bpf; // NOLINT(google-build-using-namespace): exempted diff --git a/service/native/TrafficControllerTest.cpp b/service/native/TrafficControllerTest.cpp index 2eabc26e03..b702289544 100644 --- a/service/native/TrafficControllerTest.cpp +++ b/service/native/TrafficControllerTest.cpp @@ -38,7 +38,7 @@ #include -#define TEST_BPF_MAP +#define BPF_MAP_MAKE_VISIBLE_FOR_TESTING #include "TrafficController.h" #include "bpf/BpfUtils.h" #include "NetdUpdatablePublic.h"