Strict-related commands porting
Test: built, flashed, booted
system/netd/tests/runtests.sh passes
Change-Id: Ibff8b050915c65e44cd37bb835943b8582fc003a
diff --git a/server/StrictControllerTest.cpp b/server/StrictControllerTest.cpp
index 9770352..3025d8c 100644
--- a/server/StrictControllerTest.cpp
+++ b/server/StrictControllerTest.cpp
@@ -34,8 +34,8 @@
StrictController mStrictCtrl;
};
-TEST_F(StrictControllerTest, TestEnableStrict) {
- mStrictCtrl.enableStrict();
+TEST_F(StrictControllerTest, TestSetupIptablesHooks) {
+ mStrictCtrl.setupIptablesHooks();
std::vector<std::string> common = {
"*filter",
@@ -108,8 +108,8 @@
expectIptablesRestoreCommands(expected);
}
-TEST_F(StrictControllerTest, TestDisableStrict) {
- mStrictCtrl.disableStrict();
+TEST_F(StrictControllerTest, TestResetChains) {
+ mStrictCtrl.resetChains();
const std::string expected =
"*filter\n"