File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
firebase-common/src/test/java/com/google/firebase/heartbeatinfo Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 28
28
import android .content .SharedPreferences ;
29
29
import androidx .test .core .app .ApplicationProvider ;
30
30
import androidx .test .ext .junit .runners .AndroidJUnit4 ;
31
+ import com .google .common .collect .ImmutableSet ;
31
32
import com .google .firebase .platforminfo .UserAgentPublisher ;
32
33
import java .io .ByteArrayOutputStream ;
33
34
import java .io .IOException ;
@@ -53,12 +54,7 @@ public class DefaultHeartBeatControllerTest {
53
54
private final HeartBeatInfoStorage storage = mock (HeartBeatInfoStorage .class );
54
55
private final UserAgentPublisher publisher = mock (UserAgentPublisher .class );
55
56
private final Context applicationContext = ApplicationProvider .getApplicationContext ();
56
- private final Set <HeartBeatConsumer > logSources =
57
- new HashSet <HeartBeatConsumer >() {
58
- {
59
- add (new HeartBeatConsumer () {});
60
- }
61
- };
57
+ private final Set <HeartBeatConsumer > logSources = ImmutableSet .of (new HeartBeatConsumer () {});
62
58
private DefaultHeartBeatController heartBeatController ;
63
59
64
60
@ Before
You can’t perform that action at this time.
0 commit comments