Home
last modified time | relevance | path

Searched refs:testcase (Results 1 – 25 of 1761) sorted by relevance

12345678910>>...71

/external/google-breakpad/src/processor/
Dstatic_address_map_unittest.cc54 for (int testcase = 0; testcase < kNumberTestCases; ++testcase) { in SetUp() local
55 testdata[testcase] = new int[testsize[testcase]]; in SetUp()
75 for (int testcase = 0; testcase < kNumberTestCases; ++testcase) { in SetUp() local
76 for (int data_item = 0; data_item < testsize[testcase]; ++data_item) { in SetUp()
78 sstream << "test " << testdata[testcase][data_item]; in SetUp()
79 addr_map[testcase].Store(testdata[testcase][data_item], sstream.str()); in SetUp()
81 map_data[testcase] = serializer.Serialize(addr_map[testcase], NULL); in SetUp()
82 test_map[testcase] = TestMap(map_data[testcase]); in SetUp()
93 void CompareRetrieveResult(int testcase, int target) { in CompareRetrieveResult() argument
102 found = addr_map[testcase].Retrieve(target, &entry, &address); in CompareRetrieveResult()
[all …]
Dstatic_map_unittest.cc142 int testcase = 0; in SetUp() local
145 map_data[testcase] = in SetUp()
146 serializer.Serialize(std_map[testcase], &size[testcase]); in SetUp()
147 test_map[testcase] = TestMap(map_data[testcase]); in SetUp()
148 ++testcase; in SetUp()
151 std_map[testcase].insert(std::make_pair(2, 8)); in SetUp()
152 map_data[testcase] = in SetUp()
153 serializer.Serialize(std_map[testcase], &size[testcase]); in SetUp()
154 test_map[testcase] = TestMap(map_data[testcase]); in SetUp()
155 ++testcase; in SetUp()
[all …]
/external/mesa3d/src/freedreno/fdl/
Dfd_layout_test.c32 bool fdl_test_layout(const struct testcase *testcase, int gpu_id) in fdl_test_layout() argument
35 .ubwc = testcase->layout.ubwc, in fdl_test_layout()
36 .tile_mode = testcase->layout.tile_mode, in fdl_test_layout()
40 int max_size = MAX2(testcase->layout.width0, testcase->layout.height0); in fdl_test_layout()
42 while (max_size > 1 && testcase->layout.slices[mip_levels].pitch) { in fdl_test_layout()
49 testcase->format, in fdl_test_layout()
50 MAX2(testcase->layout.nr_samples, 1), in fdl_test_layout()
51 testcase->layout.width0, in fdl_test_layout()
52 MAX2(testcase->layout.height0, 1), in fdl_test_layout()
53 MAX2(testcase->layout.depth0, 1), in fdl_test_layout()
[all …]
/external/icu/icu4c/source/test/perf/unisetperf/
Dunisetperf.cpp138 Command(const UnicodeSetPerformanceTest &testcase) : testcase(testcase) {} in Command() argument
148 return testcase.countInputCodePoints+testcase.spanCount-1; in getOperationsPerIteration()
152 return testcase.spanCount; in getEventsPerIteration()
155 const UnicodeSetPerformanceTest &testcase; member in Command
160 Contains(const UnicodeSetPerformanceTest &testcase) : Command(testcase) { in Contains() argument
166 if(testcase.set.contains(c)) { in Contains()
170 if(set!=testcase.set) { in Contains()
175 static UPerfFunction* get(const UnicodeSetPerformanceTest &testcase) { in get() argument
176 return new Contains(testcase); in get()
179 const UnicodeSet &set=testcase.set; in call()
[all …]
/external/icu/icu4c/source/test/perf/utrie2perf/
Dutrie2perf.cpp99 Command(const UTrie2PerfTest &testcase) : testcase(testcase) {} in Command() argument
108 return testcase.countInputCodePoints; in getOperationsPerIteration()
113 const UTrie2PerfTest &testcase; member in Command
119 CheckFCD(const UTrie2PerfTest &testcase) : Command(testcase) {} in CheckFCD() argument
121 static UPerfFunction* get(const UTrie2PerfTest &testcase) { in get() argument
122 return new CheckFCD(testcase); in get()
126 qcResult=unorm_quickCheck(testcase.getBuffer(), testcase.getBufferLen(), in call()
139 CheckFCDAlwaysGet(const UTrie2PerfTest &testcase) : Command(testcase) {}
141 static UPerfFunction* get(const UTrie2PerfTest &testcase) {
142 return new CheckFCDAlwaysGet(testcase);
[all …]
/external/rust/crates/serde_cbor/tests/
Dstd_types.rs21 macro_rules! testcase { macro
82 testcase!(test_bool_false, bool, false, "f4");
83 testcase!(test_bool_true, bool, true, "f5");
84 testcase!(test_isize_neg_256, isize, -256, "38ff");
85 testcase!(test_isize_neg_257, isize, -257, "390100");
86 testcase!(test_isize_255, isize, 255, "18ff");
87 testcase!(test_i8_5, i8, 5, "05");
88 testcase!(test_i8_23, i8, 23, "17");
89 testcase!(test_i8_24, i8, 24, "1818");
90 testcase!(test_i8_neg_128, i8, -128, "387f");
[all …]
/external/pdfium/fxbarcode/pdf417/
DBC_PDF417HighLevelEncoder_unittest.cpp41 const EncodeHighLevelCase& testcase = kEncodeHighLevelCases[i]; in TEST() local
42 WideStringView input(testcase.input); in TEST()
43 WideString expected(testcase.expected, testcase.expected_length); in TEST()
85 const EncodeBinaryCase& testcase = kEncodeBinaryCases[i]; in TEST() local
87 size_t input_length = strlen(testcase.input); in TEST()
90 input_array[j] = testcase.input[j]; in TEST()
92 WideString expected(testcase.expected, testcase.expected_length); in TEST()
94 CBC_PDF417HighLevelEncoder::EncodeBinary(input_array, testcase.offset, in TEST()
95 testcase.count, testcase.startmode, in TEST()
152 const EncodeNumericCase& testcase = kEncodeNumericCases[i]; in TEST() local
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/tools/
Dplaceholder.py37 def instantiate_for_spirv_args(self, testcase): argument
48 def instantiate_for_expectation(self, testcase): argument
73 def instantiate_for_spirv_args(self, testcase): argument
80 dir=testcase.directory, suffix=self.suffix)
86 def instantiate_for_expectation(self, testcase): argument
101 def instantiate_for_spirv_args(self, testcase): argument
108 dir=testcase.directory, suffix=self.suffix)
114 def instantiate_for_expectation(self, testcase): argument
132 def instantiate_for_spirv_args(self, testcase): argument
139 dir=testcase.directory, suffix=self.suffix)
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/tools/
Dplaceholder.py37 def instantiate_for_spirv_args(self, testcase): argument
48 def instantiate_for_expectation(self, testcase): argument
73 def instantiate_for_spirv_args(self, testcase): argument
80 dir=testcase.directory, suffix=self.suffix)
86 def instantiate_for_expectation(self, testcase): argument
101 def instantiate_for_spirv_args(self, testcase): argument
108 dir=testcase.directory, suffix=self.suffix)
114 def instantiate_for_expectation(self, testcase): argument
132 def instantiate_for_spirv_args(self, testcase): argument
139 dir=testcase.directory, suffix=self.suffix)
[all …]
/external/deqp-deps/SPIRV-Tools/test/tools/
Dplaceholder.py37 def instantiate_for_spirv_args(self, testcase): argument
48 def instantiate_for_expectation(self, testcase): argument
73 def instantiate_for_spirv_args(self, testcase): argument
80 dir=testcase.directory, suffix=self.suffix)
86 def instantiate_for_expectation(self, testcase): argument
101 def instantiate_for_spirv_args(self, testcase): argument
108 dir=testcase.directory, suffix=self.suffix)
114 def instantiate_for_expectation(self, testcase): argument
132 def instantiate_for_spirv_args(self, testcase): argument
139 dir=testcase.directory, suffix=self.suffix)
[all …]
/external/ltp/testcases/network/can/filter-tests/
Dcan_filter.c23 static canid_t calc_id(int testcase) in calc_id() argument
27 if (testcase & 1) in calc_id()
29 if (testcase & 2) in calc_id()
35 static canid_t calc_mask(int testcase) in calc_mask() argument
39 if (testcase > 15) in calc_mask()
42 if (testcase & 4) in calc_mask()
44 if (testcase & 8) in calc_mask()
86 int testcase = n; in run() local
91 rfilter.can_id = calc_id(testcase); in run()
92 rfilter.can_mask = calc_mask(testcase); in run()
[all …]
/external/libevent/test/
Dtinytest.c107 testcase_run_in_thread_(const struct testcase_t *testcase, void *env) in testcase_run_in_thread_() argument
115 &(testcase->fn), in testcase_run_in_thread_()
154 testcase_run_bare_(const struct testcase_t *testcase) in testcase_run_bare_() argument
158 if (testcase->setup) { in testcase_run_bare_()
159 env = testcase->setup->setup_fn(testcase); in testcase_run_bare_()
170 cur_test_outcome = testcase_run_in_thread_(testcase, env); in testcase_run_bare_()
173 testcase->fn(env); in testcase_run_bare_()
177 testcase->fn(env); in testcase_run_bare_()
182 if (testcase->setup) { in testcase_run_bare_()
183 if (testcase->setup->cleanup_fn(testcase, env) == 0) in testcase_run_bare_()
[all …]
Dregress_main.c239 basic_test_setup(const struct testcase_t *testcase) in basic_test_setup() argument
248 if (testcase->flags & TT_ENABLE_IOCP_FLAG) in basic_test_setup()
252 if (testcase->flags & TT_ENABLE_DEBUG_MODE && in basic_test_setup()
258 if (testcase->flags & TT_NEED_THREADS) { in basic_test_setup()
259 if (!(testcase->flags & TT_FORK)) in basic_test_setup()
272 if (testcase->flags & TT_NEED_SOCKETPAIR) { in basic_test_setup()
288 if (testcase->flags & TT_NEED_BASE) { in basic_test_setup()
289 if (testcase->flags & TT_LEGACY) in basic_test_setup()
296 if (testcase->flags & TT_ENABLE_IOCP_FLAG) { in basic_test_setup()
303 if (testcase->flags & TT_NEED_DNS) { in basic_test_setup()
[all …]
/external/grpc-grpc/tools/interop_matrix/
Dcreate_testcases.sh36 [ -z "$testcase" ] && testcase=$CMDS_SH
37 echo "testcase: $testcase"
38 if [ -e $testcase ]; then
40 eval docker_image=$(grep -oe '${docker_image:=.*}' $testcase)
71 testcase=$TESTCASES_DIR/$1__$RELEASE
72 if [ -e $testcase ]; then
73 echo "Updating: $testcase"
74 diff $testcase $CMDS_SH || true
76 mv $CMDS_SH $testcase
77 chmod a+x $testcase
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/interop_matrix/
Dcreate_testcases.sh36 [ -z "$testcase" ] && testcase=$CMDS_SH
37 echo "testcase: $testcase"
38 if [ -e $testcase ]; then
40 eval docker_image=$(grep -oe '${docker_image:=.*}' $testcase)
71 testcase=$TESTCASES_DIR/$1__$RELEASE
72 if [ -e $testcase ]; then
73 echo "Updating: $testcase"
74 diff $testcase $CMDS_SH || true
76 mv $CMDS_SH $testcase
77 chmod a+x $testcase
[all …]
/external/python/cryptography/tests/wycheproof/
Dtest_aes.py23 key = binascii.unhexlify(wycheproof.testcase["key"])
24 iv = binascii.unhexlify(wycheproof.testcase["iv"])
25 msg = binascii.unhexlify(wycheproof.testcase["msg"])
26 ct = binascii.unhexlify(wycheproof.testcase["ct"])
51 key = binascii.unhexlify(wycheproof.testcase["key"])
52 iv = binascii.unhexlify(wycheproof.testcase["iv"])
53 aad = binascii.unhexlify(wycheproof.testcase["aad"])
54 msg = binascii.unhexlify(wycheproof.testcase["msg"])
55 ct = binascii.unhexlify(wycheproof.testcase["ct"])
56 tag = binascii.unhexlify(wycheproof.testcase["tag"])
[all …]
Dtest_rsa.py80 binascii.unhexlify(wycheproof.testcase["sig"]),
81 binascii.unhexlify(wycheproof.testcase["msg"]),
88 binascii.unhexlify(wycheproof.testcase["sig"]),
89 binascii.unhexlify(wycheproof.testcase["msg"]),
105 binascii.unhexlify(wycheproof.testcase["msg"]),
109 assert sig == binascii.unhexlify(wycheproof.testcase["sig"])
141 binascii.unhexlify(wycheproof.testcase["sig"]),
142 binascii.unhexlify(wycheproof.testcase["msg"]),
152 binascii.unhexlify(wycheproof.testcase["sig"]),
153 binascii.unhexlify(wycheproof.testcase["msg"]),
[all …]
Dtest_hkdf.py35 length=wycheproof.testcase["size"],
36 salt=binascii.unhexlify(wycheproof.testcase["salt"]),
37 info=binascii.unhexlify(wycheproof.testcase["info"]),
44 length=wycheproof.testcase["size"],
45 salt=binascii.unhexlify(wycheproof.testcase["salt"]),
46 info=binascii.unhexlify(wycheproof.testcase["info"]),
49 result = h.derive(binascii.unhexlify(wycheproof.testcase["ikm"]))
50 assert result == binascii.unhexlify(wycheproof.testcase["okm"])
Dtest_eddsa.py32 binascii.unhexlify(wycheproof.testcase["sig"]),
33 binascii.unhexlify(wycheproof.testcase["msg"]),
38 binascii.unhexlify(wycheproof.testcase["sig"]),
39 binascii.unhexlify(wycheproof.testcase["msg"]),
55 binascii.unhexlify(wycheproof.testcase["sig"]),
56 binascii.unhexlify(wycheproof.testcase["msg"]),
61 binascii.unhexlify(wycheproof.testcase["sig"]),
62 binascii.unhexlify(wycheproof.testcase["msg"]),
/external/icu/icu4c/source/test/perf/utfperf/
Dutfperf.cpp125 Command(const UtfPerformanceTest &testcase) in Command() argument
126 : testcase(testcase), in Command()
127 input(testcase.getBuffer()), inputLength(testcase.getBufferLen()), in Command()
129 cnv=ucnv_open(testcase.charset, &errorCode); in Command()
131 …fprintf(stderr, "error opening converter for \"%s\" - %s\n", testcase.charset, u_errorName(errorCo… in Command()
146 const UtfPerformanceTest &testcase; member in Command
156 Roundtrip(const UtfPerformanceTest &testcase) : Command(testcase) {} in Roundtrip() argument
158 static UPerfFunction* get(const UtfPerformanceTest &testcase) { in get() argument
159 Roundtrip * t = new Roundtrip(testcase); in get()
183 pInterLimit=intermediate+testcase.chunkLength; in call()
[all …]
/external/flatbuffers/tests/
Dgo_test.go331 type testcase struct {
336 testForOriginalValues := []testcase{
337 testcase{"Hp", func() bool { return monster.Hp() == 80 }},
338 testcase{"Mana", func() bool { return monster.Mana() == 150 }},
339 testcase{"Testbool", func() bool { return monster.Testbool() == true }},
340 testcase{"Pos.X'", func() bool { return monster.Pos(nil).X() == float32(1.0) }},
341 testcase{"Pos.Y'", func() bool { return monster.Pos(nil).Y() == float32(2.0) }},
342 testcase{"Pos.Z'", func() bool { return monster.Pos(nil).Z() == float32(3.0) }},
343 testcase{"Pos.Test1'", func() bool { return monster.Pos(nil).Test1() == float64(3.0) }},
344 testcase{"Pos.Test2'", func() bool { return monster.Pos(nil).Test2() == example.ColorGreen }},
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dmultioutput_fusion_test.cc196 const char* testcase = R"( in XLA_TEST_F() local
213 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
226 const char* testcase = R"( in XLA_TEST_F() local
244 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
251 const char* testcase = R"( in XLA_TEST_F() local
274 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
298 const string testcase = absl::StrCat(kScalarOps, R"( in XLA_TEST_F() local
314 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
320 const string testcase = absl::StrCat(kScalarOps, R"( in XLA_TEST_F() local
336 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
[all …]
/external/python/cpython3/Lib/test/support/
Dwarnings_helper.py8 def check_syntax_warning(testcase, statement, errtext='', argument
15 testcase.assertEqual(len(warns), 1, warns)
18 testcase.assertTrue(issubclass(warn.category, SyntaxWarning),
21 testcase.assertRegex(str(warn.message), errtext)
22 testcase.assertEqual(warn.filename, '<testcase>')
23 testcase.assertIsNotNone(warn.lineno)
25 testcase.assertEqual(warn.lineno, lineno)
32 check_syntax_error(testcase, statement, errtext,
35 testcase.assertEqual(warns, [])
102 def check_no_warnings(testcase, message='', category=Warning, force_gc=False): argument
[all …]
/external/wycheproof/keystore-cts/java/com/google/security/wycheproof/testcases/
DJsonMacTest.java115 JsonObject testcase = t.getAsJsonObject(); in testMac() local
116 int tcid = testcase.get("tcId").getAsInt(); in testMac()
117 String tc = "tcId: " + tcid + " " + testcase.get("comment").getAsString(); in testMac()
118 byte[] key = getBytes(testcase, "key"); in testMac()
119 byte[] msg = getBytes(testcase, "msg"); in testMac()
120 byte[] expectedTag = getBytes(testcase, "tag"); in testMac()
125 String result = testcase.get("result").getAsString(); in testMac()
227 JsonObject testcase = t.getAsJsonObject(); in testMacWithIv() local
228 int tcid = testcase.get("tcId").getAsInt(); in testMacWithIv()
229 String tc = "tcId: " + tcid + " " + testcase.get("comment").getAsString(); in testMacWithIv()
[all …]
/external/ltp/testcases/kernel/syscalls/sysfs/
Dsysfs05.c88 } testcase[] = { variable
95 int TST_TOTAL = ARRAY_SIZE(testcase);
114 && (TEST_ERRNO == testcase[i].exp_errno)) { in main()
118 testcase[i].exp_errval, in main()
119 testcase[i].err_desc); in main()
124 testcase[i].exp_errno, in main()
125 testcase[i].exp_errval, TEST_ERRNO); in main()

12345678910>>...71