Home
last modified time | relevance | path

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

123456789

/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 …]
Dstatic_range_map_unittest.cc193 void RunTestCase(int test_case);
352 void TestStaticRangeMap::RunTestCase(int test_case) { in RunTestCase() argument
357 const RangeTest* range_tests = range_test_sets[test_case].range_tests; in RunTestCase()
358 unsigned int range_test_count = range_test_sets[test_case].range_test_count; in RunTestCase()
387 RetrieveIndexTest(static_range_map.get(), test_case); in RunTestCase()
391 int test_case = 0; in TEST_F() local
392 RunTestCase(test_case); in TEST_F()
396 int test_case = 1; in TEST_F() local
397 RunTestCase(test_case); in TEST_F()
401 int test_case = 2; in TEST_F() local
[all …]
/external/tensorflow/tensorflow/contrib/proto/python/kernel_tests/
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/google/protobuf/internal/
Dtest_util.py386 def ExpectAllFieldsSet(test_case, message): argument
388 test_case.assertTrue(message.HasField('optional_int32'))
389 test_case.assertTrue(message.HasField('optional_int64'))
390 test_case.assertTrue(message.HasField('optional_uint32'))
391 test_case.assertTrue(message.HasField('optional_uint64'))
392 test_case.assertTrue(message.HasField('optional_sint32'))
393 test_case.assertTrue(message.HasField('optional_sint64'))
394 test_case.assertTrue(message.HasField('optional_fixed32'))
395 test_case.assertTrue(message.HasField('optional_fixed64'))
396 test_case.assertTrue(message.HasField('optional_sfixed32'))
[all …]
/external/tensorflow/tensorflow/core/nccl/
Dnccl_manager_test.cc79 TestCase* test_case = new TestCase(); in MakeReductionTestCase() local
80 test_case->expected = Tensor(data_type_, shape); in MakeReductionTestCase()
82 test::FillFn<Scalar>(&test_case->expected, in MakeReductionTestCase()
85 test::FillFn<Scalar>(&test_case->expected, in MakeReductionTestCase()
88 test::FillFn<Scalar>(&test_case->expected, [](int) { return -max_; }); in MakeReductionTestCase()
90 test::FillFn<Scalar>(&test_case->expected, [](int) { return max_; }); in MakeReductionTestCase()
107 auto out_expr = test_case->expected.template flat<Scalar>(); in MakeReductionTestCase()
124 test_case->ins.emplace_back(GpuAllocator(device), data_type_, shape); in MakeReductionTestCase()
125 test_case->outs.emplace_back(GpuAllocator(device), data_type_, shape); in MakeReductionTestCase()
127 const Tensor& in_gpu = test_case->ins.back(); in MakeReductionTestCase()
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cCopyImageTests.cpp2591 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
2600 prepareDstPxls(test_case.m_dst, dst_pixels); in iterate()
2601 prepareSrcPxls(test_case.m_src, test_case.m_dst.m_internal_format, src_pixels); in iterate()
2604 m_dst_tex_name = prepareTexture(test_case.m_dst, (const GLubyte**)dst_pixels, m_dst_buf_name); in iterate()
2606 if (GL_RENDERBUFFER == test_case.m_src.m_target) in iterate()
2608 targetDesc desc = test_case.m_src; in iterate()
2611 m_rb_name = prepareTexture(test_case.m_src, (const GLubyte**)src_pixels, m_src_buf_name); in iterate()
2616 m_src_tex_name = prepareTexture(test_case.m_src, (const GLubyte**)src_pixels, m_src_buf_name); in iterate()
2620 result = copyAndVerify(test_case, (const GLubyte**)dst_pixels, (const GLubyte**)src_pixels); in iterate()
2716 bool FunctionalTest::copyAndVerify(const testCase& test_case, const GLubyte** dst_pixels, const GLu… in copyAndVerify() argument
[all …]
Dgl3cTextureSwizzleTests.hpp220 …void captureAndVerify(const testCase& test_case, size_t output_format_index, glw::GLint output_cha…
228 void executeTestCase(const testCase& test_case);
232 …std::string getFragmentShader(const testCase& test_case, size_t output_format_index, bool is_teste…
234 std::string getVertexShader(const testCase& test_case, bool is_tested_stage);
242 void logTestCaseDetials(const testCase& test_case);
244 …void prepareAndTestProgram(const testCase& test_case, size_t output_format_index, glw::GLint outpu…
247 std::string prepareArguments(const testCase& test_case);
248 std::string prepareCoordinates(const testCase& test_case);
250 std::string prepareDerivatives(const testCase& test_case, size_t index);
252 std::string prepareOffsets(const testCase& test_case);
[all …]
/external/google-breakpad/src/testing/gtest/test/
Dgtest-unittest-api_test.cc76 const TestCase* test_case = unit_test.GetTestCase(i); in FindTestCase() local
77 if (0 == strcmp(test_case->name(), name)) in FindTestCase()
78 return test_case; in FindTestCase()
86 static TestInfo const** const GetSortedTests(const TestCase* test_case) { in GetSortedTests() argument
88 new const TestInfo*[test_case->total_test_count()]; in GetSortedTests()
90 for (int i = 0; i < test_case->total_test_count(); ++i) in GetSortedTests()
91 tests[i] = test_case->GetTestInfo(i); in GetSortedTests()
93 std::sort(tests, tests + test_case->total_test_count(), in GetSortedTests()
148 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); in TEST() local
149 ASSERT_TRUE(test_case != NULL); in TEST()
[all …]
/external/tensorflow/tensorflow/core/kernels/data/
Drepeat_dataset_op_test.cc134 const TestCase &test_case = GetParam(); in TEST_P() local
136 std::vector<Tensor> inputs_for_tensor_slice_dataset = test_case.input_tensors; in TEST_P()
139 Tensor count = CreateTensor<int64>(TensorShape{}, {test_case.count}); in TEST_P()
145 TF_ASSERT_OK(CreateRepeatDatasetKernel(test_case.expected_output_dtypes, in TEST_P()
146 test_case.expected_output_shapes, in TEST_P()
164 auto expected_outputs_it = test_case.expected_outputs.begin(); in TEST_P()
168 if (test_case.count < 0) { in TEST_P()
179 if (expected_outputs_it == test_case.expected_outputs.end()) { in TEST_P()
180 expected_outputs_it = test_case.expected_outputs.begin(); in TEST_P()
191 EXPECT_NE(expected_outputs_it, test_case.expected_outputs.end()); in TEST_P()
[all …]
Dtensor_dataset_op_test.cc139 const TestCase &test_case = GetParam(); in TEST_P() local
140 std::vector<Tensor> components = test_case.components; in TEST_P()
146 TF_ASSERT_OK(CreateTensorDatasetKernel(test_case.expected_output_dtypes, in TEST_P()
147 test_case.expected_output_shapes, in TEST_P()
169 EXPECT_EQ(out_tensors.size(), test_case.expected_outputs.size()); in TEST_P()
176 test_case.expected_outputs[i].scalar<Variant>()().get<Tensor>(); in TEST_P()
179 TF_EXPECT_OK(ExpectEqual(out_tensors[i], test_case.expected_outputs[i])); in TEST_P()
189 const TestCase &test_case = PlainTensorsTestCase(); in TEST_F() local
190 std::vector<Tensor> components = test_case.components; in TEST_F()
196 TF_ASSERT_OK(CreateTensorDatasetKernel(test_case.expected_output_dtypes, in TEST_F()
[all …]
Dtake_dataset_op_test.cc160 const TestCase &test_case = GetParam(); in TEST_P() local
162 std::vector<Tensor> inputs_for_tensor_slice_dataset = test_case.input_tensors; in TEST_P()
165 Tensor count = CreateTensor<int64>(TensorShape{}, {test_case.count}); in TEST_P()
171 TF_ASSERT_OK(CreateTakeDatasetKernel(test_case.expected_output_dtypes, in TEST_P()
172 test_case.expected_output_shapes, in TEST_P()
190 auto expected_outputs_it = test_case.expected_outputs.begin(); in TEST_P()
198 EXPECT_NE(expected_outputs_it, test_case.expected_outputs.end()); in TEST_P()
204 EXPECT_EQ(expected_outputs_it, test_case.expected_outputs.end()); in TEST_P()
211 const TestCase &test_case = TakeLessTestCase(); in TEST_F() local
213 std::vector<Tensor> inputs_for_tensor_slice_dataset = test_case.input_tensors; in TEST_F()
[all …]
Dzip_dataset_op_test.cc123 Status CreateDatasetFromTestCase(const TestParam &test_case) { in CreateDatasetFromTestCase() argument
125 range_dataset_tensors.reserve(test_case.input_range_dataset_params.size()); in CreateDatasetFromTestCase()
127 test_case.input_range_dataset_params, &range_dataset_tensors)); in CreateDatasetFromTestCase()
133 int num_tensors_per_slice = test_case.input_range_dataset_params.size(); in CreateDatasetFromTestCase()
144 Status CreateIteratorFromTestCase(const TestParam &test_case) { in CreateIteratorFromTestCase() argument
145 TF_RETURN_IF_ERROR(CreateDatasetFromTestCase(test_case)); in CreateIteratorFromTestCase()
168 const TestParam &test_case = GetParam(); in TEST_P() local
169 TF_ASSERT_OK(CreateIteratorFromTestCase(test_case)); in TEST_P()
171 auto expected_outputs_it = test_case.expected_outputs.begin(); in TEST_P()
179 EXPECT_NE(expected_outputs_it, test_case.expected_outputs.end()); in TEST_P()
[all …]
Dconcatenate_dataset_op_test.cc141 Status CreateDatasetFromTestCase(const TestParam &test_case) { in CreateDatasetFromTestCase() argument
144 test_case.input_tensors, &tensor_slice_dataset_tensors)); in CreateDatasetFromTestCase()
150 test_case.expected_output_dtypes, test_case.expected_output_shapes, in CreateDatasetFromTestCase()
159 Status CreateIteratorFromTestCase(const TestParam &test_case) { in CreateIteratorFromTestCase() argument
160 TF_RETURN_IF_ERROR(CreateDatasetFromTestCase(test_case)); in CreateIteratorFromTestCase()
183 const TestParam &test_case = GetParam(); in TEST_P() local
184 TF_ASSERT_OK(CreateIteratorFromTestCase(test_case)); in TEST_P()
186 auto expected_outputs_it = test_case.expected_outputs.begin(); in TEST_P()
194 EXPECT_NE(expected_outputs_it, test_case.expected_outputs.end()); in TEST_P()
200 EXPECT_EQ(expected_outputs_it, test_case.expected_outputs.end()); in TEST_P()
[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/ltp/testcases/kernel/syscalls/pivot_root/
Dpivot_root01.c65 static const struct test_case { struct
66 int test_case; argument
92 static void run(unsigned int test_case) in run() argument
119 if (test_cases[test_case].test_case != NEW_ROOT_ON_CURRENT_ROOT) in run()
127 if (test_cases[test_case].test_case == PUT_OLD_NOT_UNDERNEATH_NEW_ROOT) { in run()
135 if (test_cases[test_case].test_case == PUT_OLD_NOT_DIR) in run()
141 if (test_cases[test_case].test_case == NO_CAP_SYS_ADMIN) { in run()
153 if (test_cases[test_case].test_case == NORMAL) { in run()
167 if (errno != test_cases[test_case].expected_error) { in run()
/external/nos/test/system-test-harness/src/
Dcavptests.cc93 const gcm_data *test_case = &NIST_GCM_DATA[i]; in TEST_F() local
96 request.set_key(test_case->key, test_case->key_len / 8); in TEST_F()
97 request.set_iv(test_case->IV, test_case->IV_len / 8); in TEST_F()
98 request.set_plain_text(test_case->PT, test_case->PT_len / 8); in TEST_F()
99 request.set_aad(test_case->AAD, test_case->AAD_len / 8); in TEST_F()
100 request.set_tag_len(test_case->tag_len / 8); in TEST_F()
104 outfile.open("AesGcmEncryptTest_" + std::to_string(test_case->key_len) + in TEST_F()
127 ASSERT_EQ(result.cipher_text().size(), test_case->PT_len / 8) in TEST_F()
129 const uint8_t *CT = (const uint8_t *)test_case->CT; in TEST_F()
131 for (size_t j = 0; j < test_case->PT_len / 8; j++) { in TEST_F()
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/fork/
Dclient.py57 for test_case in methods.TestCase:
58 if test_case_arg == test_case.value:
59 return test_case
67 if args.test_case == "all":
68 for test_case in methods.TestCase:
69 test_case.run_test(args)
71 test_case = _test_case_from_arg(args.test_case)
72 test_case.run_test(args)
/external/libchrome/base/
Dstl_util_unittest.cc55 for (auto test_case : test_data) { in RunEraseTest() local
56 base::Erase(test_case.first, 2); in RunEraseTest()
57 EXPECT_EQ(test_case.second, test_case.first); in RunEraseTest()
74 for (auto test_case : test_data) { in RunEraseIfTest() local
75 base::EraseIf(test_case.input, [](const std::pair<int, int>& elem) { in RunEraseIfTest()
78 EXPECT_EQ(test_case.erase_even, test_case.input); in RunEraseIfTest()
81 for (auto test_case : test_data) { in RunEraseIfTest() local
82 base::EraseIf(test_case.input, [](const std::pair<int, int>& elem) { in RunEraseIfTest()
85 EXPECT_EQ(test_case.erase_odd, test_case.input); in RunEraseIfTest()
493 for (auto test_case : test_data) { in TEST() local
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/interop/
Dclient.py71 if args.test_case == 'oauth2_auth_token':
77 elif args.test_case == 'compute_engine_creds':
84 elif args.test_case == 'jwt_token_creds':
109 if args.test_case == "unimplemented_service":
116 for test_case in methods.TestCase:
117 if test_case_arg == test_case.value:
118 return test_case
126 test_case = _test_case_from_arg(args.test_case)
127 test_case.test_interoperability(stub, args)
/external/ltp/testcases/kernel/syscalls/mprotect/
Dmprotect01.c51 struct test_case { struct
56 void (*setupfunc) (struct test_case *self); argument
61 static void setup1(struct test_case *self);
62 static void setup2(struct test_case *self);
63 static void setup3(struct test_case *self);
67 struct test_case TC[] = {
122 static void setup1(struct test_case *self) in setup1()
127 static void setup2(struct test_case *self) in setup2()
138 static void setup3(struct test_case *self) in setup3()
/external/grpc-grpc/tools/run_tests/
Drun_interop_tests.py702 def compute_engine_creds_required(language, test_case): argument
705 if test_case == 'compute_engine_creds':
707 if test_case == 'oauth2_auth_token' and language == 'c++':
713 def auth_options(language, test_case, service_account_key_file=None): argument
730 if test_case in ['jwt_token_creds', 'per_rpc_creds', 'oauth2_auth_token']:
739 if test_case in ['per_rpc_creds', 'oauth2_auth_token']:
742 if test_case == 'oauth2_auth_token' and language == 'c++':
746 if test_case == 'compute_engine_creds':
763 test_case, argument
776 '--test_case=%s' % test_case
[all …]
/external/ltp/testcases/network/lib6/
Din6_02.c40 } test_case[] = { variable
62 for (i = 0; i < ARRAY_SIZE(test_case); ++i) { in if_nametoindex_test()
63 if (test_case[i].name == NULL) { in if_nametoindex_test()
68 TEST(if_nametoindex(test_case[i].name)); in if_nametoindex_test()
69 if (!TST_RET != !test_case[i].nonzero) { in if_nametoindex_test()
71 test_case[i].name, TST_RET, in if_nametoindex_test()
72 test_case[i].nonzero ? "non" : ""); in if_nametoindex_test()
77 if (!pifn || strcmp(test_case[i].name, pifn)) { in if_nametoindex_test()
80 test_case[i].name, TST_RET, in if_nametoindex_test()
86 test_case[i].name, TST_RET); in if_nametoindex_test()
[all …]
/external/pdfium/fxbarcode/oned/
DBC_OnedCode128Writer_unittest.cpp36 const TestCase& test_case = kTestCases[i]; in TEST() local
39 CBC_OnedCode128Writer::Encode128B(test_case.input, &patterns); in TEST()
40 EXPECT_EQ(test_case.checksum, checksum); in TEST()
41 ASSERT_EQ(test_case.num_patterns, patterns.size()); in TEST()
45 EXPECT_EQ(test_case.patterns[j], patterns[j]); in TEST()
69 const TestCase& test_case = kTestCases[i]; in TEST() local
72 CBC_OnedCode128Writer::Encode128C(test_case.input, &patterns); in TEST()
73 EXPECT_EQ(test_case.checksum, checksum); in TEST()
74 ASSERT_EQ(test_case.num_patterns, patterns.size()); in TEST()
78 EXPECT_EQ(test_case.patterns[j], patterns[j]); in TEST()
/external/tensorflow/tensorflow/python/data/util/
Dsparse_test.py70 for test_case in test_cases:
72 sparse.any_sparse(test_case["classes"]), test_case["expected"])
152 for test_case in test_cases:
154 sparse.as_dense_shapes(test_case["types"], test_case["classes"]),
155 test_case["expected"])
226 for test_case in test_cases:
228 sparse.as_dense_types(test_case["types"], test_case["classes"]),
229 test_case["expected"])
285 for test_case in test_cases:
287 sparse.get_classes(test_case["classes"]), test_case["expected"])
/external/grpc-grpc/src/python/grpcio_tests/tests/http2/
Dnegative_http2_client.py109 def _run_test_case(test_case, stub): argument
110 if test_case == 'goaway':
112 elif test_case == 'rst_after_header':
114 elif test_case == 'rst_during_data':
116 elif test_case == 'rst_after_data':
118 elif test_case == 'ping':
120 elif test_case == 'max_streams':
123 raise ValueError("Invalid test case: %s" % test_case)
156 _run_test_case(args.test_case, stub)

123456789