Home
last modified time | relevance | path

Searched +full:- +full:- +full:verify (Results 1 – 25 of 1846) sorted by relevance

12345678910>>...74

/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/retry/
DResultAggregatorTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
109 LogFile beforeModule = new LogFile("before-module", "url", LogDataType.TEXT); in testForwarding()
111 LogFile test2LogBefore = new LogFile("test2-before", "url", LogDataType.TEXT); in testForwarding()
112 LogFile test2LogAfter = new LogFile("test2-after", "url", LogDataType.TEXT); in testForwarding()
113 LogFile testRun1LogBefore = new LogFile("test-run1-before", "url", LogDataType.TEXT); in testForwarding()
114 LogFile testRun1LogAfter = new LogFile("test-run1-after", "url", LogDataType.TEXT); in testForwarding()
116 LogFile betweenAttemptsLog = new LogFile("between-attempts", "url", LogDataType.TEXT); in testForwarding()
117 LogFile moduleLog = new LogFile("module-log", "url", LogDataType.TEXT); in testForwarding()
130 Mockito.contains("aggregated-events"), in testForwarding()
135 Mockito.contains("detailed-events"), in testForwarding()
[all …]
/aosp_15_r20/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DCardEmulationManagerTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
37 import static org.mockito.Mockito.verify;
191 verify(mRoutingOptionManager).getOffHostRouteEse(); in assertConstructorMethodCalls()
192 verify(mRoutingOptionManager).getOffHostRouteUicc(); in assertConstructorMethodCalls()
193 verify(mRegisteredServicesCache).initialize(); in assertConstructorMethodCalls()
194 verify(mRegisteredNfcFServicesCache).initialize(); in assertConstructorMethodCalls()
195 verify(mWalletRoleObserver).isWalletRoleFeatureEnabled(); in assertConstructorMethodCalls()
196 verify(mWalletRoleObserver).getDefaultWalletRoleHolder(eq(USER_ID)); in assertConstructorMethodCalls()
197 verify(mPreferredServices) in assertConstructorMethodCalls()
199 verify(mRegisteredAidCache) in assertConstructorMethodCalls()
[all …]
/aosp_15_r20/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
H A DAppStateTrackerTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
36 import static org.mockito.Mockito.verify;
204 inv -> new ArrayList<PackageOps>();
220 mMainHandler.post(() -> { in waitUntilMainHandlerDrain()
234 .thenAnswer(inv -> { in newInstance()
249 .thenAnswer(inv -> getPowerSaveState()); in callStart()
272 verify(mMockIActivityManager).registerUidObserver( in callStart()
279 verify(mMockIAppOpsService).startWatchingMode( in callStart()
283 verify(mMockPowerManagerInternal).registerLowPowerModeObserver( in callStart()
287 verify(mMockContext, times(2)).registerReceiver( in callStart()
[all …]
/aosp_15_r20/external/aws-sdk-java-v2/bundle-logging-bridge/src/test/java/software/amazon/awssdk/thirdparty/org/slf4j/impl/internal/
H A DLoggerAdapterTest.java20 import static org.mockito.Mockito.verify;
47 verify(mockLogger).getName(); in getName_delegatesCall()
54 verify(mockLogger).isTraceEnabled(); in isTraceEnabled_delegatesCall()
58 verify(mockLogger).isTraceEnabled(markerAdapter.getUnshaded()); in isTraceEnabled_delegatesCall()
65 verify(mockLogger).isDebugEnabled(); in isDebugEnabled_delegatesCall()
69 verify(mockLogger).isDebugEnabled(markerAdapter.getUnshaded()); in isDebugEnabled_delegatesCall()
77 verify(mockLogger).isInfoEnabled(); in isInfoEnabled_delegatesCall()
81 verify(mockLogger).isInfoEnabled(markerAdapter.getUnshaded()); in isInfoEnabled_delegatesCall()
88 verify(mockLogger).isWarnEnabled(); in isWarnEnabled_delegatesCall()
92 verify(mockLogger).isWarnEnabled(markerAdapter.getUnshaded()); in isWarnEnabled_delegatesCall()
[all …]
/aosp_15_r20/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/utils/
H A DWatcherTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
140 // Basic test. Create a leaf and verify that changes to the leaf get notified to in testBasicBehavior()
143 tester.verify(0, "Initial leaf - no registration"); in testBasicBehavior()
145 tester.verify(0, "Updates with no registration"); in testBasicBehavior()
148 tester.verify(1, "Updates with registration"); in testBasicBehavior()
151 tester.verify(3, "Updates with registration"); in testBasicBehavior()
152 // Create a snapshot. Verify that the snapshot matches the in testBasicBehavior()
157 tester.verify(4, "Tick after snapshot"); in testBasicBehavior()
158 verifySealed("Leaf", ()->leafASnapshot.tick()); in testBasicBehavior()
160 // Add the same leaf to more than one tester. Verify that a change to the leaf is seen by in testBasicBehavior()
[all …]
/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
62 import static org.mockito.Mockito.verify;
209 private static final String TEST_NETWORK_NAME = "DIRECT-xy-NEW";
334 // for fast-connection connect command in generatorTestData()
336 .setNetworkName("DIRECT-XY-HELLO") in generatorTestData()
358 group2.setNetworkName("DIRECT-ab-Hello"); in generatorTestData()
365 group3.setNetworkName("DIRECT-cd-OWNER"); in generatorTestData()
373 mTestThisDevice.primaryDeviceType = "10-0050F204-5"; in generatorTestData()
390 * Simulate Wi-Fi state change: broadcast state change and modify the API return value.
1162 verify(mTetheringManager).registerTetheringEventCallback(any(Executor.class), in forceP2pEnabled()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
88 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
297 // Default to use PPAPI consent to test migration-irrelevant logics. in setup()
309 .when(() -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false))); in setup()
313 () -> in setup()
316 doNothing().when(() -> AggregateReportingJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
319 () -> in setup()
324 () -> in setup()
327 doNothing().when(() -> ReportingJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
328 doNothing().when(() -> AttributionFallbackJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
[all …]
DConsentManagerV2Test.java8 * http://www.apache.org/licenses/LICENSE-2.0
79 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
292 // Default to use PPAPI consent to test migration-irrelevant logic. in setup()
303 .when(() -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false))); in setup()
307 () -> in setup()
310 doNothing().when(() -> AggregateReportingJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
313 () -> in setup()
318 () -> in setup()
321 doNothing().when(() -> ReportingJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
322 doNothing().when(() -> AttributionFallbackJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
[all …]
/aosp_15_r20/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
89 import static org.mockito.Mockito.verify;
173 private static final int ERROR_NOT_SET = -1;
201 private static final String TEST_INTERFACE_NAME = "test-wlan0";
246 // SoftApConfiguration#toWifiConfiguration() creates a config with an unquoted UTF-8 SSID in compareWifiAndSoftApConfiguration()
248 // we need to compare the wifi config SSID directly with the unquoted UTF-8 text. in compareWifiAndSoftApConfiguration()
320 verify(mWifiService).getVerboseLoggingLevel(); in setUp()
328 mWifiStateChangedListener = () -> mRunnable.run(); in setUp()
371 verify(mWifiService).setCoexUnsafeChannels(unsafeChannels, restrictions); in testSetCoexUnsafeChannelsGoesToWifiServiceImpl()
375 * Verify an IllegalArgumentException if passed a null value for unsafeChannels.
[all …]
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDeviceSetupTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
27 import static org.mockito.Mockito.verify;
87 setter.setOptionValue("optimized-property-setting", Boolean.toString(false)); in setUp()
109 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup()
113 "Set prop doesn't contain ro.telephony.disable-call=true", in testSetup()
114 setProp.contains("ro.telephony.disable-call=true\n")); in testSetup()
132 verify(mMockDevice).setSetting("global", "airplane_mode_on", "1"); in testSetup_airplane_mode_on()
133 verify(mMockDevice) in testSetup_airplane_mode_on()
135 "am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true"); in testSetup_airplane_mode_on()
136 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_airplane_mode_on()
[all …]
/aosp_15_r20/external/openthread/tests/toranj/cli/
H A Dtest-019-netdata-context-id.py29 from cli import verify
34 # -------------------------------------------------------------------------------------------------…
39 # r1 ---- r2 ---- r3
42 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
43 print('-' * 120)
46 # -------------------------------------------------------------------------------------------------…
56 # -------------------------------------------------------------------------------------------------…
70 verify(r1.get_state() == 'leader')
71 verify(r2.get_state() == 'router')
72 verify(r3.get_state() == 'router')
[all …]
H A Dtest-018-next-hop-and-path-cost.py29 from cli import verify
34 # -------------------------------------------------------------------------------------------------…
39 # r1 ---- r2...2...r3
42 # fed1 fed2 r4...1...r5 ---- fed3
44 # Link r2 --> r3 is configured to be at link quality of 2.
45 # Link r5 --> r4 is configured to be at link quality of 1.
46 # Link r1 --> fed2 is configured to be at link quality 1.
50 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
51 print('-' * 120)
54 # -------------------------------------------------------------------------------------------------…
[all …]
H A Dtest-016-child-mode-change.py29 from cli import verify
34 # -------------------------------------------------------------------------------------------------…
37 # Verify device mode change on children.
40 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
41 print('-' * 120)
44 # -------------------------------------------------------------------------------------------------…
54 # -------------------------------------------------------------------------------------------------…
61 verify(parent.get_state() == 'leader')
62 verify(child1.get_state() == 'child')
63 verify(child2.get_state() == 'child')
[all …]
H A Dtest-009-router-table.py29 from cli import verify
34 # -------------------------------------------------------------------------------------------------…
37 # Verify router table entries.
39 # r1 ------ r2 ---- r6
43 # r3 ------ r4 ----- r5
47 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
48 print('-' * 120)
51 # -------------------------------------------------------------------------------------------------…
64 # -------------------------------------------------------------------------------------------------…
89 verify(r1.get_state() == 'leader')
[all …]
H A Dtest-014-address-resolver.py29 from cli import verify
34 # -------------------------------------------------------------------------------------------------…
43 # r3 ---- r1 ---- r2
49 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
50 print('-' * 120)
53 # -------------------------------------------------------------------------------------------------…
65 # -------------------------------------------------------------------------------------------------…
92 verify(r1.get_state() == 'leader')
93 verify(r2.get_state() == 'router')
94 verify(r3.get_state() == 'router')
[all …]
/aosp_15_r20/external/boringssl/src/crypto/evp/
H A Devp_tests.txt6 PrivateKey = RSA-2048
13 PublicKey = RSA-2048-SPKI
20 PublicKey = RSA-2048-SPKI-Negative
25 PublicKey = RSA-2048-Even-Modulus
30 PublicKey = RSA-2048-SPKI-Invalid
34 # The same key but with an incorrectly-encoded length prefix.
35 PublicKey = RSA-2048-SPKI-Invalid2
40 PrivateKey = RSA-512
47 PrivateKey = RSA-515
53 # EC P-256 key
[all …]
/aosp_15_r20/external/cronet/third_party/boringssl/src/crypto/evp/
H A Devp_tests.txt6 PrivateKey = RSA-2048
13 PublicKey = RSA-2048-SPKI
20 PublicKey = RSA-2048-SPKI-Negative
25 PublicKey = RSA-2048-Even-Modulus
30 PublicKey = RSA-2048-SPKI-Invalid
34 # The same key but with an incorrectly-encoded length prefix.
35 PublicKey = RSA-2048-SPKI-Invalid2
40 PrivateKey = RSA-512
47 PrivateKey = RSA-515
53 # EC P-256 key
[all …]
/aosp_15_r20/external/mockito/src/test/java/org/mockitousage/verification/
H A DBasicVerificationInOrderTest.java47 inOrder.verify(mockOne).simpleMethod(1); in shouldVerifyInOrder()
48 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrder()
49 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrder()
50 inOrder.verify(mockTwo).simpleMethod(2); in shouldVerifyInOrder()
51 inOrder.verify(mockOne).simpleMethod(4); in shouldVerifyInOrder()
57 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldVerifyInOrderUsingAtLeastOnce()
58 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrderUsingAtLeastOnce()
59 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrderUsingAtLeastOnce()
60 inOrder.verify(mockTwo).simpleMethod(2); in shouldVerifyInOrderUsingAtLeastOnce()
61 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(4); in shouldVerifyInOrderUsingAtLeastOnce()
[all …]
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DHostTestTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
27 import static org.mockito.Mockito.verify;
133 @Option(name = "dynamic-option")
149 @Option(name = "test-option")
152 @Option(name = "list-option")
155 @Option(name = "map-option")
165 addTestMetric("test-option", testOption); in testPass2()
168 addTestMetric("list-option", listOption.toString()); in testPass2()
171 addTestMetric("map-option", mapOption.toString()); in testPass2()
214 @Option(name = "junit4-option")
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/
DUxEngineTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
34 import static org.mockito.Mockito.verify;
96 ExtendedMockito.doReturn(mConsentManager).when(() -> ConsentManager.getInstance()); in setup()
104 () -> in setup()
110 () -> in setup()
113 () -> in setup()
116 .when(() -> BackgroundJobsManager.scheduleMeasurementBackgroundJobs(any())); in setup()
117 ExtendedMockito.doNothing().when(() -> UiStatsLogger.logEntryPointClicked()); in setup()
154 verify(mUxStatesManager).persistAdServicesStates(adServicesStates); in startTest_uxDisabled()
157 verify(mUxStatesManager).getFlag(KEY_ADSERVICES_ENABLED); in startTest_uxDisabled()
[all …]
/aosp_15_r20/tools/test/connectivity/acts_tests/tests/google/nr/cbr/
DCellBroadcastTest.py3 # Copyright 2020 - Google
9 # http://www.apache.org/licenses/LICENSE-2.0
164 INVALID_SUBSCRIPTION_ID = -1
325 ad.adb.shell("am start -a %s -n %s/%s" % (MAIN_ACTIVITY, CBR_PACKAGE, CBR_ACTIVITY))
330 ad.adb.shell("kill -9 %s" % pid, ignore_status=True)
364 # verify adb property
381 ad.log.error("UI - %s missing", alert_text)
386 ad.log.info("UI - %s, default: %s",
389 ad.log.error("UI - %s, default: %s, expected: %s",
406 ad.log.error("UI - %s missing", alert_text)
[all …]
/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
82 import static org.mockito.Mockito.verify;
252 private static final int TEST_RSSI = -54;
268 private static final int RSSI_THRESHOLD_MAX = -30;
269 private static final int RSSI_THRESHOLD_MIN = -76;
271 private static final byte RSSI_THRESHOLD_BREACH_MIN = -80;
272 private static final byte RSSI_THRESHOLD_BREACH_MAX = -20;
283 "https://policies.google.com/terms?hl=en-US";
285 "https://www.android.com/android-11/";
429 Log.d(TAG, "ClientModeImpl state -" + stream.toString()); in dumpState()
[all …]
DWifiNetworkFactoryTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
54 import static org.mockito.Mockito.verify;
243 // added for non-VCN-underlying network factory/agent implementations. in setUp()
290 doAnswer(invocation -> { in setUp()
300 new WorkSource(Process.SYSTEM_UID, "system-service")); in setUp()
313 verify(mWifiDeviceStateChangeManager, atLeastOnce()).registerStateChangeCallback( in setUp()
318 verify(mWifiInjector).makeNetworkRequestStoreData(dataSourceArgumentCaptor.capture()); in setUp()
323 verify(mActiveModeWarden).registerModeChangeCallback( in setUp()
331 verify(mConnectivityManager).registerNetworkProvider( in setUp()
373 // First network request should turn on auto-join. in testHandleNetworkRequestWithNoSpecifier()
[all …]
/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
43 import static org.mockito.Mockito.verify;
183 * Using instead of spy to avoid native crash failures - possibly due to
194 * Return the fake UID instead of the real one: pseudo-spy
255 verify(mockContext).registerReceiver(bcastRxCaptor.capture(), in setUp()
256 argThat(filter -> filter.hasAction(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED))); in setUp()
257 verify(mockContext).registerReceiverForAllUsers(bcastRxCaptor.capture(), in setUp()
258 argThat(filter -> filter.hasAction(LocationManager.MODE_CHANGED_ACTION)), in setUp()
263 verify(mockHalDeviceManager).registerRttControllerLifecycleCallback( in setUp()
266 verify(mockRttControllerHal).registerRangingResultsCallback( in setUp()
[all …]
/aosp_15_r20/external/openthread/tests/toranj/ncp/
H A Dtest-039-address-cache-table-snoop.py31 from wpan import verify
33 # -------------------------------------------------------------------------------------------------…
40 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
41 print('-' * 120)
44 # -------------------------------------------------------------------------------------------------…
57 # -------------------------------------------------------------------------------------------------…
62 # -------------------------------------------------------------------------------------------------…
65 # r3 ---- r1 ---- r2
99 # -------------------------------------------------------------------------------------------------…
119 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[all …]

12345678910>>...74