[Kotlin] Adds a trivial test that exercises the Textures helper code.
Note that mockito cannot mock a native library, so this is as far
as we can unit test without linking the native library.
Change-Id: I4127dec71653e3669c577d7f51608d7808069510
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/196847
Commit-Queue: Sonakshi Saxena <nexa@google.com>
Reviewed-by: Jim Blackler <jimblackler@google.com>
Reviewed-by: Alex Benton <bentonian@google.com>
Auto-Submit: Alex Benton <bentonian@google.com>
Reviewed-by: Sonakshi Saxena <nexa@google.com>
diff --git a/tools/android/webgpu/build.gradle b/tools/android/webgpu/build.gradle
index d74675e..ae7f117 100644
--- a/tools/android/webgpu/build.gradle
+++ b/tools/android/webgpu/build.gradle
@@ -75,7 +75,13 @@
dependencies {
implementation 'androidx.core:core-ktx:1.13.1'
+
testImplementation 'junit:junit:4.13.2'
+ testImplementation("org.jetbrains.kotlin:kotlin-test")
+ testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
+ testImplementation("org.mockito:mockito-core:5.12.0")
+ testImplementation("org.mockito.kotlin:mockito-kotlin:5.3.1")
+
androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.5'
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.0'