commit | db60f4d7ce62a0d2ce5e0af99b4fffffd8cf1a8d | [log] [tgz] |
---|---|---|
author | Alex Benton <bentonian@google.com> | Mon Nov 04 15:22:45 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Nov 04 15:22:45 2024 +0000 |
tree | 972520200534426813370123bb4fe96d8dac5358 | |
parent | 2c4f822f9e78d491e3fa32dfee1add5b93c8be65 [diff] |
[Kotlin] Fix FeaturesTest after API change from enumerateFeatures() to getFeatures() Change-Id: I3811f205d242e6c251fc279be4f3b4f98b064f0d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/213614 Commit-Queue: Jim Blackler <jimblackler@google.com> Reviewed-by: Jim Blackler <jimblackler@google.com>
diff --git a/tools/android/webgpu/src/androidTest/java/android/dawn/FeaturesTest.kt b/tools/android/webgpu/src/androidTest/java/android/dawn/FeaturesTest.kt index d19765f..7f716b4 100644 --- a/tools/android/webgpu/src/androidTest/java/android/dawn/FeaturesTest.kt +++ b/tools/android/webgpu/src/androidTest/java/android/dawn/FeaturesTest.kt
@@ -16,7 +16,7 @@ val requiredFeatures = arrayOf(FeatureName.BGRA8UnormStorage, FeatureName.TextureCompressionASTC) dawnTestLauncher(requiredFeatures) { device -> - val deviceFeatures = device.enumerateFeatures() + val deviceFeatures = device.getFeatures().features requiredFeatures.forEach { assert(deviceFeatures.contains(it)) { "Requested feature $it available on device" } }