From 75895e73379aa26a3d4135c772af4ecb8a79b4c9 Mon Sep 17 00:00:00 2001 From: Marcus Hagerott Date: Mon, 12 Dec 2016 17:21:57 -0800 Subject: Add AccountInfo class This holds the AccountWithDataSet, AccountType and AccountDisplayInfo for an account because many usages of accounts need all three of these. Test: manually verify that accounts in nav drawer are correct Bug 33627801 Change-Id: I39962f9945714aa7ce48aca97f220f119a1741cd --- .../contacts/test/mocks/MockAccountTypeManager.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/src/com') diff --git a/tests/src/com/android/contacts/test/mocks/MockAccountTypeManager.java b/tests/src/com/android/contacts/test/mocks/MockAccountTypeManager.java index e1c370af4..956f775b4 100644 --- a/tests/src/com/android/contacts/test/mocks/MockAccountTypeManager.java +++ b/tests/src/com/android/contacts/test/mocks/MockAccountTypeManager.java @@ -18,6 +18,7 @@ package com.android.contacts.test.mocks; import android.accounts.Account; import com.android.contacts.model.AccountTypeManager; +import com.android.contacts.model.account.AccountInfo; import com.android.contacts.model.account.AccountType; import com.android.contacts.model.account.AccountTypeWithDataSet; import com.android.contacts.model.account.AccountWithDataSet; @@ -70,19 +71,18 @@ public class MockAccountTypeManager extends AccountTypeManager { } @Override - public List getAccounts(Predicate filter) { - return Lists.newArrayList(Collections2.filter(Arrays.asList(mAccounts), filter)); + public ListenableFuture> getAccountsAsync() { + throw new UnsupportedOperationException("not implemented"); } @Override - public ListenableFuture> getAllAccountsAsync() { - return Futures.immediateFuture(Arrays.asList(mAccounts)); + public ListenableFuture> filterAccountsAsync(Predicate filter) { + throw new UnsupportedOperationException("not implemented"); } @Override - public ListenableFuture> filterAccountsByTypeAsync( - Predicate type) { - return Futures.immediateFuture(Arrays.asList(mAccounts)); + public AccountInfo getAccountInfoForAccount(AccountWithDataSet account) { + throw new UnsupportedOperationException("not implemented"); } @Override -- cgit v1.2.3