File tree 1 file changed +20
-0
lines changed
firebase-functions/src/androidTest/java/com/google/firebase/functions 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
package com .google .firebase .functions ;
16
16
17
+ import androidx .annotation .NonNull ;
17
18
import androidx .annotation .Nullable ;
19
+ import com .google .android .gms .tasks .Task ;
20
+ import com .google .android .gms .tasks .Tasks ;
18
21
import com .google .firebase .iid .internal .FirebaseInstanceIdInternal ;
22
+ import java .io .IOException ;
19
23
20
24
public class TestFirebaseInstanceIdInternal implements FirebaseInstanceIdInternal {
21
25
private final String testToken ;
@@ -34,4 +38,20 @@ public String getId() {
34
38
public String getToken () {
35
39
return testToken ;
36
40
}
41
+
42
+ @ NonNull
43
+ @ Override
44
+ public Task <String > getTokenTask () {
45
+ return Tasks .forResult (testToken );
46
+ }
47
+
48
+ @ Override
49
+ public void deleteToken (@ NonNull String s , @ NonNull String s1 ) throws IOException {
50
+ // No-op: We're not using this method in our tests
51
+ }
52
+
53
+ @ Override
54
+ public void addNewTokenListener (NewTokenListener newTokenListener ) {
55
+ // No-op: We're not using this method in our tests
56
+ }
37
57
}
You can’t perform that action at this time.
0 commit comments