diff options
author | Anne Rong <annerong@google.com> | 2015-08-21 21:27:23 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-08-21 21:27:23 +0000 |
commit | 5940931e48a615952f589ae1427a0995ac9d0b41 (patch) | |
tree | 5b093599015a700b48ab5cb794e47c4f748d2b2d /tests/src | |
parent | b3342e14d3bfb6dd9a9133ece30350e2781dddac (diff) | |
parent | 7e488f53b356e04b83ea34549ffcba27d850eb9a (diff) |
Merge "FilteredNumberProvider authority name & filtered_number_table changes"
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/dialer/database/FilteredNumberProviderTest.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/src/com/android/dialer/database/FilteredNumberProviderTest.java b/tests/src/com/android/dialer/database/FilteredNumberProviderTest.java index 94bf6e6c2..5184930f7 100644 --- a/tests/src/com/android/dialer/database/FilteredNumberProviderTest.java +++ b/tests/src/com/android/dialer/database/FilteredNumberProviderTest.java @@ -32,7 +32,8 @@ public class FilteredNumberProviderTest extends private static final String TIME_ZONE_AMERICA_LOS_ANGELES = "America/Los_Angeles"; private static final String DEFAULT_TIMEZONE = TIME_ZONE_AMERICA_LOS_ANGELES; private static final String DEFAULT_COUNTRY_ISO = "US"; - private static final String TEST_NUMBER = "+1234567890"; + private static final String TEST_NUMBER = "234567890"; + private static final String TEST_NORMALIZED_NUMBER = "+1234567890"; private static final long TEST_TIME = 1439936706; public FilteredNumberProviderTest () { @@ -141,7 +142,7 @@ public class FilteredNumberProviderTest extends v.put(FilteredNumberContract.FilteredNumberColumns.LAST_TIME_FILTERED, TEST_TIME); int rows = mResolver.update(FilteredNumberContract.FilteredNumber.CONTENT_URI, v, FilteredNumberContract.FilteredNumberColumns.NORMALIZED_NUMBER + " = ?", - new String[]{TEST_NUMBER}); + new String[]{TEST_NORMALIZED_NUMBER}); assertEquals(rows, 1); ContentValues expected = getTestValues(TEST_TIME); @@ -186,7 +187,9 @@ public class FilteredNumberProviderTest extends private ContentValues getTestValues(Long timeNow) { ContentValues v = new ContentValues(); v.putNull(FilteredNumberContract.FilteredNumberColumns._ID); - v.put(FilteredNumberContract.FilteredNumberColumns.NORMALIZED_NUMBER, TEST_NUMBER); + v.put(FilteredNumberContract.FilteredNumberColumns.NORMALIZED_NUMBER, + TEST_NORMALIZED_NUMBER); + v.put(FilteredNumberContract.FilteredNumberColumns.NUMBER, TEST_NUMBER); v.put(FilteredNumberContract.FilteredNumberColumns.COUNTRY_ISO, DEFAULT_COUNTRY_ISO); v.put(FilteredNumberContract.FilteredNumberColumns.TIMES_FILTERED, 0); v.putNull(FilteredNumberContract.FilteredNumberColumns.LAST_TIME_FILTERED); |