blob: 809fda2e747f825ab81a8a679826d6b88382dc29 [file] [log] [blame]
package com.android.healthconnect.testapps.toolbox
import android.health.connect.HealthConnectManager
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth
import org.junit.Test
class PermissionIntegrationTest {
@Test
fun toolboxAppShouldRequestAllHealthPermissions() {
val context = InstrumentationRegistry.getInstrumentation().context
Truth.assertThat(Constants.ALL_PERMISSIONS.sorted())
.isEqualTo(HealthConnectManager.getHealthPermissions(context).sorted())
}
}