Home
last modified time | relevance | path

Searched refs:test_case (Results 1 – 25 of 386) sorted by relevance

12345678910>>...16

/external/google-breakpad/src/processor/
Dstatic_map_unittest.cc187 void IteratorTester(int test_case) { in IteratorTester() argument
189 iter_test = test_map[test_case].begin(); in IteratorTester()
190 iter_std = std_map[test_case].begin(); in IteratorTester()
192 for (; iter_test != test_map[test_case].end() && in IteratorTester()
193 iter_std != std_map[test_case].end(); in IteratorTester()
198 ASSERT_TRUE(iter_test == test_map[test_case].end() in IteratorTester()
199 && iter_std == std_map[test_case].end()); in IteratorTester()
202 if (!std_map[test_case].empty()) { in IteratorTester()
204 iter_test = test_map[test_case].end(); in IteratorTester()
205 iter_std = std_map[test_case].end(); in IteratorTester()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/proto/
Dproto_op_test_base.py56 test_case = test_example_pb2.TestCase()
57 test_case.values.add() # No fields specified, so we get all defaults.
58 test_case.shapes.append(1)
59 test_case.sizes.append(0)
60 field = test_case.fields.add()
64 test_case.sizes.append(0)
65 field = test_case.fields.add()
69 test_case.sizes.append(0)
70 field = test_case.fields.add()
74 test_case.sizes.append(0)
[all …]
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dtest_util.py367 def ExpectAllFieldsSet(test_case, message): argument
369 test_case.assertTrue(message.HasField('optional_int32'))
370 test_case.assertTrue(message.HasField('optional_int64'))
371 test_case.assertTrue(message.HasField('optional_uint32'))
372 test_case.assertTrue(message.HasField('optional_uint64'))
373 test_case.assertTrue(message.HasField('optional_sint32'))
374 test_case.assertTrue(message.HasField('optional_sint64'))
375 test_case.assertTrue(message.HasField('optional_fixed32'))
376 test_case.assertTrue(message.HasField('optional_fixed64'))
377 test_case.assertTrue(message.HasField('optional_sfixed32'))
[all …]
/external/protobuf/python/google/protobuf/internal/
Dtest_util.py408 def ExpectAllFieldsSet(test_case, message): argument
410 test_case.assertTrue(message.HasField('optional_int32'))
411 test_case.assertTrue(message.HasField('optional_int64'))
412 test_case.assertTrue(message.HasField('optional_uint32'))
413 test_case.assertTrue(message.HasField('optional_uint64'))
414 test_case.assertTrue(message.HasField('optional_sint32'))
415 test_case.assertTrue(message.HasField('optional_sint64'))
416 test_case.assertTrue(message.HasField('optional_fixed32'))
417 test_case.assertTrue(message.HasField('optional_fixed64'))
418 test_case.assertTrue(message.HasField('optional_sfixed32'))
[all …]
/external/tensorflow/tensorflow/core/nccl/
Dnccl_manager_test.cc107 TestCase* test_case = new TestCase(num_nodes, num_ranks_per_node); in MakeReductionTestCase() local
108 test_case->expected = Tensor(data_type_, shape); in MakeReductionTestCase()
110 test::FillFn<Scalar>(&test_case->expected, in MakeReductionTestCase()
113 test::FillFn<Scalar>(&test_case->expected, in MakeReductionTestCase()
116 test::FillFn<Scalar>(&test_case->expected, [](int) { return -max_; }); in MakeReductionTestCase()
118 test::FillFn<Scalar>(&test_case->expected, [](int) { return max_; }); in MakeReductionTestCase()
135 auto out_expr = test_case->expected.template flat<Scalar>(); in MakeReductionTestCase()
152 test_case->ins.emplace_back(GpuAllocator(device), data_type_, shape); in MakeReductionTestCase()
153 test_case->outs.emplace_back(GpuAllocator(device), data_type_, shape); in MakeReductionTestCase()
155 const Tensor& in_gpu = test_case->ins.back(); in MakeReductionTestCase()
[all …]
/external/libsrtp2/crypto/cipher/
Dcipher.c210 const srtp_cipher_test_case_t *test_case = test_data; in srtp_cipher_type_test() local
227 if (test_case == NULL) { in srtp_cipher_type_test()
235 while (test_case != NULL) { in srtp_cipher_type_test()
237 status = srtp_cipher_type_alloc(ct, &c, test_case->key_length_octets, in srtp_cipher_type_test()
238 test_case->tag_length_octets); in srtp_cipher_type_test()
249 status = srtp_cipher_init(c, test_case->key); in srtp_cipher_type_test()
256 if (test_case->ciphertext_length_octets > SELF_TEST_BUF_OCTETS) { in srtp_cipher_type_test()
260 for (k = 0; k < test_case->plaintext_length_octets; k++) { in srtp_cipher_type_test()
261 buffer[k] = test_case->plaintext[k]; in srtp_cipher_type_test()
266 buffer, test_case->plaintext_length_octets)); in srtp_cipher_type_test()
[all …]
/external/libsrtp2/crypto/test/
Dsha1_driver.c78 hash_test_case_t *test_case; in hash_test_case_add() local
81 test_case = malloc(sizeof(hash_test_case_t)); in hash_test_case_add()
82 if (test_case == NULL) in hash_test_case_add()
85 tmp_len = hex_string_to_octet_string((char *)test_case->data, hex_data, in hash_test_case_add()
88 free(test_case); in hash_test_case_add()
92 tmp_len = hex_string_to_octet_string((char *)test_case->hash, hex_hash, in hash_test_case_add()
95 free(test_case); in hash_test_case_add()
99 test_case->data_len = data_len; in hash_test_case_add()
100 test_case->hash_len = hash_len; in hash_test_case_add()
103 test_case->next_test_case = list_head; in hash_test_case_add()
[all …]
/external/rust/crates/der-parser/tests/
Dber_parser.rs7 use test_case::test_case;
12 #[test_case(&hex!("01 01 00"), Some(false) ; "val true")]
13 #[test_case(&hex!("01 01 ff"), Some(true) ; "val false")]
14 #[test_case(&hex!("01 01 7f"), Some(true) ; "true not ff")]
15 #[test_case(&hex!("01 02 00 00"), None ; "invalid length")]
16 #[test_case(&hex!("01 01"), None ; "incomplete")]
142 #[test_case(&hex!("02 01 01"), Ok(1) ; "u32-1")]
143 #[test_case(&hex!("02 02 00 ff"), Ok(255) ; "u32-255")]
144 #[test_case(&hex!("02 02 01 23"), Ok(0x123) ; "u32-0x123")]
145 #[test_case(&hex!("02 04 01 23 45 67"), Ok(0x0123_4567) ; "u32-long-ok")]
[all …]
Dder_constructed.rs8 use test_case::test_case;
10 #[test_case(&hex!("a2 05 02 03 01 00 01"), Ok(0x10001) ; "tag ok")]
11 #[test_case(&hex!("a2 80 02 03 01 00 01 00 00"), Err(BerError::DerConstraintFailed) ; "indefinite t…
12 #[test_case(&hex!("a3 05 02 03 01 00 01"), Err(BerError::InvalidTag) ; "invalid tag")]
13 #[test_case(&hex!("22 05 02 03 01 00 01"), Err(BerError::InvalidClass) ; "invalid class")]
14 #[test_case(&hex!("82 05 02 03 01 00 01"), Err(BerError::ConstructExpected) ; "construct expected")]
34 #[test_case(&hex!("82 03 01 00 01"), Ok(0x10001) ; "tag ok")]
35 #[test_case(&hex!("83 03 01 00 01"), Err(BerError::InvalidTag) ; "invalid tag")]
55 #[test_case(&hex!("30 00"), Ok(&[]) ; "empty seq")]
56 #[test_case(&hex!("30 0a 02 03 01 00 01 02 03 01 00 00"), Ok(&[0x10001, 0x10000]) ; "seq ok")]
[all …]
/external/libsrtp2/crypto/hash/
Dauth.c88 const srtp_auth_test_case_t *test_case = test_data; in srtp_auth_type_test() local
101 if (test_case == NULL) { in srtp_auth_type_test()
106 while (test_case != NULL) { in srtp_auth_type_test()
108 if (test_case->tag_length_octets > SELF_TEST_TAG_BUF_OCTETS) { in srtp_auth_type_test()
113 status = srtp_auth_type_alloc(at, &a, test_case->key_length_octets, in srtp_auth_type_test()
114 test_case->tag_length_octets); in srtp_auth_type_test()
120 status = srtp_auth_init(a, test_case->key); in srtp_auth_type_test()
127 octet_string_set_to_zero(tag, test_case->tag_length_octets); in srtp_auth_type_test()
128 status = srtp_auth_compute(a, test_case->data, in srtp_auth_type_test()
129 test_case->data_length_octets, tag); in srtp_auth_type_test()
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cCopyImageTests.cpp2578 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
2587 prepareDstPxls(test_case.m_dst, dst_pixels); in iterate()
2588 prepareSrcPxls(test_case.m_src, test_case.m_dst.m_internal_format, src_pixels); in iterate()
2591 m_dst_tex_name = prepareTexture(test_case.m_dst, (const GLubyte**)dst_pixels, m_dst_buf_name); in iterate()
2593 if (GL_RENDERBUFFER == test_case.m_src.m_target) in iterate()
2595 targetDesc desc = test_case.m_src; in iterate()
2598 m_rb_name = prepareTexture(test_case.m_src, (const GLubyte**)src_pixels, m_src_buf_name); in iterate()
2603 m_src_tex_name = prepareTexture(test_case.m_src, (const GLubyte**)src_pixels, m_src_buf_name); in iterate()
2607 result = copyAndVerify(test_case, (const GLubyte**)dst_pixels, (const GLubyte**)src_pixels); in iterate()
2703 bool FunctionalTest::copyAndVerify(const testCase& test_case, const GLubyte** dst_pixels, const GLu… in copyAndVerify() argument
[all …]
/external/rust/crates/ring/tests/
Decdsa_tests.rs27 |section, test_case| { in ecdsa_from_pkcs8_test()
30 let curve_name = test_case.consume_string("Curve"); in ecdsa_from_pkcs8_test()
55 let input = test_case.consume_bytes("Input"); in ecdsa_from_pkcs8_test()
57 let error = test_case.consume_optional_string("Error"); in ecdsa_from_pkcs8_test()
115 |section, test_case| { in signature_ecdsa_verify_asn1_test()
118 let curve_name = test_case.consume_string("Curve"); in signature_ecdsa_verify_asn1_test()
119 let digest_name = test_case.consume_string("Digest"); in signature_ecdsa_verify_asn1_test()
120 let msg = test_case.consume_bytes("Msg"); in signature_ecdsa_verify_asn1_test()
121 let public_key = test_case.consume_bytes("Q"); in signature_ecdsa_verify_asn1_test()
122 let sig = test_case.consume_bytes("Sig"); in signature_ecdsa_verify_asn1_test()
[all …]
Drsa_tests.rs37 |section, test_case| { in rsa_from_pkcs8_test()
40 let input = test_case.consume_bytes("Input"); in rsa_from_pkcs8_test()
41 let error = test_case.consume_optional_string("Error"); in rsa_from_pkcs8_test()
62 |section, test_case| { in test_signature_rsa_pkcs1_sign()
65 let digest_name = test_case.consume_string("Digest"); in test_signature_rsa_pkcs1_sign()
73 let private_key = test_case.consume_bytes("Key"); in test_signature_rsa_pkcs1_sign()
74 let msg = test_case.consume_bytes("Msg"); in test_signature_rsa_pkcs1_sign()
75 let expected = test_case.consume_bytes("Sig"); in test_signature_rsa_pkcs1_sign()
76 let result = test_case.consume_string("Result"); in test_signature_rsa_pkcs1_sign()
103 |section, test_case| { in test_signature_rsa_pss_sign()
[all …]
Ded25519_tests.rs24 test::run(test_file!("ed25519_tests.txt"), |section, test_case| { in test_signature_ed25519()
26 let seed = test_case.consume_bytes("SEED"); in test_signature_ed25519()
29 let public_key = test_case.consume_bytes("PUB"); in test_signature_ed25519()
32 let msg = test_case.consume_bytes("MESSAGE"); in test_signature_ed25519()
34 let expected_sig = test_case.consume_bytes("SIG"); in test_signature_ed25519()
69 |section, test_case| { in test_signature_ed25519_verify()
72 let public_key = test_case.consume_bytes("PUB"); in test_signature_ed25519_verify()
73 let msg = test_case.consume_bytes("MESSAGE"); in test_signature_ed25519_verify()
74 let sig = test_case.consume_bytes("SIG"); in test_signature_ed25519_verify()
75 let expected_result = match test_case.consume_string("Result").as_str() { in test_signature_ed25519_verify()
[all …]
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode_unittest.cpp134 for (const auto& test_case : kTestData) { in TEST() local
137 EXPECT_EQ(test_case.processed_size, in TEST()
138 A85Decode({test_case.input, test_case.input_size}, &result, in TEST()
140 << "for case " << test_case.input; in TEST()
141 ASSERT_EQ(test_case.expected_size, result_size); in TEST()
144 EXPECT_EQ(test_case.expected[j], result_ptr[j]) in TEST()
145 << "for case " << test_case.input << " char " << j; in TEST()
169 for (const auto& test_case : kTestData) { in TEST() local
172 EXPECT_EQ(test_case.processed_size, in TEST()
173 HexDecode({test_case.input, test_case.input_size}, &result, in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/json/
Dtest_json.cc237 for (const TestCase* test_case = kTestRoundtripMessages; in test_json_roundtrip() local
238 test_case->input != NULL; test_case++) { in test_json_roundtrip()
240 (test_case->expected == EXPECT_SAME) ? in test_json_roundtrip()
241 test_case->input : in test_json_roundtrip()
242 test_case->expected; in test_json_roundtrip()
244 for (size_t i = 0; i < strlen(test_case->input); i++) { in test_json_roundtrip()
245 test_json_roundtrip_message(test_case->input, expected, in test_json_roundtrip()
252 for (const TestCase* test_case = kTestSkipUnknown; in test_json_roundtrip() local
253 test_case->input != NULL; test_case++) { in test_json_roundtrip()
255 (test_case->expected == EXPECT_SAME) ? in test_json_roundtrip()
[all …]
/external/pigweed/pw_tokenizer/py/
Dgenerate_hash_test_data.py109 def test_case(data): function
115 yield test_case('')
116 yield test_case(b'\xa1')
117 yield test_case(b'\xff')
118 yield test_case('\0')
119 yield test_case('\0\0')
120 yield test_case('a')
121 yield test_case('A')
122 yield test_case('hello, "world"')
123 yield test_case('YO' * 100)
[all …]
/external/OpenCL-CTS/test_conformance/api/
Dtest_mem_object_properties_queries.cpp41 test_data test_case, in create_object_and_check_properties() argument
48 switch (test_case.type) in create_object_and_check_properties()
68 if (test_case.properties.size() == 0) in create_object_and_check_properties()
77 context, test_case.properties.data(), flags, &format, &desc, in create_object_and_check_properties()
90 if (test_case.properties.size() == 0) in create_object_and_check_properties()
99 context, test_case.properties.data(), flags, in create_object_and_check_properties()
108 if (test_case.properties.size() == 0) in create_object_and_check_properties()
117 context, test_case.properties.data(), flags, in create_object_and_check_properties()
147 if (test_case.type == buffer || test_case.type == subbuffer in create_object_and_check_properties()
148 || test_case.type == image) in create_object_and_check_properties()
[all …]
/external/ltp/testcases/kernel/syscalls/pivot_root/
Dpivot_root01.c66 static const struct test_case { struct
67 int test_case; argument
93 static void run(unsigned int test_case) in run() argument
120 if (test_cases[test_case].test_case != NEW_ROOT_ON_CURRENT_ROOT) in run()
128 if (test_cases[test_case].test_case == PUT_OLD_NOT_UNDERNEATH_NEW_ROOT) { in run()
136 if (test_cases[test_case].test_case == PUT_OLD_NOT_DIR) in run()
142 if (test_cases[test_case].test_case == NO_CAP_SYS_ADMIN) { in run()
154 if (test_cases[test_case].test_case == NORMAL) { in run()
168 if (errno != test_cases[test_case].expected_error) { in run()
/external/icing/icing/testing/
Dlogging-event-listener.cc41 void LoggingEventListener::OnTestCaseStart(const testing::TestCase& test_case) { in OnTestCaseStart() argument
43 if (test_case.type_param()) { in OnTestCaseStart()
45 test_case.type_param()); in OnTestCaseStart()
47 ICING_LOG(INFO) << "[----------] " << test_case.test_to_run_count() in OnTestCaseStart()
48 << " test(s) from " << test_case.name() << param_text; in OnTestCaseStart()
75 void LoggingEventListener::OnTestCaseEnd(const testing::TestCase& test_case) { in OnTestCaseEnd() argument
76 ICING_LOG(INFO) << "[----------] " << test_case.test_to_run_count() in OnTestCaseEnd()
77 << " test(s) from " << test_case.name() << " (" in OnTestCaseEnd()
78 << test_case.elapsed_time() << " ms total)"; in OnTestCaseEnd()
101 const testing::TestCase& test_case = *unit_test.GetTestCase(i); in OnTestIterationEnd() local
[all …]
/external/libtextclassifier/native/utils/testing/
Dlogging_event_listener.cc41 void LoggingEventListener::OnTestCaseStart(const testing::TestCase& test_case) { in OnTestCaseStart() argument
43 if (test_case.type_param()) { in OnTestCaseStart()
44 param_text.append(", where TypeParam = ").append(test_case.type_param()); in OnTestCaseStart()
46 TC3_LOG(INFO) << "[----------] " << test_case.test_to_run_count() in OnTestCaseStart()
47 << " test(s) from " << test_case.name() << param_text; in OnTestCaseStart()
74 void LoggingEventListener::OnTestCaseEnd(const testing::TestCase& test_case) { in OnTestCaseEnd() argument
75 TC3_LOG(INFO) << "[----------] " << test_case.test_to_run_count() in OnTestCaseEnd()
76 << " test(s) from " << test_case.name() << " (" in OnTestCaseEnd()
77 << test_case.elapsed_time() << " ms total)"; in OnTestCaseEnd()
100 const testing::TestCase& test_case = *unit_test.GetTestCase(i); in OnTestIterationEnd() local
[all …]
/external/tensorflow/tensorflow/python/grappler/
Ddatasets_test.py48 for test_case in test_cases:
50 dataset = dataset_ops.Dataset.from_tensors(test_case['tensor'])
58 self.assertEqual(test_case['shape'],
73 for test_case in test_cases:
75 dataset = dataset_ops.Dataset.from_tensor_slices(test_case['tensor'])
83 self.assertEqual(test_case['shape'],
98 for test_case in test_cases:
109 make_generator(test_case['tensor']),
111 output_shapes=test_case['shape'])
119 self.assertEqual(test_case['shape'],
[all …]
/external/pigweed/pw_unit_test/
Dlogging_event_handler.cc42 void LoggingEventHandler::TestCaseStart(const TestCase& test_case) { in TestCaseStart() argument
43 PW_LOG_INFO("[ RUN ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseStart()
46 void LoggingEventHandler::TestCaseEnd(const TestCase& test_case, in TestCaseEnd() argument
52 "[ OK ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseEnd()
56 "[ FAILED ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseEnd()
60 "[ SKIPPED ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseEnd()
65 void LoggingEventHandler::TestCaseExpect(const TestCase& test_case, in TestCaseExpect() argument
76 test_case.file_name, in TestCaseExpect()
Dsimple_printing_event_handler.cc39 void SimplePrintingEventHandler::TestCaseStart(const TestCase& test_case) { in TestCaseStart() argument
40 WriteLine("[ RUN ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseStart()
43 void SimplePrintingEventHandler::TestCaseEnd(const TestCase& test_case, in TestCaseEnd() argument
49 "[ OK ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseEnd()
53 "[ FAILED ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseEnd()
57 "[ SKIPPED ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseEnd()
63 const TestCase& test_case, const TestExpectation& expectation) { in TestCaseExpect() argument
69 WriteLine("%s:%d: %s", test_case.file_name, expectation.line_number, result); in TestCaseExpect()
/external/zucchini/
Daddress_translator_unittest.cc95 const auto& test_case = test_cases[i]; in RunTest() local
96 const std::string& unit_str2 = test_case.unit_str; in RunTest()
99 SimpleTest({unit_str1, unit_str2}, test_case.expected, str); in RunTest()
101 SimpleTest({unit_str2, unit_str1}, test_case.expected, str); in RunTest()
150 for (auto& test_case : test_cases1) { in TEST() local
151 EXPECT_EQ(test_case.expect, translator.OffsetToRva(test_case.input)); in TEST()
152 EXPECT_EQ(test_case.expect, offset_to_rva.Convert(test_case.input)); in TEST()
160 for (auto& test_case : test_cases2) { in TEST() local
161 EXPECT_EQ(test_case.expect, translator.RvaToOffset(test_case.input)); in TEST()
162 EXPECT_EQ(test_case.expect, rva_to_offset.Convert(test_case.input)); in TEST()
[all …]

12345678910>>...16