summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRicky Wai <rickywai@google.com>2015-03-27 14:27:09 +0000
committerRicky Wai <rickywai@google.com>2015-03-31 12:44:18 +0000
commit42d5b79db882739368b163f4d5f61546d134cdbb (patch)
tree2cf4cdfc9ac5a0f72c274d5675cf9833c3cf9227 /tests
parent2ded4cc7b214d7cddee9d3130744400fcb8cc1f0 (diff)
downloadpackages_providers_ContactsProvider-42d5b79db882739368b163f4d5f61546d134cdbb.zip
packages_providers_ContactsProvider-42d5b79db882739368b163f4d5f61546d134cdbb.tar.gz
packages_providers_ContactsProvider-42d5b79db882739368b163f4d5f61546d134cdbb.tar.bz2
Remove caller-id check in enterprise phone and raw contacts entities
Bug: 19990833 Change-Id: Ibba3a0594262b975b3b4fdd4ebd1fcf1e40ff98a
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/providers/contacts/util/UserUtilsTest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/src/com/android/providers/contacts/util/UserUtilsTest.java b/tests/src/com/android/providers/contacts/util/UserUtilsTest.java
index 4417ad5..7482ee6 100644
--- a/tests/src/com/android/providers/contacts/util/UserUtilsTest.java
+++ b/tests/src/com/android/providers/contacts/util/UserUtilsTest.java
@@ -47,37 +47,37 @@ public class UserUtilsTest extends AndroidTestCase {
final MockUserManager um = mActor.mockUserManager;
// No corp user. Primary only.
- assertEquals(-1, UserUtils.getCorpUserId(c));
+ assertEquals(-1, UserUtils.getCorpUserId(c, false));
// Primary + corp
um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER);
um.myUser = MockUserManager.PRIMARY_USER.id;
- assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c));
+ assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c, false));
um.myUser = MockUserManager.CORP_USER.id;
- assertEquals(-1, UserUtils.getCorpUserId(c));
+ assertEquals(-1, UserUtils.getCorpUserId(c, false));
// Primary + secondary + corp
um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.SECONDARY_USER,
MockUserManager.CORP_USER);
um.myUser = MockUserManager.PRIMARY_USER.id;
- assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c));
+ assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c, false));
um.myUser = MockUserManager.CORP_USER.id;
- assertEquals(-1, UserUtils.getCorpUserId(c));
+ assertEquals(-1, UserUtils.getCorpUserId(c, false));
um.myUser = MockUserManager.SECONDARY_USER.id;
- assertEquals(-1, UserUtils.getCorpUserId(c));
+ assertEquals(-1, UserUtils.getCorpUserId(c, false));
// Primary + secondary
um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.SECONDARY_USER);
um.myUser = MockUserManager.PRIMARY_USER.id;
- assertEquals(-1, UserUtils.getCorpUserId(c));
+ assertEquals(-1, UserUtils.getCorpUserId(c, false));
um.myUser = MockUserManager.SECONDARY_USER.id;
- assertEquals(-1, UserUtils.getCorpUserId(c));
+ assertEquals(-1, UserUtils.getCorpUserId(c, false));
}
}