blob: 22d296c4cb4c01492736fb7c7ac495379cf3d16c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package com.android.healthconnect.controller.tests.utils.di
import android.content.Context
import android.content.Intent
import androidx.fragment.app.FragmentActivity
import com.android.healthconnect.controller.utils.DeviceInfoUtils
class FakeDeviceInfoUtils : DeviceInfoUtils {
private var sendFeedbackAvailable = false
private var playStoreAvailable = false
fun setSendFeedbackAvailability(available: Boolean) {
sendFeedbackAvailable = available
}
fun setPlayStoreAvailability(available: Boolean) {
playStoreAvailable = available
}
override fun isSendFeedbackAvailable(context: Context): Boolean {
return sendFeedbackAvailable
}
override fun isPlayStoreAvailable(context: Context): Boolean {
return playStoreAvailable
}
override fun openHCGetStartedLink(activity: FragmentActivity) {}
override fun openSendFeedbackActivity(activity: FragmentActivity) {}
override fun isIntentHandlerAvailable(context: Context, intent: Intent): Boolean {
return false
}
}
|