Searched refs:createNewAdminUser (Results 1 – 3 of 3) sorted by relevance
356 mCarUserManagerHelper.createNewAdminUser(TEST_USER_NAME); in testCreateNewAdminUserCallsCreateUser()366 assertThat(mCarUserManagerHelper.createNewAdminUser(TEST_USER_NAME)).isNull(); in testCreateNewAdminUserReturnsNullUsers()377 assertThat(mCarUserManagerHelper.createNewAdminUser(TEST_USER_NAME)).isEqualTo(newUser); in testCreateNewAdminUserReturnsCreatedUser()385 mCarUserManagerHelper.createNewAdminUser(); in testCreateNewAdminUserWithDefaultUserNameCallsCreateUser()395 assertThat(mCarUserManagerHelper.createNewAdminUser(DEFAULT_ADMIN_NAME)).isNull(); in testCreateNewAdminUserWithDefaultUserNameReturnsNullUsers()406 assertThat(mCarUserManagerHelper.createNewAdminUser()).isEqualTo(newUser); in testCreateNewAdminUserWithDefaultUserNameReturnsCreatedUser()418 UserInfo actualAdmin = mCarUserManagerHelper.createNewAdminUser(newAdminName); in testAdminsCanCreateAdmins()431 assertThat(mCarUserManagerHelper.createNewAdminUser(newAdminName)).isNull(); in testNonAdminsCanNotCreateAdmins()444 UserInfo actualAdmin = mCarUserManagerHelper.createNewAdminUser(newAdminName); in testSystemUserCanCreateAdmins()
773 public UserInfo createNewAdminUser() { in createNewAdminUser() method in CarUserManagerHelper774 return createNewAdminUser(getDefaultAdminName()); in createNewAdminUser()785 public UserInfo createNewAdminUser(String userName) { in createNewAdminUser() method in CarUserManagerHelper911 UserInfo newAdmin = createNewAdminUser(getDefaultAdminName()); in removeLastAdmin()
395 doReturn(admin).when(mCarUserManagerHelper).createNewAdminUser(); in mockAdmin()