Merge "Add TEST_MAPPING"
am: ed8cbcca55
Change-Id: Ic1c6a713fc626e4dacb540103528868733af723f
This commit is contained in:
7
apex/sdkext/TEST_MAPPING
Normal file
7
apex/sdkext/TEST_MAPPING
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"presubmit": [
|
||||||
|
{
|
||||||
|
"name": "framework-sdkext-tests"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -6,5 +6,6 @@ android_test {
|
|||||||
"android.test.runner",
|
"android.test.runner",
|
||||||
],
|
],
|
||||||
static_libs: [ "framework-sdkext" ],
|
static_libs: [ "framework-sdkext" ],
|
||||||
|
test_suites: [ "general-tests" ],
|
||||||
platform_apis: true,
|
platform_apis: true,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,11 +29,6 @@ public class SdkExtensionsTest extends TestCase {
|
|||||||
SdkExtensions.getExtensionVersion(Build.VERSION_CODES.Q);
|
SdkExtensions.getExtensionVersion(Build.VERSION_CODES.Q);
|
||||||
fail("expected IllegalArgumentException");
|
fail("expected IllegalArgumentException");
|
||||||
} catch (IllegalArgumentException expected) { }
|
} catch (IllegalArgumentException expected) { }
|
||||||
|
|
||||||
try {
|
|
||||||
SdkExtensions.getExtensionVersion(999999);
|
|
||||||
fail("expected IllegalArgumentException");
|
|
||||||
} catch (IllegalArgumentException expected) { }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SmallTest
|
@SmallTest
|
||||||
|
|||||||
Reference in New Issue
Block a user