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