File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
firebase-ml-modeldownloader
src/test/java/com/google/firebase/ml/modeldownloader Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ dependencies {
88
88
annotationProcessor " com.google.auto.value:auto-value:1.6.5"
89
89
annotationProcessor project(" :encoders:firebase-encoders-processor" )
90
90
91
+ testImplementation(project(" :integ-testing" ))
91
92
testImplementation ' androidx.test:core:1.3.0'
92
93
testImplementation ' com.github.tomakehurst:wiremock-standalone:2.26.3'
93
94
testImplementation " com.google.truth:truth:$googleTruthVersion "
Original file line number Diff line number Diff line change 37
37
import com .google .firebase .FirebaseApp ;
38
38
import com .google .firebase .FirebaseOptions ;
39
39
import com .google .firebase .FirebaseOptions .Builder ;
40
+ import com .google .firebase .concurrent .TestOnlyExecutors ;
40
41
import com .google .firebase .ml .modeldownloader .internal .CustomModelDownloadService ;
41
42
import com .google .firebase .ml .modeldownloader .internal .FirebaseMlLogEvent .ModelDownloadLogEvent .DownloadStatus ;
42
43
import com .google .firebase .ml .modeldownloader .internal .FirebaseMlLogEvent .ModelDownloadLogEvent .ErrorCode ;
@@ -137,8 +138,8 @@ public void setUp() throws Exception {
137
138
mockModelDownloadService ,
138
139
mockFileManager ,
139
140
mockEventLogger ,
140
- executor ,
141
- executor ,
141
+ TestOnlyExecutors . background () ,
142
+ TestOnlyExecutors . blocking () ,
142
143
modelFactory );
143
144
setUpTestingFiles (app );
144
145
You can’t perform that action at this time.
0 commit comments