Skip to content

Commit

Permalink
[#3230] Added UT to BPF filter
Browse files Browse the repository at this point in the history
modified:   tests/pkt_filter_bpf_unittest.cc
  • Loading branch information
tmarkwalder committed Feb 16, 2024
1 parent 9524af1 commit c54c572
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/dhcp/tests/pkt_filter_bpf_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ TEST_F(PktFilterBPFTest, isDirectResponseSupported) {
EXPECT_TRUE(pkt_filter.isDirectResponseSupported());
}

// This test verifies that the PktFilterBPF class reports its capability
// to create SOCKET_RECEIVED events.
TEST_F(PktFilterBPFTest, isSocketReceivedTimeSupported) {
// Create object under test.
PktFilterBPF pkt_filter;
EXPECT_TRUE(pkt_filter.isSocketReceivedTimeSupported());
}

// All tests below require root privileges to execute successfully. If they
// are run as non-root they will be skipped via SKIP_IF(notRoot()).

Expand Down

0 comments on commit c54c572

Please sign in to comment.