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:
@@ -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",
|
||||||
|
|||||||
@@ -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: [
|
||||||
|
|||||||
@@ -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;
|
||||||
Reference in New Issue
Block a user