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

Commit fada307d authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by Gerrit Code Review
Browse files

Merge "Fix CaptivePortalDataTest on R"

parents 2c49d21c 158fb98f
Loading
Loading
Loading
Loading
+25 −25
Original line number Diff line number Diff line
@@ -55,14 +55,14 @@ class CaptivePortalDataTest {
            .build()

    private val dataFromPasspoint = CaptivePortalData.Builder()
            .setUserPortalUrl(Uri.parse("https://tc.example.com/passpoint"),
                    CaptivePortalData.CAPTIVE_PORTAL_DATA_SOURCE_PASSPOINT)
            .setVenueInfoUrl(Uri.parse("https://venue.example.com/passpoint"),
                    CaptivePortalData.CAPTIVE_PORTAL_DATA_SOURCE_PASSPOINT)
            .setCaptive(true)
            .apply {
                if (SdkLevel.isAtLeastS()) {
                    setVenueFriendlyName("venue friendly name")
                    setUserPortalUrl(Uri.parse("https://tc.example.com/passpoint"),
                            CaptivePortalData.CAPTIVE_PORTAL_DATA_SOURCE_PASSPOINT)
                    setVenueInfoUrl(Uri.parse("https://venue.example.com/passpoint"),
                            CaptivePortalData.CAPTIVE_PORTAL_DATA_SOURCE_PASSPOINT)
                }
            }
            .build()
@@ -96,7 +96,6 @@ class CaptivePortalDataTest {
        if (SdkLevel.isAtLeastS()) {
            assertNotEqualsAfterChange { it.setVenueFriendlyName("another friendly name") }
            assertNotEqualsAfterChange { it.setVenueFriendlyName(null) }
        }

            assertEquals(dataFromPasspoint, CaptivePortalData.Builder(dataFromPasspoint).build())
            assertNotEqualsAfterChange { it.setUserPortalUrl(
@@ -119,6 +118,7 @@ class CaptivePortalDataTest {
                    Uri.parse("https://venue.example.com/passpoint"),
                    CaptivePortalData.CAPTIVE_PORTAL_DATA_SOURCE_OTHER) }
        }
    }

    @Test
    fun testUserPortalUrl() {