Home
last modified time | relevance | path

Searched refs:invocations (Results 1 – 25 of 614) sorted by relevance

12345678910>>...25

/external/libese/apps/boot/tests/
Dese_app_boot_tests.cpp51 EXPECT_NE(0UL, invocations.size()); in EseTransceive()
52 if (!invocations.size()) in EseTransceive()
54 const struct Invocation &invocation = invocations.at(0); in EseTransceive()
65 invocations.erase(invocations.begin()); in EseTransceive()
74 std::vector<Invocation> invocations; member in FakeTransceive
88 trans_.invocations.resize(0); in TearDown()
101 trans_.invocations.resize(2); in TEST_F()
103 trans_.invocations[0].expected_tx.resize(kManageChannelOpenLength); in TEST_F()
104 memcpy(trans_.invocations[0].expected_tx.data(), kManageChannelOpen, in TEST_F()
106 trans_.invocations[0].rx.resize(3); in TEST_F()
[all …]
/external/mockito/src/main/java/org/mockito/internal/invocation/
DInvocationsFinder.java23 …public static List<Invocation> findInvocations(List<Invocation> invocations, MatchableInvocation w… in findInvocations() argument
24 return ListUtil.filter(invocations, new RemoveNotMatching(wanted)); in findInvocations()
27 …public static List<Invocation> findAllMatchingUnverifiedChunks(List<Invocation> invocations, Match… in findAllMatchingUnverifiedChunks() argument
28 List<Invocation> unverified = removeVerifiedInOrder(invocations, orderingContext); in findAllMatchingUnverifiedChunks()
47 …public static List<Invocation> findMatchingChunk(List<Invocation> invocations, MatchableInvocation… in findMatchingChunk() argument
48 List<Invocation> unverified = removeVerifiedInOrder(invocations, context); in findMatchingChunk()
52 return findAllMatchingUnverifiedChunks(invocations, wanted, context); in findMatchingChunk()
70 …public static Invocation findFirstMatchingUnverifiedInvocation(List<Invocation> invocations, Match… in findFirstMatchingUnverifiedInvocation() argument
71 for( Invocation invocation : removeVerifiedInOrder( invocations, context )){ in findFirstMatchingUnverifiedInvocation()
79 …public static Invocation findSimilarInvocation(List<Invocation> invocations, MatchableInvocation w… in findSimilarInvocation() argument
[all …]
/external/mockito/src/test/java/org/mockito/internal/invocation/
DInvocationsFinderTest.java31 private LinkedList<Invocation> invocations = new LinkedList<Invocation>(); field in InvocationsFinderTest
46invocations.addAll(Arrays.asList(simpleMethodInvocation, simpleMethodInvocationTwo, differentMetho… in setup()
52 …List<Invocation> actual = InvocationsFinder.findInvocations(invocations, new InvocationMatcher(sim… in shouldFindActualInvocations()
55 …actual = InvocationsFinder.findInvocations(invocations, new InvocationMatcher(differentMethodInvoc… in shouldFindActualInvocations()
61 assertSame(simpleMethodInvocation, InvocationsFinder.findFirstUnverified(invocations)); in shouldFindFirstUnverifiedInvocation()
66 assertSame(differentMethodInvocation, InvocationsFinder.findFirstUnverified(invocations)); in shouldFindFirstUnverifiedInvocation()
69 assertNull(InvocationsFinder.findFirstUnverified(invocations)); in shouldFindFirstUnverifiedInvocation()
76 …rtSame(simpleMethodInvocation, InvocationsFinder.findFirstUnverifiedInOrder(context, invocations)); in shouldFindFirstUnverifiedInOrder()
83 …ame(differentMethodInvocation, InvocationsFinder.findFirstUnverifiedInOrder(context, invocations)); in shouldFindFirstUnverifiedInOrder()
89 assertNull(InvocationsFinder.findFirstUnverifiedInOrder(context, invocations)); in shouldFindFirstUnverifiedInOrder()
[all …]
/external/mockito/src/main/java/org/mockito/internal/verification/
DDefaultRegisteredInvocations.java22 private final LinkedList<Invocation> invocations = new LinkedList<Invocation>(); field in DefaultRegisteredInvocations
25 synchronized (invocations) { in add()
26 invocations.add(invocation); in add()
32 synchronized (invocations) { in removeLast()
33 if (! invocations.isEmpty()) { in removeLast()
34 invocations.removeLast(); in removeLast()
41 synchronized (invocations) { in getAll()
42 copiedList = new LinkedList<Invocation>(invocations) ; in getAll()
49 synchronized (invocations) { in clear()
50 invocations.clear(); in clear()
[all …]
DOnly.java25 List<Invocation> invocations = data.getAllInvocations(); in verify() local
26 List<Invocation> chunk = findInvocations(invocations,target); in verify()
27 if (invocations.size() != 1 && !chunk.isEmpty()) { in verify()
28 Invocation unverified = findFirstUnverified(invocations); in verify()
29 throw noMoreInteractionsWanted(unverified, (List) invocations); in verify()
31 if (invocations.size() != 1 || chunk.isEmpty()) { in verify()
DVerificationDataImpl.java21 private final InvocationContainerImpl invocations; field in VerificationDataImpl
23 public VerificationDataImpl(InvocationContainerImpl invocations, InvocationMatcher wanted) { in VerificationDataImpl() argument
24 this.invocations = invocations; in VerificationDataImpl()
31 return invocations.getInvocations(); in getAllInvocations()
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/
DNumberOfInvocationsInOrderCheckerTest.java33 private List<Invocation> invocations; field in NumberOfInvocationsInOrderCheckerTest
51 invocations = emptyList(); in shouldPassIfWantedIsZeroAndMatchingChunkIsEmpty()
53 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 0, context); in shouldPassIfWantedIsZeroAndMatchingChunkIsEmpty()
59 invocations = asList(buildSimpleMethod().toInvocation()); in shouldPassIfChunkMatches()
60 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 1, context); in shouldPassIfChunkMatches()
69 invocations = asList(first, second); in shouldReportTooLittleInvocations()
76 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 4, context); in shouldReportTooLittleInvocations()
83 invocations = asList(invocation); in shouldMarkAsVerifiedInOrder()
87 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 1, context); in shouldMarkAsVerifiedInOrder()
94invocations = asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportTooLittleActual()
[all …]
DNumberOfInvocationsCheckerTest.java36 private List<Invocation> invocations; field in NumberOfInvocationsCheckerTest
50invocations = asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportTooLittleActual()
57 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 100); in shouldReportTooLittleActual()
63invocations = asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportAllInvocationsStackTrace()
71 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 100); in shouldReportAllInvocationsStackTrace()
76 invocations = emptyList(); in shouldNotReportWithLastInvocationStackTraceIfNoInvocationsFound()
85 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 100); in shouldNotReportWithLastInvocationStackTraceIfNoInvocationsFound()
94 invocations = asList(first, second, third); in shouldReportWithAllInvocationsStackTrace()
101 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 2); in shouldReportWithAllInvocationsStackTrace()
109 invocations = asList(first, second); in shouldReportTooManyActual()
[all …]
DMissingInvocationInOrderCheckerTest.java33 private List<Invocation> invocations; field in MissingInvocationInOrderCheckerTest
53 invocations = asList(buildSimpleMethod().toInvocation()); in shouldPassWhenMatchingInteractionFound()
56 checkMissingInvocation(invocations, wanted, context); in shouldPassWhenMatchingInteractionFound()
61 invocations = asList(buildDifferentMethod().toInvocation()); in shouldReportWantedButNotInvoked()
68 checkMissingInvocation(invocations, wanted, context); in shouldReportWantedButNotInvoked()
73 invocations = asList(buildIntArgMethod().arg(1111).toInvocation()); in shouldReportArgumentsAreDifferent()
83 checkMissingInvocation(invocations, wanted, context); in shouldReportArgumentsAreDifferent()
94 invocations = asList(invocation1,invocation2); in shouldReportWantedDiffersFromActual()
105 checkMissingInvocation(invocations, wanted, context); in shouldReportWantedDiffersFromActual()
DMissingInvocationCheckerTest.java26 private List<Invocation> invocations; field in MissingInvocationCheckerTest
37 invocations = asList(buildSimpleMethod().toInvocation()); in shouldPassBecauseActualInvocationFound()
39 MissingInvocationChecker.checkMissingInvocation(invocations, wanted); in shouldPassBecauseActualInvocationFound()
45 invocations = asList(buildDifferentMethod().toInvocation()); in shouldReportWantedButNotInvoked()
53 MissingInvocationChecker.checkMissingInvocation(invocations, wanted); in shouldReportWantedButNotInvoked()
59 invocations = asList(buildIntArgMethod().arg(1111).toInvocation()); in shouldReportWantedInvocationDiffersFromActual()
68 MissingInvocationChecker.checkMissingInvocation(invocations, wanted); in shouldReportWantedInvocationDiffersFromActual()
/external/libese/libese-teq1/tests/
Dteq1_unittests.cpp405 EXPECT_EQ(1, invocations.at(tx_cursor_).expect_reset); in EseReset()
422 EXPECT_GT(invocations.size(), tx_cursor_); in EseHwTransmit()
423 if (invocations.size() <= tx_cursor_) { in EseHwTransmit()
429 if (!invocations.size()) { in EseHwTransmit()
433 const struct Invocation &invocation = invocations.at(tx_cursor_++); in EseHwTransmit()
451 EXPECT_GT(invocations.size(), rx_cursor_); in EseHwReceive()
452 if (!invocations.size()) in EseHwReceive()
454 struct Invocation &invocation = invocations.at(rx_cursor_); in EseHwReceive()
482 std::vector<Invocation> invocations; member in EseWireFake
501 wire_.invocations.resize(0); in TearDown()
[all …]
/external/mockito/src/main/java/org/mockito/internal/verification/checkers/
DMissingInvocationChecker.java29 …public static void checkMissingInvocation(List<Invocation> invocations, MatchableInvocation wanted… in checkMissingInvocation() argument
30 List<Invocation> actualInvocations = findInvocations(invocations, wanted); in checkMissingInvocation()
36 Invocation similar = findSimilarInvocation(invocations, wanted); in checkMissingInvocation()
38 throw wantedButNotInvoked(wanted, invocations); in checkMissingInvocation()
47 …public static void checkMissingInvocation(List<Invocation> invocations, MatchableInvocation wanted… in checkMissingInvocation() argument
48 List<Invocation> chunk = findAllMatchingUnverifiedChunks(invocations, wanted, context); in checkMissingInvocation()
54 Invocation previousInOrder = findPreviousVerifiedInOrder(invocations, context); in checkMissingInvocation()
59 checkMissingInvocation(invocations, wanted); in checkMissingInvocation()
/external/mockito/src/test/java/org/mockito/internal/verification/
DDefaultRegisteredInvocationsTest.java19 private DefaultRegisteredInvocations invocations; field in DefaultRegisteredInvocationsTest
23 invocations = new DefaultRegisteredInvocations(); in setup()
31 invocations.add(toString); in should_not_return_to_string_method()
32 invocations.add(simpleMethod); in should_not_return_to_string_method()
34 assertTrue(invocations.getAll().contains(simpleMethod)); in should_not_return_to_string_method()
35 assertFalse(invocations.getAll().contains(toString)); in should_not_return_to_string_method()
/external/testng/src/test/java/test/retryAnalyzer/
DInvocationCountTest.java23 static final Multiset<String> invocations = ConcurrentHashMultiset.create(); field in InvocationCountTest
62 assertEquals(invocations.count("testAnnotationWithNoRetries"), 0); in checkInvocationCounts()
63 assertEquals(invocations.count("testAnnotationWithOneRetry"), 1); in checkInvocationCounts()
64 assertEquals(invocations.count("testAnnotationWithSevenRetries"), 7); in checkInvocationCounts()
65 assertEquals(invocations.count("failAfterThreeRetries"), 4); in checkInvocationCounts()
116 invocations.add(result.getName()); in retry()
125 invocations.add(result.getName()); in retry()
/external/mockito/src/test/java/org/mockito/internal/
DAllInvocationsFinderTest.java52 List<Invocation> invocations = find(asList(mockOne, mockTwo)); in provides_invocations_in_order() local
55 assertEquals(3, invocations.size()); in provides_invocations_in_order()
56 assertArgumentEquals(100, invocations.get(0)); in provides_invocations_in_order()
57 assertArgumentEquals(200, invocations.get(1)); in provides_invocations_in_order()
58 assertArgumentEquals(300, invocations.get(2)); in provides_invocations_in_order()
67 List<Invocation> invocations = find(asList(mockOne, mockOne, mockOne)); in deduplicates_interactions_from_the_same_mock() local
70 assertEquals(1, invocations.size()); in deduplicates_interactions_from_the_same_mock()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/
DStatementExecutorTest.java32 private Map<String, List<?>> invocations; field in StatementExecutorTest
36 invocations = new HashMap<String, List<?>>(); in setup()
47 invocations.get("target1")); in should_prefix_arguments()
57 invocations.get("target2")); in should_call_method_with_int_argument()
95 invocations.put("target1", Arrays.asList(a, b, c)); in target1()
99 invocations.put("target2", Arrays.asList(Integer.valueOf(i))); in target2()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dcg_storage_multi.c110 if (CHECK(obj->bss->invocations != 1, in test_egress_only()
111 "first-invoke", "invocations=%d", obj->bss->invocations)) in test_egress_only()
133 if (CHECK(obj->bss->invocations != 3, in test_egress_only()
134 "second-invoke", "invocations=%d", obj->bss->invocations)) in test_egress_only()
188 if (CHECK(obj->bss->invocations != 3, in test_isolated()
189 "first-invoke", "invocations=%d", obj->bss->invocations)) in test_isolated()
230 if (CHECK(obj->bss->invocations != 9, in test_isolated()
231 "second-invoke", "invocations=%d", obj->bss->invocations)) in test_isolated()
301 if (CHECK(obj->bss->invocations != 3, in test_shared()
302 "first-invoke", "invocations=%d", obj->bss->invocations)) in test_shared()
[all …]
/external/mockito/src/main/java/org/mockito/internal/debugging/
DMockitoDebuggerImpl.java26 List<Invocation> invocations = AllInvocationsFinder.find(asList(mocks)); in printInvocations() local
30 for(Invocation i:invocations) { in printInvocations()
38 invocations = unusedStubsFinder.find(asList(mocks)); in printInvocations()
39 if (invocations.isEmpty()) { in printInvocations()
46 for(Invocation i:invocations) { in printInvocations()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dcg_storage_multi_shared.c21 __u32 invocations = 0; variable
30 __sync_fetch_and_add(&invocations, 1); in egress1()
42 __sync_fetch_and_add(&invocations, 1); in egress2()
54 __sync_fetch_and_add(&invocations, 1); in ingress()
Dcg_storage_multi_isolated.c21 __u32 invocations = 0; variable
30 __sync_fetch_and_add(&invocations, 1); in egress1()
42 __sync_fetch_and_add(&invocations, 1); in egress2()
54 __sync_fetch_and_add(&invocations, 1); in ingress()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/
Dbernoulli_distribution_test.cc153 EXPECT_EQ(35, urbg.invocations()); in TEST()
159 EXPECT_EQ(35, urbg.invocations()); in TEST()
165 EXPECT_EQ(35, urbg.invocations()); in TEST()
171 EXPECT_EQ(35, urbg.invocations()); in TEST()
200 EXPECT_EQ(12, urbg.invocations()); in TEST()
206 EXPECT_EQ(12, urbg.invocations()); in TEST()
212 EXPECT_EQ(12, urbg.invocations()); in TEST()
/external/cronet/third_party/abseil-cpp/absl/random/
Dbernoulli_distribution_test.cc153 EXPECT_EQ(35, urbg.invocations()); in TEST()
159 EXPECT_EQ(35, urbg.invocations()); in TEST()
165 EXPECT_EQ(35, urbg.invocations()); in TEST()
171 EXPECT_EQ(35, urbg.invocations()); in TEST()
200 EXPECT_EQ(12, urbg.invocations()); in TEST()
206 EXPECT_EQ(12, urbg.invocations()); in TEST()
212 EXPECT_EQ(12, urbg.invocations()); in TEST()
/external/abseil-cpp/absl/random/
Dbernoulli_distribution_test.cc153 EXPECT_EQ(35, urbg.invocations()); in TEST()
159 EXPECT_EQ(35, urbg.invocations()); in TEST()
165 EXPECT_EQ(35, urbg.invocations()); in TEST()
171 EXPECT_EQ(35, urbg.invocations()); in TEST()
200 EXPECT_EQ(12, urbg.invocations()); in TEST()
206 EXPECT_EQ(12, urbg.invocations()); in TEST()
212 EXPECT_EQ(12, urbg.invocations()); in TEST()
/external/deqp/external/openglcts/docs/specs/
DCTS_ARB_shader_ballot.txt67 where the corresponding bits are set for all active invocations
71 that return true in some invocations and false in others. Perform
73 across invocations. Verify returned value.
80 passed as parameter. Final color should be same for all invocations -
81 first invocation completed dictates result for other invocations.
87 for all invocations - first invocation completed dictates result
88 for other invocations.
/external/openscreen/third_party/abseil/src/absl/random/
Dbernoulli_distribution_test.cc153 EXPECT_EQ(35, urbg.invocations()); in TEST()
159 EXPECT_EQ(35, urbg.invocations()); in TEST()
165 EXPECT_EQ(35, urbg.invocations()); in TEST()
171 EXPECT_EQ(35, urbg.invocations()); in TEST()
200 EXPECT_EQ(12, urbg.invocations()); in TEST()
206 EXPECT_EQ(12, urbg.invocations()); in TEST()
212 EXPECT_EQ(12, urbg.invocations()); in TEST()

12345678910>>...25