Merge "remove TestTrafficControllerSetUp & TestSocketFilterSetUp"
diff --git a/tests/native/connectivity_native_test/bpf_base_test.cpp b/tests/native/connectivity_native_test/bpf_base_test.cpp
index f164b2f..624d216 100644
--- a/tests/native/connectivity_native_test/bpf_base_test.cpp
+++ b/tests/native/connectivity_native_test/bpf_base_test.cpp
@@ -37,7 +37,7 @@
#include "bpf/BpfMap.h"
#include "bpf/BpfUtils.h"
-#include "bpf_shared.h"
+#include "netd.h"
using android::base::Result;
@@ -61,26 +61,6 @@
ASSERT_EQ(0, access((cg2_path + "/cgroup.controllers").c_str(), R_OK));
}
-TEST_F(BpfBasicTest, TestTrafficControllerSetUp) {
- ASSERT_EQ(0, access(BPF_EGRESS_PROG_PATH, R_OK));
- ASSERT_EQ(0, access(BPF_INGRESS_PROG_PATH, R_OK));
- ASSERT_EQ(0, access(XT_BPF_INGRESS_PROG_PATH, R_OK));
- ASSERT_EQ(0, access(XT_BPF_EGRESS_PROG_PATH, R_OK));
- ASSERT_EQ(0, access(COOKIE_TAG_MAP_PATH, R_OK));
- ASSERT_EQ(0, access(UID_COUNTERSET_MAP_PATH, R_OK));
- ASSERT_EQ(0, access(STATS_MAP_A_PATH, R_OK));
- ASSERT_EQ(0, access(STATS_MAP_B_PATH, R_OK));
- ASSERT_EQ(0, access(IFACE_INDEX_NAME_MAP_PATH, R_OK));
- ASSERT_EQ(0, access(IFACE_STATS_MAP_PATH, R_OK));
- ASSERT_EQ(0, access(CONFIGURATION_MAP_PATH, R_OK));
- ASSERT_EQ(0, access(UID_OWNER_MAP_PATH, R_OK));
-}
-
-TEST_F(BpfBasicTest, TestSocketFilterSetUp) {
- ASSERT_EQ(0, access(CGROUP_SOCKET_PROG_PATH, R_OK));
- ASSERT_EQ(0, access(UID_PERMISSION_MAP_PATH, R_OK));
-}
-
TEST_F(BpfBasicTest, TestTagSocket) {
BpfMap<uint64_t, UidTagValue> cookieTagMap(COOKIE_TAG_MAP_PATH);
ASSERT_TRUE(cookieTagMap.isValid());