wire bpf_base_test into netd_updatable_unit_test

The 3 pre-existing //system/netd tests are:
  TEST_F(BpfBasicTest, TestCgroupMounted)
  TEST_F(BpfBasicTest, TestTagSocket)
  TEST_F(BpfBasicTest, TestCloseSocketWithoutUntag)
which are directly related to BpfHandler.cpp implementation,
as it implements:
  Status BpfHandler::init(const char* cg2_path)
  BpfHandler::tagSocket()
  BpfHandler::untagSocket()

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1c01ae90904faaea54b427495c7a5deab8b1b900
This commit is contained in:
Maciej Żenczykowski
2022-12-19 14:50:18 -08:00
parent c62bfff71b
commit 70d30ec49d
2 changed files with 2 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ cc_test {
],
srcs: [
"BpfHandlerTest.cpp",
"BpfBaseTest.cpp"
],
static_libs: [
"libnetd_updatable",
@@ -72,6 +73,7 @@ cc_test {
"libcutils",
"liblog",
"libnetdutils",
"libprocessgroup",
],
compile_multilib: "both",
multilib: {