use of com.google.firebase.perf.util.Constants.PREFS_NAME in project firebase-android-sdk by firebase.
the class TraceTest method setUp.
@Before
public void setUp() {
currentTime = 1;
initMocks(this);
doAnswer((Answer<Timer>) invocationOnMock -> new Timer(currentTime)).when(mockClock).getTime();
arguments = ArgumentCaptor.forClass(TraceMetric.class);
DeviceCacheManager.clearInstance();
ConfigResolver.clearInstance();
appContext.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE).edit().clear().commit();
ConfigResolver configResolver = ConfigResolver.getInstance();
configResolver.setDeviceCacheManager(new DeviceCacheManager(new FakeDirectExecutorService()));
configResolver.setApplicationContext(appContext);
}
Aggregations