Home
last modified time | relevance | path

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

12345678910>>...61

/external/aws-sdk-java-v2/bundle-logging-bridge/src/test/java/software/amazon/awssdk/thirdparty/org/slf4j/impl/internal/
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 …]
/external/mockito/src/test/java/org/mockitousage/verification/
DBasicVerificationInOrderTest.java55 inOrder.verify(mockOne).simpleMethod(1); in shouldVerifyInOrder()
56 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrder()
57 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrder()
58 inOrder.verify(mockTwo).simpleMethod(2); in shouldVerifyInOrder()
59 inOrder.verify(mockOne).simpleMethod(4); in shouldVerifyInOrder()
65 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldVerifyInOrderUsingAtLeastOnce()
66 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrderUsingAtLeastOnce()
67 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrderUsingAtLeastOnce()
68 inOrder.verify(mockTwo).simpleMethod(2); in shouldVerifyInOrderUsingAtLeastOnce()
69 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(4); in shouldVerifyInOrderUsingAtLeastOnce()
[all …]
DRelaxedVerificationInOrderTest.java13 import static org.mockito.Mockito.verify;
54 inOrder.verify(mockOne).simpleMethod(1); in shouldVerifyInOrderAllInvocations()
55 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrderAllInvocations()
56 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrderAllInvocations()
57 inOrder.verify(mockTwo).simpleMethod(2); in shouldVerifyInOrderAllInvocations()
58 inOrder.verify(mockOne).simpleMethod(4); in shouldVerifyInOrderAllInvocations()
64 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrderAndBeRelaxed()
65 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrderAndBeRelaxed()
72 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldAllowFirstChunkBeforeLastInvocation()
73 inOrder.verify(mockOne).simpleMethod(4); in shouldAllowFirstChunkBeforeLastInvocation()
[all …]
DVerificationInOrderWithCallsTest.java12 import static org.mockito.Mockito.verify;
34 verifier.verify(mockOne, calls(1)).oneArg(1); in shouldFailWhenMethodNotCalled()
36 // When / Then - expected exception thrown in shouldFailWhenMethodNotCalled()
38 () -> { in shouldFailWhenMethodNotCalled()
39 verifier.verify(mockOne, calls(1)).oneArg(2); in shouldFailWhenMethodNotCalled()
55 verifier.verify(mockOne, calls(1)).oneArg(1); in shouldFailWhenMethodCalledTooFewTimes()
57 // When / Then - expected exception thrown in shouldFailWhenMethodCalledTooFewTimes()
59 () -> { in shouldFailWhenMethodCalledTooFewTimes()
60 verifier.verify(mockOne, calls(2)).oneArg(2); in shouldFailWhenMethodCalledTooFewTimes()
77 verifier.verify(mockOne, calls(1)).oneArg(2); in shouldFailWhenSingleMethodCallsAreOutOfSequence()
[all …]
/external/openthread/tests/toranj/cli/
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 …]
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 …]
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 …]
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 …]
Dtest-400-srp-client-server.py29 from cli import verify
33 # -------------------------------------------------------------------------------------------------…
34 # Test description: joining (as router, end-device, sleepy) - two node network
36 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
37 print('-' * 120)
40 # -------------------------------------------------------------------------------------------------…
51 # -------------------------------------------------------------------------------------------------…
54 server.form('srp-test')
55 verify(server.get_state() == 'leader')
58 verify(client.get_state() == 'router')
[all …]
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 …]
Dtest-021-br-route-prf.py29 from cli import verify
34 # -------------------------------------------------------------------------------------------------…
39 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
40 print('-' * 120)
43 # -------------------------------------------------------------------------------------------------…
52 # -------------------------------------------------------------------------------------------------…
58 leader.form('br-route-prf')
61 verify(leader.get_state() == 'leader')
62 verify(br.get_state() == 'router')
64 # -------------------------------------------------------------------------------------------------…
[all …]
Dtest-020-net-diag-vendor-info.py29 from cli import verify
34 # -------------------------------------------------------------------------------------------------…
39 # r1 ---- r2
42 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
43 print('-' * 120)
46 # -------------------------------------------------------------------------------------------------…
55 # -------------------------------------------------------------------------------------------------…
58 r1.form('netdiag-vendor')
61 verify(r1.get_state() == 'leader')
62 verify(r2.get_state() == 'router')
[all …]
/external/clang/test/Frontend/
Dx86-target-cpu.c3 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu nocona -verify %s
4 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu core2 -verify %s
5 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu penryn -verify %s
6 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu nehalem -verify %s
7 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu westmere -verify %s
8 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu sandybridge -verify %s
9 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu ivybridge -verify %s
10 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu haswell -verify %s
11 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu broadwell -verify %s
12 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bonnell -verify %s
[all …]
/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/async/
DEnvelopeWrappedSdkPublisherTest.java24 import static org.mockito.Mockito.verify;
41 private static final BiFunction<String, String, String> CONCAT_STRINGS = (s1, s2) -> s1 + s2;
56 verify(mockSubscriber, never()).onNext(anyString()); in noPrefixOrSuffix_noEvent()
57 verify(mockSubscriber).onSubscribe(any()); in noPrefixOrSuffix_noEvent()
62 verify(mockSubscriber).onComplete(); in noPrefixOrSuffix_noEvent()
74 verify(mockSubscriber, never()).onNext(anyString()); in noPrefixOrSuffix_singleEvent()
75 verify(mockSubscriber).onSubscribe(any()); in noPrefixOrSuffix_singleEvent()
80 verify(mockSubscriber).onNext("test1"); in noPrefixOrSuffix_singleEvent()
85 verify(mockSubscriber).onComplete(); in noPrefixOrSuffix_singleEvent()
97 verify(mockSubscriber, never()).onNext(anyString()); in noPrefixOrSuffix_multipleEvents()
[all …]
/external/wpa_supplicant_8/src/tls/
Dtlsv1_common.c3 * Copyright (c) 2006-2014, Jouni Malinen <j@w1.fi>
103 * tls_get_cipher_suite - Get TLS cipher suite
136 switch (suite->key_exchange) { in tls_server_key_exchange_allowed()
153 * tls_parse_cert - Parse DER encoded X.509 certificate and get public key
157 * Returns: 0 on success, -1 on failure
178 return -1; in tls_parse_cert()
182 * verify key usage (must allow encryption) in tls_parse_cert()
190 * set on Diffie-Hellman certificates. (PKIX: RFC 3280) in tls_parse_cert()
193 *pk = crypto_public_key_import(cert->public_key, cert->public_key_len); in tls_parse_cert()
199 return -1; in tls_parse_cert()
[all …]
/external/openthread/tests/toranj/ncp/
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 …]
Dtest-100-mcu-power-state.py31 from wpan import verify
33 # -------------------------------------------------------------------------------------------------…
36 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
37 print('-' * 120)
40 # -------------------------------------------------------------------------------------------------…
45 # -------------------------------------------------------------------------------------------------…
50 # -------------------------------------------------------------------------------------------------…
53 # Verify that state is ON after a reset
54 verify(node.get(wpan.WPAN_NCP_MCU_POWER_STATE) == wpan.MCU_POWER_STATE_ON)
56 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[all …]
Dtest-002-form.py29 from wpan import verify
32 # -------------------------------------------------------------------------------------------------…
35 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
36 print('-' * 120)
39 # -------------------------------------------------------------------------------------------------…
47 # -------------------------------------------------------------------------------------------------…
52 # -------------------------------------------------------------------------------------------------…
60 verify(node.get(wpan.WPAN_STATE) == wpan.STATE_OFFLINE)
61 verify(node.get(wpan.WPAN_NAME) == DEFAULT_NAME)
62 verify(node.get(wpan.WPAN_PANID) == DEFAULT_PANID)
[all …]
/external/cronet/stable/third_party/boringssl/src/crypto/evp/
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 …]
/external/cronet/tot/third_party/boringssl/src/crypto/evp/
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 …]
/external/boringssl/src/crypto/evp/
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 …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DHostnameVerifierTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
45 // BEGIN Android-changed: Run tests for both default and strict verifiers. http://b/144694112
59 // END Android-changed: Run tests for both default and strict verifiers. http://b/144694112
61 @Test public void verify() throws Exception { in verify() method in HostnameVerifierTest
63 assertFalse(verifier.verify("localhost", session)); in verify()
69 + "-----BEGIN CERTIFICATE-----\n" in verifyCn()
93 + "-----END CERTIFICATE-----\n"); in verifyCn()
94 // Android-changed: Ignore common name in hostname verification. http://b/70278814 in verifyCn()
95 // assertTrue(verifier.verify("foo.com", session)); in verifyCn()
96 assertFalse(verifier.verify("foo.com", session)); in verifyCn()
[all …]
/external/grpc-grpc-java/testing/src/test/java/io/grpc/testing/
DGrpcCleanupRuleTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
30 import static org.mockito.Mockito.verify;
54 @SuppressWarnings("deprecation") // https://github.com/grpc/grpc-java/issues/7467
111 // verify in singleChannelCleanup()
113 inOrder.verify(statement).evaluate(); in singleChannelCleanup()
114 inOrder.verify(channel).shutdown(); in singleChannelCleanup()
115 inOrder.verify(channel).awaitTermination(anyLong(), any(TimeUnit.class)); in singleChannelCleanup()
116 inOrder.verify(channel).shutdownNow(); in singleChannelCleanup()
138 // verify in singleServerCleanup()
140 inOrder.verify(statement).evaluate(); in singleServerCleanup()
[all …]
/external/sg3_utils/doc/
Dsg_verify.81 .TH SG_VERIFY "8" "December 2019" "sg3_utils\-1.45" SG3_UTILS
3 sg_verify \- invoke SCSI VERIFY command(s) on a block device
6 [\fI\-\-0\fR] [\fI\-\-16\fR] [\fI\-\-bpc=BPC\fR] [\fI\-\-count=COUNT\fR]
7 [\fI\-\-dpo\fR] [\fI\-\-ff\fR] [\fI\-\-ebytchk=BCH\fR] [\fI\-\-group=GN\fR]
8 [\fI\-\-help\fR] [\fI\-\-in=IF\fR] [\fI\-\-lba=LBA\fR] [\fI\-\-ndo=NDO\fR]
9 [\fI\-\-quiet\fR] [\fI\-\-readonly\fR] [\fI\-\-verbose\fR]
10 [\fI\-\-version\fR] [\fI\-\-vrprotect=VRP\fR] \fIDEVICE\fR
14 Sends one or more SCSI VERIFY (10 or 16) commands to \fIDEVICE\fR. These SCSI
15 commands are defined in the SBC\-2 and SBC\-3 standards at https://www.t10.org
16 and SBC\-4 drafts.
[all …]
/external/aws-sdk-java-v2/test/protocol-tests/src/test/java/software/amazon/awssdk/protocol/tests/
DExecutionInterceptorTest.java24 import static com.github.tomakehurst.wiremock.client.WireMock.verify;
78 * Verify that request handler hooks are behaving as expected.
84 private static final String MEMBERS_IN_HEADERS_PATH = "/2016-03-11/membersInHeaders";
85 private static final String STREAMING_INPUT_PATH = "/2016-03-11/streamingInputOperation";
86 private static final String STREAMING_OUTPUT_PATH = "/2016-03-11/streamingOutputOperation";
155 …// to use null for NO-OP marshalling of payloads. This will break streaming POST operations for JS… in async_streamingInput_success_allInterceptorMethodsCalled()
158 …eforeTransmissionArg.requestBody().get().contentStreamProvider().newStream().read()).isEqualTo(-1); in async_streamingInput_success_allInterceptorMethodsCalled()
172 client.streamingOutputOperation(request, (r, i) -> { in sync_streamingOutput_success_allInterceptorMethodsCalled()
174 …// TODO: We have to return "r" here. We should verify other response types are cool once we switch… in sync_streamingOutput_success_allInterceptorMethodsCalled()
210 …assertThatExceptionOfType(SdkServiceException.class).isThrownBy(() -> client.membersInHeaders(requ… in sync_serviceException_failureInterceptorMethodsCalled()
[all …]

12345678910>>...61