GpsHelper { static boolean isClientMetadataPopulated(final Context context) { return ClientMetadata.getInstance(context).isAdvertisingInfoSet(); }  static boolean isLimitAdTrackingEnabled(Context context); static void fetchAdvertisingInfoAsync(final Context context, final GpsHelperListener gpsHelperListener); @Deprecated static void setClassNamesForTesting(); static final int GOOGLE_PLAY_SUCCESS_CODE; static final String ADVERTISING_ID_KEY; static final String IS_LIMIT_AD_TRACKING_ENABLED_KEY; }
@Test public void isClientMetadataPopulated_whenContainsAdvertisingIdKeyAndIsLimitAdTrackingEnabledKey_shouldReturnTrue() throws Exception { verifyCleanClientMetadata(context); populateAndVerifyClientMetadata(context, adInfo); assertThat(GpsHelper.isClientMetadataPopulated(context)).isTrue(); }
@Test public void isClientMetadataPopulated_whenClean_shouldReturnFalse() throws Exception { verifyCleanClientMetadata(context); assertThat(GpsHelper.isClientMetadataPopulated(context)).isFalse(); }