diff options
author | Dmitri Plotnikov <dplotnikov@google.com> | 2010-08-13 11:57:09 -0700 |
---|---|---|
committer | Dmitri Plotnikov <dplotnikov@google.com> | 2010-08-13 11:57:09 -0700 |
commit | 8727a729d5c0e875538025f0a85b3ac64c3a7745 (patch) | |
tree | 0c70de04939c72e3af5c0052e12a2b5b1cdc591b /tests | |
parent | 76dfa406e2cde19c824983c37fc92c1c5bf63eec (diff) | |
download | packages_providers_ContactsProvider-8727a729d5c0e875538025f0a85b3ac64c3a7745.zip packages_providers_ContactsProvider-8727a729d5c0e875538025f0a85b3ac64c3a7745.tar.gz packages_providers_ContactsProvider-8727a729d5c0e875538025f0a85b3ac64c3a7745.tar.bz2 |
Fixes following some breakage caused by CL 60952
Change-Id: Ia9fe3a477ab3e4e141773432a969d67168fd6155
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/providers/contacts/ContactAggregatorTest.java | 2 | ||||
-rw-r--r-- | tests/src/com/android/providers/contacts/LegacyContactImporterPerformanceTest.java | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/src/com/android/providers/contacts/ContactAggregatorTest.java b/tests/src/com/android/providers/contacts/ContactAggregatorTest.java index 8f68ed9..00bd5d3 100644 --- a/tests/src/com/android/providers/contacts/ContactAggregatorTest.java +++ b/tests/src/com/android/providers/contacts/ContactAggregatorTest.java @@ -910,7 +910,7 @@ public class ContactAggregatorTest extends BaseContactsProvider2Test { .addParameter(AggregationSuggestions.PARAMETER_MATCH_NICKNAME, "nickname1") .setLimit(7) .build(); - assertEquals("content://com.android.contacts/contacts/-1/suggestions?" + assertEquals("content://com.android.contacts/contacts/0/suggestions?" + "limit=7" + "&query=name%3Aname1" + "&query=name%3Aname2" diff --git a/tests/src/com/android/providers/contacts/LegacyContactImporterPerformanceTest.java b/tests/src/com/android/providers/contacts/LegacyContactImporterPerformanceTest.java index 3919770..50ba389 100644 --- a/tests/src/com/android/providers/contacts/LegacyContactImporterPerformanceTest.java +++ b/tests/src/com/android/providers/contacts/LegacyContactImporterPerformanceTest.java @@ -18,6 +18,7 @@ package com.android.providers.contacts; import android.content.ContentProvider; import android.content.Context; +import android.content.pm.ApplicationInfo; import android.content.res.Resources; import android.os.Debug; import android.provider.CallLog; @@ -72,6 +73,13 @@ public class LegacyContactImporterPerformanceTest 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_imp."); |