Home
last modified time | relevance | path

Searched refs:mMockHttpClient (Results 1 – 8 of 8) sorted by relevance

/packages/modules/OnDevicePersonalization/tests/commontests/src/com/android/odp/module/common/encryption/
DOdpEncryptionKeyManagerTest.java84 @Mock private HttpClient mMockHttpClient; field in OdpEncryptionKeyManagerTest
115 mMockHttpClient, in setUp()
190 .when(mMockHttpClient) in testFetchAndPersistActiveKeys_scheduled_success()
210 .when(mMockHttpClient) in testFetchAndPersistActiveKeys_nonScheduled_success()
273 .when(mMockHttpClient) in testFetchAndPersistActiveKeys_scheduled_throws()
295 .when(mMockHttpClient) in testFetchAndPersistActiveKeys_nonScheduled_throws()
319 .when(mMockHttpClient) in testFetchAndPersistActiveKeys_scheduledNoDeletion()
354 .when(mMockHttpClient) in testFetchAndPersistActiveKeys_nonScheduledNoDeletion()
390 .when(mMockHttpClient) in testFetchAndPersistActiveKeys_scheduledWithDeletion()
430 .when(mMockHttpClient) in testFetchAndPersistActiveKeys_nonScheduledWithDeletion()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/adselection/encryption/
DProtectedServersEncryptionConfigManagerTest.java116 @Mock private AdServicesHttpsClient mMockHttpClient; field in ProtectedServersEncryptionConfigManagerTest
163 mMockHttpClient, in setUp()
280 when(mMockHttpClient.fetchPayloadWithLogging( in test_fetchAndPersistAuctionKey_fetchSuccess_returnsLatestActiveAuctionKey()
309 when(mMockHttpClient.fetchPayloadWithLogging( in test_fetchAndPersistAuctionKey_fetchSuccess_withLogging()
342 when(mMockHttpClient.fetchPayloadWithLogging( in test_multipleCoordinatorKeys_fetchSuccess_returnsLatestActiveAuctionKey()
351 when(mMockHttpClient.fetchPayloadWithLogging( in test_multipleCoordinatorKeys_fetchSuccess_returnsLatestActiveAuctionKey()
404 when(mMockHttpClient.performRequestGetResponseInBase64StringWithLogging( in test_fetchAndPersistJoinKey_fetchSuccess_returnsLatestActiveJoinKey()
434 when(mMockHttpClient.fetchPayloadWithLogging( in test_fetchAndPersistActiveKeysOfType_persistsJey()
533 when(mMockHttpClient.fetchPayloadWithLogging( in test_getLatestOhttpKeyConfigOfType_withNoKeys_returnsLatestKey()
561 when(mMockHttpClient.fetchPayloadWithLogging( in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey()
[all …]
DAdSelectionEncryptionKeyManagerTest.java95 @Mock private AdServicesHttpsClient mMockHttpClient; field in AdSelectionEncryptionKeyManagerTest
133 mMockHttpClient, in setUp()
313 when(mMockHttpClient.fetchPayloadWithLogging( in test_fetchAndPersistAuctionKey_fetchSuccess_returnsLatestActiveAuctionKey()
352 when(mMockHttpClient.performRequestGetResponseInBase64StringWithLogging( in test_fetchAndPersistJoinKey_fetchSuccess_returnsLatestActiveJoinKey()
384 when(mMockHttpClient.fetchPayloadWithLogging( in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey()
400 mMockHttpClient, in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey()
428 when(mMockHttpClient.fetchPayloadWithLogging( in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey()
575 when(mMockHttpClient.fetchPayloadWithLogging( in test_getLatestActiveOhttpKeyConfig_withExpiredKey_shouldFetchAndPersistAndReturnNewKey()
608 when(mMockHttpClient.fetchPayloadWithLogging( in test_getLatestActiveOhttpKeyConfigOfType_withNoKey_shouldFetchPersistAndReturnNewKey()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/errors/
DAggregatedErrorReportingProtocolTest.java117 @Mock private HttpClient mMockHttpClient; field in AggregatedErrorReportingProtocolTest
141 when(mMockHttpClient.performRequestAsyncWithRetry(any())) in reportExceptionData_httpClientFails()
162 when(mMockHttpClient.performRequestAsyncWithRetry(any())) in reportExceptionData_httpClientFailedErrorCode()
184 when(mMockHttpClient.performRequestAsyncWithRetry(any())) in reportExceptionData_httpClientMissingUploadLocation()
217 when(mMockHttpClient.performRequestAsyncWithRetry(any())) in reportExceptionData_httpClientSuccessful()
231 verify(mMockHttpClient, times(2)) in reportExceptionData_httpClientSuccessful()
251 when(mMockHttpClient.performRequestAsyncWithRetry(any())) in reportExceptionData_httpClientTimeout()
378 return mMockHttpClient; in getClient()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/encryption/
DFederatedComputeEncryptionKeyManagerUtilsTest.java66 @Mock private HttpClient mMockHttpClient; field in FederatedComputeEncryptionKeyManagerUtilsTest
117 mMockHttpClient, in testGetInstanceForTesting()
125 mMockHttpClient, in testGetInstanceForTesting()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/
DHttpFederatedProtocolTest.java221 @Mock private HttpClient mMockHttpClient; field in HttpFederatedProtocolTest
258 mMockHttpClient, in setUp()
464 when(mMockHttpClient.performRequestAsyncWithRetry(any())) in testCreateTaskAssignmentFailed()
563 when(mMockHttpClient.performRequestAsyncWithRetry(any())) in testCreateTaskAssignmentRejection()
1248 .when(mMockHttpClient) in setUpHttpFederatedProtocol()
1262 .when(mMockHttpClient) in setUpHttpFederatedProtocol()
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/adselection/
DAuctionServerIntegrationTest.java410 @Mock private AdServicesHttpsClient mMockHttpClient; field in AuctionServerIntegrationTest
1977 when(mMockHttpClient.fetchPayloadWithLogging( in testPersistAdSelectionResult_omitAdsEnabled_success()
2183 when(mMockHttpClient.fetchPayloadWithLogging( in testPersistAdSelectionResult_withChaffAuctionResult_successEmptyUri()
2999 when(mMockHttpClient.fetchPayloadWithLogging( in testGetAdSelectionData_shellCommand_success()
3070 when(mMockHttpClient.fetchPayloadWithLogging( in testPersistAdselectionResult_withCompleteAuction_success()
3170 when(mMockHttpClient.fetchPayloadWithLogging( in testGetAdSelectionData_refreshFlagOn_fetchesNewKey()
3231 verify(mMockHttpClient) in testGetAdSelectionData_refreshFlagOn_fetchesNewKey()
3282 when(mMockHttpClient.fetchPayloadWithLogging( in testGetAdSelectionData_refreshFlagOff_noNetworkCall()
3307 verify(mMockHttpClient, never()) in testGetAdSelectionData_refreshFlagOff_noNetworkCall()
3385 when(mMockHttpClient.fetchPayloadWithLogging( in testGetAdSelectionData_nullCoordinator_success()
[all …]
DOnDeviceAdSelectionRunnerTest.java311 @Mock private AdServicesHttpsClient mMockHttpClient; field in OnDeviceAdSelectionRunnerTest
3415 when(mMockHttpClient.fetchPayload( in testGetDecisionLogic_NotPreDownloaded()
3435 mMockHttpClient, in testGetDecisionLogic_NotPreDownloaded()
3463 verify(mMockHttpClient, times(0)) in testGetDecisionLogic_NotPreDownloaded()