summaryrefslogtreecommitdiff
path: root/server/TetherControllerTest.cpp
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2021-01-08 16:08:25 -0800
committerMaciej Żenczykowski <maze@google.com>2021-01-12 02:09:02 +0000
commitccb0451fb7379452f9fbcc0d024497e4e8097eac (patch)
treeafdf56f9ae45677322dfbaff7b6dcfd200e506d3 /server/TetherControllerTest.cpp
parentd24b70c4fafe1eb3ab958cabce39087c88501cbe (diff)
SKIP_IF_BPF_NOT_SUPPORTED is a no-op
Android S requires devices to support eBPF. Test: builds, atest, TreeHugger Bug: 167500195 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ia289c2eb59920a5cb37e0be759c71098cc77e3c8
Diffstat (limited to 'server/TetherControllerTest.cpp')
-rw-r--r--server/TetherControllerTest.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/server/TetherControllerTest.cpp b/server/TetherControllerTest.cpp
index db9892f9..3132597b 100644
--- a/server/TetherControllerTest.cpp
+++ b/server/TetherControllerTest.cpp
@@ -72,8 +72,6 @@ protected:
BpfMap<uint32_t, uint64_t> mFakeTetherLimitMap{BPF_MAP_TYPE_HASH, TEST_MAP_SIZE};
void SetUp() {
- SKIP_IF_BPF_NOT_SUPPORTED;
-
ASSERT_TRUE(mFakeTetherStatsMap.isValid());
ASSERT_TRUE(mFakeTetherLimitMap.isValid());
@@ -486,8 +484,6 @@ TEST_F(TetherControllerTest, TestGetTetherStats) {
}
TEST_F(TetherControllerTest, TestTetherOffloadGetStats) {
- SKIP_IF_BPF_NOT_SUPPORTED;
-
updateMaps(101, 100, 10, 200, 20);
updateMaps(102, 300, 30, 400, 40);
const TetherOffloadStats expected0{101, 100, 10, 200, 20};
@@ -503,8 +499,6 @@ TEST_F(TetherControllerTest, TestTetherOffloadGetStats) {
}
TEST_F(TetherControllerTest, TestTetherOffloadSetQuota) {
- SKIP_IF_BPF_NOT_SUPPORTED;
-
const uint32_t ifindex = 100;
const uint64_t minQuota = 0;
const uint64_t maxQuota = std::numeric_limits<int64_t>::max();