Skip to content

Commit

Permalink
Restyled by google-java-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jul 19, 2022
1 parent 7973b96 commit a0b4db6
Showing 1 changed file with 19 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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());
}
}

0 comments on commit a0b4db6

Please sign in to comment.