diff options
author | Dmitri Plotnikov <dplotnikov@google.com> | 2010-08-10 17:47:02 -0700 |
---|---|---|
committer | Dmitri Plotnikov <dplotnikov@google.com> | 2010-08-10 17:47:02 -0700 |
commit | b0c9a8a175ca1d3fea593062081b838b6e758339 (patch) | |
tree | 280ad2160d2e6e0ac7d8c9e7d8b5649a45009f8d /tests | |
parent | 09ae48b82b17e24016b14a1ab64706222ab1071f (diff) | |
download | packages_providers_ContactsProvider-b0c9a8a175ca1d3fea593062081b838b6e758339.zip packages_providers_ContactsProvider-b0c9a8a175ca1d3fea593062081b838b6e758339.tar.gz packages_providers_ContactsProvider-b0c9a8a175ca1d3fea593062081b838b6e758339.tar.bz2 |
Fixing broken tests
The breakage was caused mostly by the upgrade to the new version of ICU
Bug: 2894663
Bug: 2894703
Change-Id: If7f28bba8eb1b9aa303e8aa7ec29cf026e51e334
Diffstat (limited to 'tests')
4 files changed, 22 insertions, 14 deletions
diff --git a/tests/assets/test1/expected_contacts.txt b/tests/assets/test1/expected_contacts.txt index ebe4dad..a73f0fe 100644 --- a/tests/assets/test1/expected_contacts.txt +++ b/tests/assets/test1/expected_contacts.txt @@ -10,7 +10,7 @@ 10 starred=0 11 in_visible_group=0 12 has_phone_number=0 -13 lookup=2273r1-523450522C46324E483C32 +13 lookup=2273r1-533551532D47334F493D33 14 } 15 1 { 16 _id=2 @@ -52,5 +52,5 @@ 52 starred=0 53 in_visible_group=1 54 has_phone_number=1 -55 lookup=2187r11-2C3232343248462C46324E483C32 +55 lookup=2187r11-2D3333353349472D47334F493D33 56 } diff --git a/tests/assets/testSynced/expected_contacts.txt b/tests/assets/testSynced/expected_contacts.txt index 8ce6f03..bcb5cf8 100644 --- a/tests/assets/testSynced/expected_contacts.txt +++ b/tests/assets/testSynced/expected_contacts.txt @@ -10,7 +10,7 @@ 10 starred=0 11 in_visible_group=0 12 has_phone_number=0 -13 lookup=2273r1-423444445C52345052 +13 lookup=2273r1-433545455D53355153 14 } 15 1 { 16 _id=2 @@ -94,7 +94,7 @@ 94 starred=0 95 in_visible_group=1 96 has_phone_number=1 -97 lookup=389r7-464852505C463034324654442E344E +97 lookup=389r7-474953515D473135334755452F354F 98 } 99 7 { 100 _id=8 @@ -108,7 +108,7 @@ 108 starred=0 109 in_visible_group=1 110 has_phone_number=1 -111 lookup=389r8-464852505C463034324654442E344E442C3C42 +111 lookup=389r8-474953515D473135334755452F354F452D3D43 112 } 113 8 { 114 _id=9 @@ -122,7 +122,7 @@ 122 starred=0 123 in_visible_group=1 124 has_phone_number=0 -125 lookup=389r9-464852505C46303432442C3C42 +125 lookup=389r9-474953515D47313533452D3D43 126 } 127 9 { 128 _id=10 @@ -136,7 +136,7 @@ 136 starred=0 137 in_visible_group=1 138 has_phone_number=0 -139 lookup=389r10-464852505C46303432 +139 lookup=389r10-474953515D47313533 140 } 141 10 { 142 _id=11 @@ -150,7 +150,7 @@ 150 starred=0 151 in_visible_group=1 152 has_phone_number=1 -153 lookup=389r11-297E297E297E297E297E297E297E297E297E297E +153 lookup=389r11-2A902A902A902A902A902A902A902A902A902A90 154 } 155 11 { 156 _id=12 @@ -164,5 +164,5 @@ 164 starred=0 165 in_visible_group=1 166 has_phone_number=0 -167 lookup=389r12-464852505C4630343238442C3C42304844 +167 lookup=389r12-474953515D4731353339452D3D43314945 168 }
\ No newline at end of file diff --git a/tests/assets/testUnsynced/expected_contacts.txt b/tests/assets/testUnsynced/expected_contacts.txt index 32dfdfb..e6f95ba 100644 --- a/tests/assets/testUnsynced/expected_contacts.txt +++ b/tests/assets/testUnsynced/expected_contacts.txt @@ -10,7 +10,7 @@ 10 starred=0 11 in_visible_group=1 12 has_phone_number=1 -13 lookup=0r1-4654442E344E2C4632442C3C42 +13 lookup=0r1-4755452F354F2D4733452D3D43 14 } 15 1 { 16 _id=2 @@ -24,7 +24,7 @@ 24 starred=0 25 in_visible_group=1 26 has_phone_number=1 -27 lookup=0r2-4654442E344E +27 lookup=0r2-4755452F354F 28 } 29 2 { 30 _id=3 @@ -38,7 +38,7 @@ 38 starred=0 39 in_visible_group=1 40 has_phone_number=0 -41 lookup=0r3-442C3C42 +41 lookup=0r3-452D3D43 42 } 43 3 { 44 _id=4 @@ -52,7 +52,7 @@ 52 starred=0 53 in_visible_group=1 54 has_phone_number=1 -55 lookup=0r4-2988298E298C297E2984298A297C2980 +55 lookup=0r4-2A9A2AA02A9E2A902A962A9C2A8E2A92 56 } 57 4 { 58 _id=5 @@ -66,5 +66,5 @@ 66 starred=0 67 in_visible_group=1 68 has_phone_number=0 -69 lookup=0r5-442C3C42324844304844 +69 lookup=0r5-452D3D43334945314945 70 } diff --git a/tests/src/com/android/providers/contacts/ContactAggregatorPerformanceTest.java b/tests/src/com/android/providers/contacts/ContactAggregatorPerformanceTest.java index 4b8429e..013a706 100644 --- a/tests/src/com/android/providers/contacts/ContactAggregatorPerformanceTest.java +++ b/tests/src/com/android/providers/contacts/ContactAggregatorPerformanceTest.java @@ -17,6 +17,7 @@ package com.android.providers.contacts; import android.content.Context; +import android.content.pm.ApplicationInfo; import android.content.res.Resources; import android.os.Debug; import android.provider.ContactsContract; @@ -71,6 +72,13 @@ public class ContactAggregatorPerformanceTest extends AndroidTestCase { public String getPackageName() { return "no.package"; } + + @Override + public ApplicationInfo getApplicationInfo() { + ApplicationInfo ai = new ApplicationInfo(); + ai.packageName = "contactsTestPackage"; + return ai; + } }; RenamingDelegatingContext targetContextWrapper = new RenamingDelegatingContext(context, targetContext, "perf."); |