Merge "Track changes in libcore" into pi-dev am: ea2ef1af44

am: 082dd24a7e

Change-Id: Id30429da4c06994f92bab507bc2e80ca6040f10c
This commit is contained in:
Neil Fuller
2018-03-15 19:09:56 +00:00
committed by android-build-merger

View File

@@ -73,13 +73,13 @@ public class TimeZoneDataTest {
CountryTimeZones US = mock(CountryTimeZones.class); CountryTimeZones US = mock(CountryTimeZones.class);
when(US.getCountryIso()).thenReturn("us"); when(US.getCountryIso()).thenReturn("us");
when(US.getTimeZoneMappings()).thenReturn(Arrays.asList( when(US.getTimeZoneMappings()).thenReturn(Arrays.asList(
TimeZoneMapping.createForTests("Unknown/Secret_City", true), TimeZoneMapping.createForTests("Unknown/Secret_City", true, null /* notUsedAfter */),
TimeZoneMapping.createForTests("Unknown/Secret_City2", false) TimeZoneMapping.createForTests("Unknown/Secret_City2", false, null /* notUsedAfter */)
)); ));
CountryTimeZones GB = mock(CountryTimeZones.class); CountryTimeZones GB = mock(CountryTimeZones.class);
when(GB.getCountryIso()).thenReturn("gb"); when(GB.getCountryIso()).thenReturn("gb");
when(GB.getTimeZoneMappings()).thenReturn(Collections.singletonList( when(GB.getTimeZoneMappings()).thenReturn(Collections.singletonList(
TimeZoneMapping.createForTests("Unknown/Secret_City", true) TimeZoneMapping.createForTests("Unknown/Secret_City", true, null /* notUsedAfter */)
)); ));
when(mCountryZonesFinder.lookupCountryTimeZonesForZoneId("Unknown/Secret_City")) when(mCountryZonesFinder.lookupCountryTimeZonesForZoneId("Unknown/Secret_City"))
.thenReturn(Arrays.asList(US, GB)); .thenReturn(Arrays.asList(US, GB));