Merge "remove unused macros SKIP_IF_BPF{,_NOT}_SUPPORTED" am: 71e977fb0d

Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/1552947

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie1d9d4239caa6ddcf6da5252a346e47cabdaec9e
This commit is contained in:
Treehugger Robot 2021-01-20 03:39:29 +00:00 • committed by Automerger Merge Worker
commit ee6aeed3d6

View file

@ -61,19 +61,6 @@ inline bool isBpfSupported() {
return getBpfSupportLevel() != BpfLevel::NONE;
}
#define SKIP_IF_BPF_NOT_SUPPORTED \
do { \
if (!android::bpf::isBpfSupported()) { \
GTEST_LOG_(INFO) << "This test is skipped since bpf is not available\n"; \
return; \
} \
} while (0)
#define SKIP_IF_BPF_SUPPORTED \
do { \
if (android::bpf::isBpfSupported()) return; \
} while (0)
#define SKIP_IF_EXTENDED_BPF_NOT_SUPPORTED \
do { \
if (android::bpf::getBpfSupportLevel() < android::bpf::BpfLevel::EXTENDED_4_14) { \