libbpf_android: remove libnetdutils dep
Remove libnetdutils dependency because bpf is being used for things other
than networking these days, and we don't want to make libnetdutils
vendor-available in the future. libbase provides an alternative type now.
Bug: 140330870
Test: atest libbpf_android_test netd_integration_test netd_unit_test
libnetdbpf_test bpf_module_test
Change-Id: I72ae8cd7f58a49bfc7dcb914a332a4c4bad5dea5
diff --git a/libbpf_android/BpfLoadTest.cpp b/libbpf_android/BpfLoadTest.cpp
index 6d637e9..d8d6da6 100644
--- a/libbpf_android/BpfLoadTest.cpp
+++ b/libbpf_android/BpfLoadTest.cpp
@@ -81,10 +81,10 @@
UNUSED(key);
UNUSED(map);
- return android::netdutils::status::ok;
+ return base::Result<void>();
};
- EXPECT_OK(m.iterateWithValue(iterFunc));
+ EXPECT_TRUE(m.iterateWithValue(iterFunc));
EXPECT_EQ(non_zero, 1);
}
};