Parcelable: Support Parcelizer interface in order to be able to customize serialization

This commit is contained in:
Yan Zhulanow
2017-06-29 22:57:07 +03:00
parent aa5f9ee3ec
commit 3062e72282
11 changed files with 386 additions and 23 deletions
@@ -42,4 +42,5 @@ class ParcelBoxTest : AbstractParcelBoxTest() {
@Test fun sparseBooleanArray() = doTest("sparseBooleanArray")
@Test fun bundle() = doTest("bundle")
@Test fun sparseArrays() = doTest("sparseArrays")
@Test fun customSimple() = doTest("customSimple")
}
@@ -42,6 +42,18 @@ public class ParcelBytecodeListingTestGenerated extends AbstractParcelBytecodeLi
doTest(fileName);
}
@TestMetadata("customSimple.kt")
public void testCustomSimple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimple.kt");
doTest(fileName);
}
@TestMetadata("customSimpleWithNewArray.kt")
public void testCustomSimpleWithNewArray() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimpleWithNewArray.kt");
doTest(fileName);
}
@TestMetadata("listInsideList.kt")
public void testListInsideList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/listInsideList.kt");