Searched refs:mBackupObserverMock (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | BackupObserverUtilsTest.java | 43 private IBackupObserver mBackupObserverMock; field in BackupObserverUtilsTest 60 BackupObserverUtils.sendBackupOnUpdate(mBackupObserverMock, PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_callsObserver() 62 verify(mBackupObserverMock).onUpdate(PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_callsObserver() 67 doThrow(new RemoteException()).when(mBackupObserverMock).onUpdate(PACKAGE_NAME, in sendBackupOnUpdate_handlesRemoteException() 70 BackupObserverUtils.sendBackupOnUpdate(mBackupObserverMock, PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_handlesRemoteException() 72 verify(mBackupObserverMock).onUpdate(PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_handlesRemoteException() 84 BackupObserverUtils.sendBackupOnPackageResult(mBackupObserverMock, PACKAGE_NAME, 1); in sendBackupOnPackageResult_callsObserver() 86 verify(mBackupObserverMock).onResult(PACKAGE_NAME, 1); in sendBackupOnPackageResult_callsObserver() 91 doThrow(new RemoteException()).when(mBackupObserverMock).onResult(PACKAGE_NAME, 1); in sendBackupOnPackageResult_handlesRemoteException() 93 BackupObserverUtils.sendBackupOnPackageResult(mBackupObserverMock, PACKAGE_NAME, 1); in sendBackupOnPackageResult_handlesRemoteException() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | TrampolineTest.java | 115 private IBackupObserver mBackupObserverMock; field in TrampolineTest 1217 PACKAGE_NAMES, mBackupObserverMock, mBackupManagerMonitorMock, 123)); in requestBackup_calledBeforeInitialize_ignored() 1224 mBackupObserverMock, mBackupManagerMonitorMock, 123)).thenReturn(456); in requestBackupForUser_forwarded() 1228 mBackupObserverMock, mBackupManagerMonitorMock, 123)); in requestBackupForUser_forwarded() 1230 mBackupObserverMock, mBackupManagerMonitorMock, 123); in requestBackupForUser_forwarded() 1237 mBackupObserverMock, mBackupManagerMonitorMock, 123)).thenReturn(456); in requestBackup_forwardedToCallingUserId() 1241 mBackupObserverMock, mBackupManagerMonitorMock, 123)); in requestBackup_forwardedToCallingUserId() 1243 mBackupObserverMock, mBackupManagerMonitorMock, 123); in requestBackup_forwardedToCallingUserId()
|