Skip to content

Commit

Permalink
Android: fix the :bench instrumentation test target
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdapioneer committed Feb 29, 2024
1 parent 958c09a commit 57987af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
- name: Install dependencies
run: sudo apt-get install -y tree

- name: Build app (debug) with Gradle
- name: Build all targets (debug) with Gradle
working-directory: android
run: ./gradlew :app:assembleDebug
run: ./gradlew assembleDebug assembleAndroidTest

- name: Build lib release and publish locally
working-directory: android
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class HiddenSlothBenchTest {
if (operationUnderTest == HiddenSlothOperationUnderTest.DECRYPT || operationUnderTest == HiddenSlothOperationUnderTest.DECRYPT_WITH_CACHED_KEY) {
hiddenSloth.encrypt(
storage = storage,
pw = DEFAULT_PASSWORD,
pw = DEFAULT_PASSWORD.toCharArray(),
data = maxSizeEncryptionPayload,
tracer = NoopTracer(),
)
Expand All @@ -137,7 +137,7 @@ class HiddenSlothBenchTest {
if (operationUnderTest == HiddenSlothOperationUnderTest.DECRYPT_WITH_CACHED_KEY) {
hiddenSloth.computeCachedSecrets(
storage = storage,
pw = DEFAULT_PASSWORD,
pw = DEFAULT_PASSWORD.toCharArray(),
)
} else {
null
Expand All @@ -160,7 +160,7 @@ class HiddenSlothBenchTest {

HiddenSlothOperationUnderTest.DECRYPT -> hiddenSloth.decrypt(
storage = storage,
pw = DEFAULT_PASSWORD,
pw = DEFAULT_PASSWORD.toCharArray(),
tracer = tracer
)

Expand All @@ -177,7 +177,7 @@ class HiddenSlothBenchTest {

HiddenSlothOperationUnderTest.ENCRYPT -> hiddenSloth.encrypt(
storage = storage,
pw = DEFAULT_PASSWORD,
pw = DEFAULT_PASSWORD.toCharArray(),
data = maxSizeEncryptionPayload,
tracer = tracer
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class LongSlothBenchTest {
)
keyGenInstance.keyGen(
storage = storage,
pw = defaultPassword,
pw = defaultPassword.toCharArray(),
h = defaultKeyHandle,
outputLengthBytes = defaultOutputKeyLength
)
Expand All @@ -91,7 +91,7 @@ class LongSlothBenchTest {
)
deriveInstance.derive(
storage = storage,
pw = defaultPassword,
pw = defaultPassword.toCharArray(),
outputLengthBytes = defaultOutputKeyLength
)
}
Expand Down

0 comments on commit 57987af

Please sign in to comment.