From a0b4db6cd84ac5a19f06925d16ed5698d4b151a6 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 19 Jul 2022 23:34:25 +0000 Subject: [PATCH] Restyled by google-java-format --- .../chiptool/CHIPDeviceControllerTest.java | 42 +++++++++---------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/src/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/CHIPDeviceControllerTest.java b/src/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/CHIPDeviceControllerTest.java index 125714517fe739..a179e9234c8d73 100644 --- a/src/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/CHIPDeviceControllerTest.java +++ b/src/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/CHIPDeviceControllerTest.java @@ -4,15 +4,12 @@ import static org.junit.Assert.assertNotNull; import android.content.Context; - import androidx.test.ext.junit.runners.AndroidJUnit4; import androidx.test.platform.app.InstrumentationRegistry; - -import org.junit.Test; -import org.junit.runner.RunWith; - import chip.devicecontroller.ChipDeviceController; import chip.devicecontroller.PaseVerifierParams; +import org.junit.Test; +import org.junit.runner.RunWith; /** * Instrumented test, which will execute on an Android device. @@ -21,22 +18,21 @@ */ @RunWith(AndroidJUnit4.class) public class CHIPDeviceControllerTest { - @Test - public void PaseVerifierTest() { - long deviceId = 123L; - long setupPincode = 808080L; - long iterations = 1000L; - byte[] randomSalt = "hEvzbU:%h)?aB,h7+9fn[Lf[BhYB!=TA".getBytes(); - - Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); - ChipDeviceController chipDeviceController = - ChipClient.INSTANCE.getDeviceController(appContext); - - PaseVerifierParams params = - chipDeviceController.computePaseVerifier(deviceId, setupPincode, iterations, randomSalt); - - assertNotNull(params); - assertEquals(params.getSetupPincode(), setupPincode); - assertNotNull(params.getPakeVerifier()); - } + @Test + public void PaseVerifierTest() { + long deviceId = 123L; + long setupPincode = 808080L; + long iterations = 1000L; + byte[] randomSalt = "hEvzbU:%h)?aB,h7+9fn[Lf[BhYB!=TA".getBytes(); + + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + ChipDeviceController chipDeviceController = ChipClient.INSTANCE.getDeviceController(appContext); + + PaseVerifierParams params = + chipDeviceController.computePaseVerifier(deviceId, setupPincode, iterations, randomSalt); + + assertNotNull(params); + assertEquals(params.getSetupPincode(), setupPincode); + assertNotNull(params.getPakeVerifier()); + } }