Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73afb9c0 authored by Nagendra Prasad Nagarle Basavaraju's avatar Nagendra Prasad Nagarle Basavaraju
Browse files

Refactor CountryDetectorServiceTest

-Modify notifyReceivers_twoListenersRegistered_bothNotified() to
 support immediate callback info to listeners based on ag/20470367

Bug: 262325136
Test: atest FrameworksServicesTests
Change-Id: I1f0b6f8244cbace325fde30c1fbad21aca44a710
parent 3e42e784
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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();