diff options
author | Andrew Lee <anwlee@google.com> | 2015-03-27 15:12:55 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-03-31 14:28:17 -0700 |
commit | f26fd6d6c6de1f75b33557c6297ee6b5a6e1c112 (patch) | |
tree | 22b7ecd146132ef9de823a5251ea49af0d3fb22c /tests | |
parent | f3b9978f833056d9c56fb070ad498bfd15f8cd8b (diff) | |
download | android_packages_apps_Contacts-f26fd6d6c6de1f75b33557c6297ee6b5a6e1c112.tar.gz android_packages_apps_Contacts-f26fd6d6c6de1f75b33557c6297ee6b5a6e1c112.tar.bz2 android_packages_apps_Contacts-f26fd6d6c6de1f75b33557c6297ee6b5a6e1c112.zip |
Don't return contact photos manager as service.
Initiliaze people activity test by specifying the underlying instance
to be a MockContactPhotosManager.
Bug: 19372817
Change-Id: Ib38a7917df7d0a34e5146e71655bba1ff43a8c16
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/contacts/activities/PeopleActivityTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/src/com/android/contacts/activities/PeopleActivityTest.java b/tests/src/com/android/contacts/activities/PeopleActivityTest.java index 0bcc2057a..bb463e877 100644 --- a/tests/src/com/android/contacts/activities/PeopleActivityTest.java +++ b/tests/src/com/android/contacts/activities/PeopleActivityTest.java @@ -90,8 +90,7 @@ public class PeopleActivityTest InjectedServices services = new InjectedServices(); services.setContentResolver(mContext.getContentResolver()); services.setSharedPreferences(new MockSharedPreferences()); - services.setSystemService(ContactPhotoManager.CONTACT_PHOTO_SERVICE, - new MockContactPhotoManager()); + ContactPhotoManager.injectContactPhotoManagerForTesting(new MockContactPhotoManager()); AccountType accountType = new BaseAccountType() { @Override public boolean areContactsWritable() { |