Merge "Refactor CountryDetectorServiceTest"

This commit is contained in:
TreeHugger Robot
2022-12-13 07:23:27 +00:00
committed by Android (Google) Code Review

View File

@@ -179,8 +179,9 @@ public class CountryDetectorServiceTest {
mCountryDetectorService.systemRunning();
mCountryDetectorService.addCountryListener(countryListenerA);
mCountryDetectorService.addCountryListener(countryListenerB);
expect.that(countryListenerA.isNotified()).isFalse();
expect.that(countryListenerB.isNotified()).isFalse();
//Immediate Callback Info support at ag/20470367
expect.that(countryListenerA.isNotified()).isTrue();
expect.that(countryListenerB.isNotified()).isTrue();
mCountryDetectorService.notifyReceivers(country);
expect.that(countryListenerA.isNotified()).isTrue();