Add a test for StrictController.
Bug: 21725996
Bug: 25691379
Change-Id: I24b838161eaf98dede2ae897157ba42414fc926f
diff --git a/server/StrictController.h b/server/StrictController.h
index 52a6779..6f5fed2 100644
--- a/server/StrictController.h
+++ b/server/StrictController.h
@@ -19,6 +19,8 @@
#include <string>
+#include "NetdConstants.h"
+
enum StrictPenalty { INVALID, ACCEPT, LOG, REJECT };
/*
@@ -39,6 +41,11 @@
static const char* LOCAL_CLEAR_CAUGHT;
static const char* LOCAL_PENALTY_LOG;
static const char* LOCAL_PENALTY_REJECT;
+
+protected:
+ // For testing.
+ friend class StrictControllerTest;
+ static int (*execIptables)(IptablesTarget target, ...);
};
#endif