Add testForget to STS

Bug: 170661738
Test: sts-tradefed run sts-engbuild-no-spl-lock -m CtsWifiTestCases

Change-Id: I5de27b7f45196e4e17ff2c45e2262c987c72e514
diff --git a/tests/tests/wifi/Android.bp b/tests/tests/wifi/Android.bp
index d3ac794..3c301cd 100644
--- a/tests/tests/wifi/Android.bp
+++ b/tests/tests/wifi/Android.bp
@@ -39,6 +39,7 @@
         "vts10",
         "general-tests",
         "mts",
+        "sts",
     ],
 
 
diff --git a/tests/tests/wifi/src/android/net/wifi/cts/WifiManagerTest.java b/tests/tests/wifi/src/android/net/wifi/cts/WifiManagerTest.java
index 1825dc3..f4afa87 100644
--- a/tests/tests/wifi/src/android/net/wifi/cts/WifiManagerTest.java
+++ b/tests/tests/wifi/src/android/net/wifi/cts/WifiManagerTest.java
@@ -66,6 +66,7 @@
 import android.os.SystemClock;
 import android.os.UserHandle;
 import android.platform.test.annotations.AppModeFull;
+import android.platform.test.annotations.SecurityTest;
 import android.provider.Settings;
 import android.support.test.uiautomator.UiDevice;
 import android.telephony.TelephonyManager;
@@ -1933,6 +1934,7 @@
      * Tests {@link WifiManager#forget(int, WifiManager.ActionListener)} by adding/removing a new
      * network.
      */
+    @SecurityTest
     public void testForget() throws Exception {
         if (!WifiFeature.isWifiSupported(getContext())) {
             // skip the test if WiFi is not supported