Move more network unit tests to common tests

This adds the moved tests to CTS as well.
The moved unit tests are appropriate for CTS as they test data holder
classes that need to function properly for apps to work.

Test: atest FrameworksNetTests
Test: atest CtsNetTestCases: added tests pass
Bug: 129199900
Change-Id: I4c3d31ed595024af84093ca9110ed43633c383f4
This commit is contained in:
Remi NGUYEN VAN
2019-04-08 17:05:56 +09:00
parent 3436bc64ca
commit 5564d5a8f6
9 changed files with 3 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ java_defaults {
static_libs: [ static_libs: [
"FrameworksNetCommonTests", "FrameworksNetCommonTests",
"frameworks-base-testutils", "frameworks-base-testutils",
"frameworks-net-testutils",
"framework-protos", "framework-protos",
"androidx.test.rules", "androidx.test.rules",
"mockito-target-minus-junit4", "mockito-target-minus-junit4",

View File

@@ -21,6 +21,7 @@ java_library {
srcs: ["java/**/*.java"], srcs: ["java/**/*.java"],
static_libs: [ static_libs: [
"androidx.test.rules", "androidx.test.rules",
"frameworks-net-testutils",
"junit", "junit",
], ],
libs: [ libs: [

View File

@@ -19,11 +19,10 @@ package android.net.apf;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotEquals;
import android.net.shared.ParcelableTestUtil;
import androidx.test.filters.SmallTest; import androidx.test.filters.SmallTest;
import androidx.test.runner.AndroidJUnit4; import androidx.test.runner.AndroidJUnit4;
import com.android.internal.util.ParcelableTestUtil;
import com.android.internal.util.TestUtils; import com.android.internal.util.TestUtils;
import org.junit.Test; import org.junit.Test;