/external/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 355 def ExpectAllFieldsSet(test_case, message): argument 357 test_case.assertTrue(message.HasField('optional_int32')) 358 test_case.assertTrue(message.HasField('optional_int64')) 359 test_case.assertTrue(message.HasField('optional_uint32')) 360 test_case.assertTrue(message.HasField('optional_uint64')) 361 test_case.assertTrue(message.HasField('optional_sint32')) 362 test_case.assertTrue(message.HasField('optional_sint64')) 363 test_case.assertTrue(message.HasField('optional_fixed32')) 364 test_case.assertTrue(message.HasField('optional_fixed64')) 365 test_case.assertTrue(message.HasField('optional_sfixed32')) [all …]
|
/external/srtp/crypto/test/ |
D | sha1_driver.c | 72 hash_test_case_t *test_case; in hash_test_case_add() local 75 test_case = malloc(sizeof(hash_test_case_t)); in hash_test_case_add() 76 if (test_case == NULL) in hash_test_case_add() 79 tmp_len = hex_string_to_octet_string((char *)test_case->data, hex_data, data_len*2); in hash_test_case_add() 83 tmp_len = hex_string_to_octet_string((char *)test_case->hash, hex_hash, hash_len*2); in hash_test_case_add() 87 test_case->data_len = data_len; in hash_test_case_add() 88 test_case->hash_len = hash_len; in hash_test_case_add() 91 test_case->next_test_case = list_head; in hash_test_case_add() 92 *list_ptr = test_case; in hash_test_case_add() 98 sha1_test_case_validate(const hash_test_case_t *test_case) { in sha1_test_case_validate() argument [all …]
|
/external/srtp/crypto/cipher/ |
D | cipher.c | 85 const cipher_test_case_t *test_case = ct->test_data; in cipher_type_self_test() local 100 if (test_case == NULL) in cipher_type_self_test() 107 while (test_case != NULL) { in cipher_type_self_test() 110 status = cipher_type_alloc(ct, &c, test_case->key_length_octets); in cipher_type_self_test() 120 status = cipher_init(c, test_case->key, direction_encrypt); in cipher_type_self_test() 127 if (test_case->ciphertext_length_octets > SELF_TEST_BUF_OCTETS) { in cipher_type_self_test() 131 for (i=0; i < test_case->plaintext_length_octets; i++) in cipher_type_self_test() 132 buffer[i] = test_case->plaintext[i]; in cipher_type_self_test() 136 test_case->plaintext_length_octets)); in cipher_type_self_test() 139 status = cipher_set_iv(c, test_case->idx); in cipher_type_self_test() [all …]
|
/external/srtp/crypto/hash/ |
D | auth.c | 87 auth_test_case_t *test_case = at->test_data; in auth_type_self_test() local 100 if (test_case == NULL) in auth_type_self_test() 104 while (test_case != NULL) { in auth_type_self_test() 107 if (test_case->tag_length_octets > SELF_TEST_TAG_BUF_OCTETS) in auth_type_self_test() 111 status = auth_type_alloc(at, &a, test_case->key_length_octets, in auth_type_self_test() 112 test_case->tag_length_octets); in auth_type_self_test() 117 status = auth_init(a, test_case->key); in auth_type_self_test() 124 octet_string_set_to_zero(tag, test_case->tag_length_octets); in auth_type_self_test() 125 status = auth_compute(a, test_case->data, in auth_type_self_test() 126 test_case->data_length_octets, tag); in auth_type_self_test() [all …]
|
/external/chromium/testing/gtest/test/ |
D | gtest-unittest-api_test.cc | 76 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 …]
|
D | gtest_shuffle_test.py | 123 test_case = test.split('.')[0] 124 if not test_case in test_cases: 125 test_cases.append(test_case) 248 [test_case, _] = test.split('.') 249 if test_cases and test_cases[-1] != test_case: 250 test_cases.append(test_case) 251 self.assertEqual(1, test_cases.count(test_case), 253 (test_case, tests))
|
/external/protobuf/gtest/test/ |
D | gtest-unittest-api_test.cc | 76 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() 147 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); in TEST() local 148 ASSERT_TRUE(test_case != NULL); in TEST() [all …]
|
D | gtest_shuffle_test.py | 129 test_case = test.split('.')[0] 130 if not test_case in test_cases: 131 test_cases.append(test_case) 254 [test_case, _] = test.split('.') 255 if test_cases and test_cases[-1] != test_case: 256 test_cases.append(test_case) 257 self.assertEqual(1, test_cases.count(test_case), 259 (test_case, tests))
|
/external/chromium/net/ftp/ |
D | ftp_directory_listing_parser_unittest.h | 41 const SingleLineTestData& test_case, in VerifySingleLineTestCase() argument 46 EXPECT_EQ(test_case.type, entry.type); in VerifySingleLineTestCase() 47 EXPECT_EQ(UTF8ToUTF16(test_case.filename), entry.name); in VerifySingleLineTestCase() 48 EXPECT_EQ(test_case.size, entry.size); in VerifySingleLineTestCase() 54 EXPECT_EQ(test_case.year, time_exploded.year); in VerifySingleLineTestCase() 55 EXPECT_EQ(test_case.month, time_exploded.month); in VerifySingleLineTestCase() 56 EXPECT_EQ(test_case.day_of_month, time_exploded.day_of_month); in VerifySingleLineTestCase() 57 EXPECT_EQ(test_case.hour, time_exploded.hour); in VerifySingleLineTestCase() 58 EXPECT_EQ(test_case.minute, time_exploded.minute); in VerifySingleLineTestCase()
|
/external/chromium/testing/gtest/src/ |
D | gtest.cc | 324 static bool TestCasePassed(const TestCase* test_case) { in TestCasePassed() argument 325 return test_case->should_run() && test_case->Passed(); in TestCasePassed() 329 static bool TestCaseFailed(const TestCase* test_case) { in TestCaseFailed() argument 330 return test_case->should_run() && test_case->Failed(); in TestCaseFailed() 335 static bool ShouldRunTestCase(const TestCase* test_case) { in ShouldRunTestCase() argument 336 return test_case->should_run(); in ShouldRunTestCase() 1953 const TestCase* const test_case = impl->current_test_case(); in HasSameFixtureClass() local 1956 const TestInfo* const first_test_info = test_case->test_info_list()[0]; in HasSameFixtureClass() 2689 static void PrintTestName(const char * test_case, const char * test) { in PrintTestName() argument 2690 printf("%s.%s", test_case, test); in PrintTestName() [all …]
|
/external/webkit/Tools/Scripts/webkitpy/common/system/ |
D | logtesting.py | 48 def __init__(self, test_case): argument 55 self._test_case = test_case 124 def setUp(test_case, logging_level=logging.INFO): argument 147 stream = TestLogStream(test_case)
|
/external/protobuf/gtest/src/ |
D | gtest.cc | 305 static bool TestCasePassed(const TestCase* test_case) { in TestCasePassed() argument 306 return test_case->should_run() && test_case->Passed(); in TestCasePassed() 310 static bool TestCaseFailed(const TestCase* test_case) { in TestCaseFailed() argument 311 return test_case->should_run() && test_case->Failed(); in TestCaseFailed() 316 static bool ShouldRunTestCase(const TestCase* test_case) { in ShouldRunTestCase() argument 317 return test_case->should_run(); in ShouldRunTestCase() 1964 const TestCase* const test_case = impl->current_test_case(); in HasSameFixtureClass() local 1968 test_case->test_info_list().GetElement(0)->impl(); in HasSameFixtureClass() 2637 static void PrintTestName(const char * test_case, const char * test) { in PrintTestName() argument 2638 printf("%s.%s", test_case, test); in PrintTestName() [all …]
|
/external/llvm/utils/unittest/googletest/ |
D | gtest.cc | 313 static bool TestCasePassed(const TestCase* test_case) { in TestCasePassed() argument 314 return test_case->should_run() && test_case->Passed(); in TestCasePassed() 318 static bool TestCaseFailed(const TestCase* test_case) { in TestCaseFailed() argument 319 return test_case->should_run() && test_case->Failed(); in TestCaseFailed() 324 static bool ShouldRunTestCase(const TestCase* test_case) { in ShouldRunTestCase() argument 325 return test_case->should_run(); in ShouldRunTestCase() 1990 const TestCase* const test_case = impl->current_test_case(); in HasSameFixtureClass() local 1994 test_case->test_info_list()[0]->impl(); in HasSameFixtureClass() 2637 static void PrintTestName(const char * test_case, const char * test) { in PrintTestName() argument 2638 printf("%s.%s", test_case, test); in PrintTestName() [all …]
|
/external/chromium/sdch/open-vcdiff/src/gtest/ |
D | gtest.cc | 217 static bool TestCasePassed(const TestCase* test_case) { in TestCasePassed() argument 218 return test_case->should_run() && test_case->Passed(); in TestCasePassed() 222 static bool TestCaseFailed(const TestCase* test_case) { in TestCaseFailed() argument 223 return test_case->should_run() && test_case->Failed(); in TestCaseFailed() 228 static bool ShouldRunTestCase(const TestCase* test_case) { in ShouldRunTestCase() argument 229 return test_case->should_run(); in ShouldRunTestCase() 1729 const TestCase* const test_case = impl->current_test_case(); in HasSameFixtureClass() local 1733 test_case->test_info_list().Head()->element()->impl(); in HasSameFixtureClass() 2289 static void PrintTestName(const char * test_case, const char * test) { in PrintTestName() argument 2290 printf("%s.%s", test_case, test); in PrintTestName() [all …]
|
/external/gtest/src/ |
D | gtest.cc | 277 static bool TestCasePassed(const TestCase* test_case) { in TestCasePassed() argument 278 return test_case->should_run() && test_case->Passed(); in TestCasePassed() 282 static bool TestCaseFailed(const TestCase* test_case) { in TestCaseFailed() argument 283 return test_case->should_run() && test_case->Failed(); in TestCaseFailed() 288 static bool ShouldRunTestCase(const TestCase* test_case) { in ShouldRunTestCase() argument 289 return test_case->should_run(); in ShouldRunTestCase() 1965 const TestCase* const test_case = impl->current_test_case(); in HasSameFixtureClass() local 1969 test_case->test_info_list().Head()->element()->impl(); in HasSameFixtureClass() 2599 static void PrintTestName(const char * test_case, const char * test) { in PrintTestName() argument 2600 printf("%s.%s", test_case, test); in PrintTestName() [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | machine-cse.ll | 45 define void @commute(i32 %test_case, i32 %scale) nounwind ssp { 48 switch i32 %test_case, label %sw.bb307 [ 55 %mul = mul nsw i32 %test_case, 3 64 tail call void (...)* @printf(i32 %test_case, i32 %mul20) nounwind 65 %tmp = mul i32 %scale, %test_case
|
/external/chromium/base/ |
D | time_win_unittest.cc | 191 int test_case = 0; in TEST() local 192 while (cases[test_case].func) { in TEST() 195 cases[test_case].func(); in TEST() 204 printf("%s: %1.2fus per call\n", cases[test_case].description, in TEST() 206 test_case++; in TEST()
|
/external/chromium/chrome/common/ |
D | json_value_serializer_perftest.cc | 33 std::string test_case; in SetUp() local 34 EXPECT_TRUE(file_util::ReadFileToString(filename, &test_case)); in SetUp() 35 test_cases_.push_back(test_case); in SetUp()
|
/external/protobuf/gtest/samples/ |
D | sample9_unittest.cc | 143 const TestCase& test_case = *unit_test.GetTestCase(i); in main() local 144 for (int j = 0; j < test_case.total_test_count(); ++j) { in main() 145 const TestInfo& test_info = *test_case.GetTestInfo(j); in main()
|
/external/chromium/testing/gtest/samples/ |
D | sample9_unittest.cc | 143 const TestCase& test_case = *unit_test.GetTestCase(i); in main() local 144 for (int j = 0; j < test_case.total_test_count(); ++j) { in main() 145 const TestInfo& test_info = *test_case.GetTestInfo(j); in main()
|
/external/chromium/chrome/browser/ |
D | enumerate_modules_model_unittest_win.cc | 25 ModuleEnumerator::Module test_case; 59 ModuleEnumerator::Module test = kNormalizationTestCases[i].test_case; 103 ModuleEnumerator::Module test_case; 198 ModuleEnumerator::Module test = kMatchineEntryList[i].test_case; 212 string16 test_case; 231 module.location = kCollapsePathList[i].test_case;
|
/external/chromium/base/test/ |
D | test_suite.cc | 102 const testing::TestCase& test_case = *instance->GetTestCase(i); in GetTestCount() local 103 for (int j = 0; j < test_case.total_test_count(); ++j) { in GetTestCount() 104 if (test_match(*test_case.GetTestInfo(j))) { in GetTestCount()
|
/external/chromium/chrome/browser/password_manager/ |
D | password_store_mac_unittest.cc | 789 for (unsigned int test_case = 0; test_case <= current_test; ++test_case) { in TEST_F() local 792 test_data[KEYCHAIN_INPUT][test_case].begin(); in TEST_F() 793 i != test_data[KEYCHAIN_INPUT][test_case].end(); ++i) { in TEST_F() 798 test_data[DATABASE_INPUT][test_case].begin(); in TEST_F() 799 i != test_data[DATABASE_INPUT][test_case].end(); ++i) { in TEST_F() 808 CHECK_FORMS(keychain_forms, test_data[KEYCHAIN_OUTPUT][test_case], in TEST_F() 809 test_case); in TEST_F() 810 CHECK_FORMS(database_forms, test_data[DATABASE_OUTPUT][test_case], in TEST_F() 811 test_case); in TEST_F() 812 CHECK_FORMS(merged_forms, test_data[MERGE_OUTPUT][test_case], test_case); in TEST_F()
|
/external/webkit/Tools/Scripts/webkitpy/style/ |
D | main_unittest.py | 43 def __init__(self, test_case): argument 44 self._test_case = test_case
|
/external/chromium/net/base/ |
D | cookie_monster_perftest.cc | 287 const TestCase& test_case(test_cases[ci]); in TEST() local 290 test_case.num_cookies, test_case.num_old_cookies, in TEST() 298 PerfTimeLogger timer((std::string("GC_") + test_case.name).c_str()); in TEST()
|