DescriptionConvert sandbox_bpf_unittest.cc to use bpf_dsl
This unfortunately means converting what are currently sandbox_bpf unit
tests into effectively integration tests for bpf_dsl, as they now test
both bpf_dsl + sandbox_bpf. However, this is a necessary step towards
eliminating dependencies on the current sandbox_bpf API so that we can
more freely evolve it to fit bpf_dsl's needs.
For ease of review, this only converts tests that were already using
SandboxBPFPolicy (i.e., BPF_TEST()s are left alone), and some of the
conversions are slightly non-idiomatic in the interest of mimicking the
existing test structure. Both of these will be addressed further in
followup CLs so that this CL can be reviewed as a mere translation of
policies from the sandbox_bpf API to bpf_dsl.
Committed: https://crrev.com/22aa66d1f28832b92c57f537313e50c709b3c7b5
Cr-Commit-Position: refs/heads/master@{#294723}
Patch Set 1 #Patch Set 2 : Cleanup #Patch Set 3 : Remove unneeded helper function #Patch Set 4 : Sort function definitions #Patch Set 5 : Revert accidental change #Patch Set 6 : Restore helper method #Patch Set 7 : Fix GN build #Patch Set 8 : Fix ARM build (maybe?) #
Total comments: 16
Patch Set 9 : Respond to jorgelo feedback #Patch Set 10 : Disable 64-bit {Any,All}Bit tests on 32-bit #Patch Set 11 : Sync to master #
Total comments: 4
Patch Set 12 : Add unit test for != #
Messages
Total messages: 13 (3 generated)
|