Home
last modified time | relevance | path

Searched refs:expectation (Results 1 – 25 of 97) sorted by relevance

1234

/external/mesa3d/src/mesa/state_tracker/tests/
Dtest_glsl_to_tgsi_lifetime.cpp93 using expectation = vector<vector<int>>; typedef
104 void run(const vector<MockCodeline>& code, const expectation& e);
105 void run(const vector<MockCodelineWithSwizzle>& code, const expectation& e);
107 virtual void check(const vector<lifetime>& result, const expectation& e) = 0;
114 void check(const vector<lifetime>& result, const expectation& e);
124 void check(const vector<lifetime>& result, const expectation& e);
161 run(code, expectation({{-1,-1}, {0,1}})); in TEST_F()
172 run(code, expectation({{-1, -1}, {0,1}, {1,2}})); in TEST_F()
189 run(code, expectation({{-1, -1}, {0,2}, {1,2}})); in TEST_F()
209 run (code, expectation({{-1,-1}, {0,5}, {2,3}, {3,6}})); in TEST_F()
[all …]
/external/skia/tests/
DPDFDocumentTest.cpp141 static bool contains(const uint8_t* result, size_t size, const char expectation[]) { in contains() argument
142 size_t len = strlen(expectation); in contains()
145 if (0 == memcmp(result + i, expectation, len)) { in contains()
174 for (const char* expectation : expectations) { in DEF_TEST() local
175 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
176 ERRORF(r, "PDFA expectation missing: '%s'.", expectation); in DEF_TEST()
192 for (const char* expectation : moreExpectations) { in DEF_TEST() local
193 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
194 ERRORF(r, "PDFA expectation missing: '%s'.", expectation); in DEF_TEST()
219 for (const char* expectation : expectations) { in DEF_TEST() local
[all …]
DPDFMetadataAttributeTest.cpp41 for (const char* expectation : expectations) { in DEF_TEST() local
42 size_t len = strlen(expectation); in DEF_TEST()
46 if (0 == memcmp(bytes + i, expectation, len)) { in DEF_TEST()
52 ERRORF(r, "expectation missing: '%s'.", expectation); in DEF_TEST()
/external/skqp/tests/
DPDFDocumentTest.cpp141 static bool contains(const uint8_t* result, size_t size, const char expectation[]) { in contains() argument
142 size_t len = strlen(expectation); in contains()
145 if (0 == memcmp(result + i, expectation, len)) { in contains()
174 for (const char* expectation : expectations) { in DEF_TEST() local
175 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
176 ERRORF(r, "PDFA expectation missing: '%s'.", expectation); in DEF_TEST()
192 for (const char* expectation : moreExpectations) { in DEF_TEST() local
193 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
194 ERRORF(r, "PDFA expectation missing: '%s'.", expectation); in DEF_TEST()
219 for (const char* expectation : expectations) { in DEF_TEST() local
[all …]
DPDFMetadataAttributeTest.cpp41 for (const char* expectation : expectations) { in DEF_TEST() local
42 size_t len = strlen(expectation); in DEF_TEST()
46 if (0 == memcmp(bytes + i, expectation, len)) { in DEF_TEST()
52 ERRORF(r, "expectation missing: '%s'.", expectation); in DEF_TEST()
/external/grpc-grpc/src/objective-c/tests/
DInteropTests.m117 __weak XCTestExpectation *expectation = [self expectationWithDescription:@"EmptyUnary"];
128 [expectation fulfill];
136 __weak XCTestExpectation *expectation = [self expectationWithDescription:@"LargeUnary"];
152 [expectation fulfill];
160 __weak XCTestExpectation *expectation = [self expectationWithDescription:@"LargeUnary"];
186 [expectation fulfill];
199 __weak XCTestExpectation *expectation = [self expectationWithDescription:@"MaxResponseSize"];
209 [expectation fulfill];
217 __weak XCTestExpectation *expectation = [self expectationWithDescription:@"ResponseOverMaxSize"];
235 [expectation fulfill];
[all …]
DRxLibraryUnitTests.m149 __weak XCTestExpectation *expectation = [self expectationWithDescription:@"Response received"];
155 [expectation fulfill];
174 __weak XCTestExpectation *expectation = [self expectationWithDescription:@"Response received"];
180 [expectation fulfill];
197 __weak XCTestExpectation *expectation = [self expectationWithDescription:@"Response received"];
203 [expectation fulfill];
/external/grpc-grpc/test/core/end2end/
Dcq_verifier.cc47 typedef struct expectation { struct
48 struct expectation* next; argument
54 } expectation; argument
61 expectation* first_expectation;
179 static void expectation_to_strvec(gpr_strvec* buf, expectation* e) { in expectation_to_strvec()
204 expectation* e; in expectations_to_strvec()
225 static void verify_matches(expectation* e, grpc_event* ev) { in verify_matches()
259 expectation* e; in cq_verify()
260 expectation* prev = nullptr; in cq_verify()
309 expectation* e = static_cast<expectation*>(gpr_malloc(sizeof(expectation))); in add()
Dcq_verifier_internal.h24 typedef struct expectation expectation; typedef
26 expectation* cq_verifier_get_first_expectation(cq_verifier* v);
28 void cq_verifier_set_first_expectation(cq_verifier* v, expectation* e);
Dcq_verifier_native.cc31 expectation* first_expectation;
46 expectation* cq_verifier_get_first_expectation(cq_verifier* v) { in cq_verifier_get_first_expectation()
50 void cq_verifier_set_first_expectation(cq_verifier* v, expectation* e) { in cq_verifier_set_first_expectation()
Dcq_verifier_uv.cc41 expectation* first_expectation;
67 expectation* cq_verifier_get_first_expectation(cq_verifier* v) { in cq_verifier_get_first_expectation()
71 void cq_verifier_set_first_expectation(cq_verifier* v, expectation* e) { in cq_verifier_set_first_expectation()
/external/vogar/src/vogar/
DAnnotatedOutcome.java39 private final Expectation expectation; field in AnnotatedOutcome
44 AnnotatedOutcome(Outcome outcome, Expectation expectation) { in AnnotatedOutcome() argument
45 this.expectation = expectation; in AnnotatedOutcome()
62 return outcome.getResultValue(expectation); in getResultValue()
68 previousResultValues.add(previousOutcome.getResultValue(expectation)); in getPreviousResultValues()
DExpectationStore.java95 Expectation expectation = outcomes.get(name); in getByNameOrPackage() local
96 if (expectation != null) { in getByNameOrPackage()
97 return expectation; in getByNameOrPackage()
207 Expectation expectation = in readExpectation() local
211 if (map.put(name, expectation) != null) { in readExpectation()
267 for (Expectation expectation : allExpectations) { in loadBugStatuses()
268 if (expectation.getBug() != -1) { in loadBugStatuses()
269 bugs.add(expectation.getBug()); in loadBugStatuses()
281 for (Expectation expectation : allExpectations) { in loadBugStatuses()
282 if (openBugs.contains(expectation.getBug())) { in loadBugStatuses()
[all …]
DDriver.java153 Expectation expectation = run.expectationStore.get(action.getName()); in enqueueActionTasks() local
154 boolean useLargeTimeout = expectation.getTags().contains("large"); in enqueueActionTasks()
224 Expectation expectation = run.expectationStore.get(outcome); in recordOutcome() local
225 ResultValue resultValue = outcome.getResultValue(expectation); in recordOutcome()
239 run.console.printResult(outcome.getName(), result, resultValue, expectation); in recordOutcome() local
DXmlReportPrinter.java104 Expectation expectation = expectationStore.get(outcome); in testsToSuites() local
105 if (!expectation.matches(outcome)) { in testsToSuites()
151 Expectation expectation = expectationStore.get(outcome); in print() local
152 if (!expectation.matches(outcome)) { in print()
DOutcome.java136 public ResultValue getResultValue(Expectation expectation) { in getResultValue() argument
138 if (expectation.matches(this)) { in getResultValue()
140 } else if (expectation.getIsFromExpectationFile()) { in getResultValue()
/external/google-breakpad/src/testing/test/
Dgmock_output_test_golden.txt36 Google Mock tried the following 1 expectation, but it didn't match:
49 Google Mock tried the following 1 expectation, but it didn't match:
95 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(_, _))...
96 Expected: the expectation is active
100 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(0, 0))...
116 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
121 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
137 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
142 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
174 Google Mock tried the following 1 expectation, but it didn't match:
[all …]
/external/chromium-libpac/test/js-unittest/
Dbindings.js13 function expectEquals(expectation, actual) { argument
14 if (!(expectation === actual)) {
15 throw "FAIL: expected: " + expectation + ", actual: " + actual;
/external/googletest/googlemock/test/
Dgmock_output_test_golden.txt36 Google Mock tried the following 1 expectation, but it didn't match:
49 Google Mock tried the following 1 expectation, but it didn't match:
95 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(_, _))...
96 Expected: the expectation is active
100 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(0, 0))...
116 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
121 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
137 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
142 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
174 Google Mock tried the following 1 expectation, but it didn't match:
[all …]
/external/deqp-deps/SPIRV-Tools/test/opt/
Dtypes_test.cpp279 bool expectation = true; in TEST() local
285 expectation = false; in TEST()
290 EXPECT_EQ(t->IsUniqueType(false), expectation) in TEST()
292 << (expectation ? "" : "non-") << "unique type"; in TEST()
295 if (t->AsPointer()) expectation = false; in TEST()
296 EXPECT_EQ(t->IsUniqueType(true), expectation) in TEST()
298 << (expectation ? "" : "non-") << "unique type"; in TEST()
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dtypes_test.cpp279 bool expectation = true; in TEST() local
285 expectation = false; in TEST()
290 EXPECT_EQ(t->IsUniqueType(false), expectation) in TEST()
292 << (expectation ? "" : "non-") << "unique type"; in TEST()
295 if (t->AsPointer()) expectation = false; in TEST()
296 EXPECT_EQ(t->IsUniqueType(true), expectation) in TEST()
298 << (expectation ? "" : "non-") << "unique type"; in TEST()
/external/grpc-grpc/test/core/end2end/tests/
Drequest_with_flags.cc108 grpc_call_error expectation; in test_invoke_request_with_flags() local
149 expectation = call_start_batch_expected_result; in test_invoke_request_with_flags()
152 GPR_ASSERT(expectation == error); in test_invoke_request_with_flags()
154 if (expectation == GRPC_CALL_OK) { in test_invoke_request_with_flags()
/external/deqp-deps/SPIRV-Tools/test/tools/
Dspirv_test_framework.py270 expectation = getattr(self.test, expectation_name)
271 if isinstance(expectation, list):
275 for element in expectation
278 elif isinstance(expectation, PlaceHolder):
280 expectation.instantiate_for_expectation(self))
/external/swiftshader/third_party/SPIRV-Tools/test/tools/
Dspirv_test_framework.py270 expectation = getattr(self.test, expectation_name)
271 if isinstance(expectation, list):
275 for element in expectation
278 elif isinstance(expectation, PlaceHolder):
280 expectation.instantiate_for_expectation(self))
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue176/
DSingleQuoteTest.java39 private void checkQuotes(boolean isBlock, String expectation) { in checkQuotes() argument
54 assertEquals(expectation + "\n", output); in checkQuotes()

1234