Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 897ff551 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Ravenwood] Re-enable RavenwoodBivalentTest_device_ravenizer" into main

parents ab56d4f2 811a84b3
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -7,10 +7,7 @@
    { "name": "hoststubgen-invoke-test" },
    { "name": "RavenwoodMockitoTest_device" },
    { "name": "RavenwoodBivalentTest_device" },

    // Running ravenizer on device side tests is unsupported: b/411506416
    // { "name": "RavenwoodBivalentTest_device_ravenizer" },

    { "name": "RavenwoodBivalentTest_device_ravenizer" },
    { "name": "RavenwoodBivalentInstTest_nonself_inst" },
    { "name": "RavenwoodBivalentInstTest_self_inst_device" },

+1 −0
Original line number Diff line number Diff line
@@ -128,5 +128,6 @@ android_test {
    defaults: ["ravenwood-bivalent-device-defaults"],
    ravenizer: {
        enabled: true,
        flags: ["--no-jdk-patch"],
    },
}
+3 −1
Original line number Diff line number Diff line
@@ -59,7 +59,9 @@ class HostStubGenClassProcessor(
        // Connect to the base visitor
        var outVisitor: ClassVisitor = base

        if (!options.disableJdkPatch.get) {
            outVisitor = JdkPatchVisitor(outVisitor)
        }

        if (options.enableClassChecker.get) {
            outVisitor = CheckClassAdapter(outVisitor)
+5 −2
Original line number Diff line number Diff line
@@ -62,6 +62,8 @@ open class HostStubGenClassProcessorOptions(

    val throwExceptionType: SetOnce<String> = SetOnce("java.lang.UnsupportedOperationException"),

    val disableJdkPatch: SetOnce<Boolean> = SetOnce(false),

    val enableClassChecker: SetOnce<Boolean> = SetOnce(false),
    val enablePreTrace: SetOnce<Boolean> = SetOnce(false),
    val enablePostTrace: SetOnce<Boolean> = SetOnce(false),
@@ -136,8 +138,9 @@ open class HostStubGenClassProcessorOptions(

            "--delete-finals" -> deleteFinals.set(true)

            "--throw-exception" ->
                throwExceptionType.set(nextArg())
            "--throw-exception" -> throwExceptionType.set(nextArg())

            "--no-jdk-patch" -> disableJdkPatch.set(true)

            // Following options are for debugging.
            "--enable-class-checker" -> enableClassChecker.set(true)