DescriptionSimplified unit testing of sandboxing code. We now have helper methods that run all tests
inside their own processes. And we have another set of helpers that ensure we actually set
a sandboxing policy and don't forget to start the sandbox prior to running the tests.
Also simplified the handling of unexpected failure and termination of the sandbox'd process.
TODO: we still don't have a good story for testing fatal errors. We will eventually need
some form of exit tests.
BUG=n/a
TEST=sandbox_linux_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153555
Patch Set 1 #
Total comments: 12
Patch Set 2 : Addressed reviewer's comments #
Total comments: 15
Patch Set 3 : Fixed issues with how we use the gtest API #
Total comments: 6
Patch Set 4 : Refactored BPF_TEST macro and automatically start the sandbox for all tests #
Total comments: 3
Patch Set 5 : Changed "const" for "clang" #Patch Set 6 : Add missing parameter that suppresses benign error messages #
Messages
Total messages: 18 (0 generated)
|