Searched refs:test_case (Results 1 - 25 of 115) sorted by relevance

12345

/external/srtp/crypto/hash/
H A Dauth.c87 auth_test_case_t *test_case = at->test_data; local
100 if (test_case == NULL)
104 while (test_case != NULL) {
107 if (test_case->tag_length_octets > SELF_TEST_TAG_BUF_OCTETS)
111 status = auth_type_alloc(at, &a, test_case->key_length_octets,
112 test_case->tag_length_octets);
117 status = auth_init(a, test_case->key);
124 octet_string_set_to_zero(tag, test_case->tag_length_octets);
125 status = auth_compute(a, test_case->data,
126 test_case
[all...]
/external/chromium_org/components/autofill/core/browser/
H A Dautofill_regexes_unittest.cc36 const TestCase& test_case = kPositiveCases[i]; local
37 SCOPED_TRACE(test_case.input);
38 SCOPED_TRACE(test_case.pattern);
39 EXPECT_TRUE(autofill::MatchesPattern(ASCIIToUTF16(test_case.input),
40 ASCIIToUTF16(test_case.pattern)));
56 const TestCase& test_case = kNegativeCases[i]; local
57 SCOPED_TRACE(test_case.input);
58 SCOPED_TRACE(test_case.pattern);
59 EXPECT_FALSE(autofill::MatchesPattern(ASCIIToUTF16(test_case.input),
60 ASCIIToUTF16(test_case
[all...]
/external/srtp/crypto/test/
H A Dsha1_driver.c72 hash_test_case_t *test_case; local
75 test_case = malloc(sizeof(hash_test_case_t));
76 if (test_case == NULL)
79 tmp_len = hex_string_to_octet_string((char *)test_case->data, hex_data, data_len*2);
83 tmp_len = hex_string_to_octet_string((char *)test_case->hash, hex_hash, hash_len*2);
87 test_case->data_len = data_len;
88 test_case->hash_len = hash_len;
91 test_case->next_test_case = list_head;
92 *list_ptr = test_case;
98 sha1_test_case_validate(const hash_test_case_t *test_case) { argument
491 hash_test_case_t *test_case; local
[all...]
/external/chromium_org/net/android/tools/
H A Dproxy_test_cases.py287 for test_case in test_cases:
288 print ("TEST_F(ProxyConfigServiceAndroidTest, %s) {" % test_case["name"])
289 if "description" in test_case:
290 self._GenerateDescription(test_case["description"]);
291 self._GenerateConfiguration(test_case["properties"])
292 self._GenerateMappings(test_case["mappings"])
313 for test_case in test_cases:
314 if test_case.has_key("cpp-only"):
316 if "description" in test_case:
317 self._GenerateDescription(test_case["descriptio
[all...]
/external/chromium_org/chrome/android/host_driven_tests/
H A DDummyTest.py7 from pylib.host_driven import test_case namespace
11 class DummyTest(test_case.HostDrivenTestCase):
/external/srtp/crypto/cipher/
H A Dcipher.c85 const cipher_test_case_t *test_case = ct->test_data; local
100 if (test_case == NULL)
107 while (test_case != NULL) {
110 status = cipher_type_alloc(ct, &c, test_case->key_length_octets);
120 status = cipher_init(c, test_case->key, direction_encrypt);
127 if (test_case->ciphertext_length_octets > SELF_TEST_BUF_OCTETS) {
131 for (i=0; i < test_case->plaintext_length_octets; i++)
132 buffer[i] = test_case->plaintext[i];
136 test_case->plaintext_length_octets));
139 status = cipher_set_iv(c, test_case
[all...]
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/
H A Dtest_util.py367 def ExpectAllFieldsSet(test_case, message):
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
[all...]
/external/protobuf/python/google/protobuf/internal/
H A Dtest_util.py355 def ExpectAllFieldsSet(test_case, message):
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
[all...]
/external/chromium/testing/gtest/test/
H A Dgtest-unittest-api_test.cc76 const TestCase* test_case = unit_test.GetTestCase(i); local
77 if (0 == strcmp(test_case->name(), name))
78 return test_case;
86 static TestInfo const** const GetSortedTests(const TestCase* test_case) { argument
88 new const TestInfo*[test_case->total_test_count()];
90 for (int i = 0; i < test_case->total_test_count(); ++i)
91 tests[i] = test_case->GetTestInfo(i);
93 std::sort(tests, tests + test_case->total_test_count(),
148 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
149 ASSERT_TRUE(test_case !
211 const TestCase* test_case = UnitTestHelper::FindTestCase("DISABLED_Test"); local
279 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
[all...]
/external/chromium_org/testing/gtest/test/
H A Dgtest-unittest-api_test.cc76 const TestCase* test_case = unit_test.GetTestCase(i); local
77 if (0 == strcmp(test_case->name(), name))
78 return test_case;
86 static TestInfo const** const GetSortedTests(const TestCase* test_case) { argument
88 new const TestInfo*[test_case->total_test_count()];
90 for (int i = 0; i < test_case->total_test_count(); ++i)
91 tests[i] = test_case->GetTestInfo(i);
93 std::sort(tests, tests + test_case->total_test_count(),
148 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
149 ASSERT_TRUE(test_case !
211 const TestCase* test_case = UnitTestHelper::FindTestCase("DISABLED_Test"); local
279 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
[all...]
/external/gtest/test/
H A Dgtest-unittest-api_test.cc76 const TestCase* test_case = unit_test.GetTestCase(i); local
77 if (0 == strcmp(test_case->name(), name))
78 return test_case;
86 static TestInfo const** const GetSortedTests(const TestCase* test_case) { argument
88 new const TestInfo*[test_case->total_test_count()];
90 for (int i = 0; i < test_case->total_test_count(); ++i)
91 tests[i] = test_case->GetTestInfo(i);
93 std::sort(tests, tests + test_case->total_test_count(),
148 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
149 ASSERT_TRUE(test_case !
211 const TestCase* test_case = UnitTestHelper::FindTestCase("DISABLED_Test"); local
279 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
[all...]
/external/libvpx/libvpx/third_party/googletest/src/test/
H A Dgtest-unittest-api_test.cc76 const TestCase* test_case = unit_test.GetTestCase(i); local
77 if (0 == strcmp(test_case->name(), name))
78 return test_case;
86 static TestInfo const** const GetSortedTests(const TestCase* test_case) { argument
88 new const TestInfo*[test_case->total_test_count()];
90 for (int i = 0; i < test_case->total_test_count(); ++i)
91 tests[i] = test_case->GetTestInfo(i);
93 std::sort(tests, tests + test_case->total_test_count(),
148 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
149 ASSERT_TRUE(test_case !
211 const TestCase* test_case = UnitTestHelper::FindTestCase("DISABLED_Test"); local
279 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
[all...]
/external/protobuf/gtest/test/
H A Dgtest-unittest-api_test.cc76 const TestCase* test_case = unit_test.GetTestCase(i); local
77 if (0 == strcmp(test_case->name(), name))
78 return test_case;
86 static TestInfo const** const GetSortedTests(const TestCase* test_case) { argument
88 new const TestInfo*[test_case->total_test_count()];
90 for (int i = 0; i < test_case->total_test_count(); ++i)
91 tests[i] = test_case->GetTestInfo(i);
93 std::sort(tests, tests + test_case->total_test_count(),
147 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
148 ASSERT_TRUE(test_case !
211 const TestCase* test_case = UnitTestHelper::FindTestCase("DISABLED_Test"); local
280 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); local
[all...]
/external/chromium/net/ftp/
H A Dftp_directory_listing_parser_unittest.h41 const SingleLineTestData& test_case,
46 EXPECT_EQ(test_case.type, entry.type);
47 EXPECT_EQ(UTF8ToUTF16(test_case.filename), entry.name);
48 EXPECT_EQ(test_case.size, entry.size);
54 EXPECT_EQ(test_case.year, time_exploded.year);
55 EXPECT_EQ(test_case.month, time_exploded.month);
56 EXPECT_EQ(test_case.day_of_month, time_exploded.day_of_month);
57 EXPECT_EQ(test_case.hour, time_exploded.hour);
58 EXPECT_EQ(test_case.minute, time_exploded.minute);
40 VerifySingleLineTestCase( const SingleLineTestData& test_case, const std::vector<FtpDirectoryListingEntry>& entries) argument
/external/chromium_org/net/ftp/
H A Dftp_directory_listing_parser_unittest.h40 const SingleLineTestData& test_case,
45 EXPECT_EQ(test_case.type, entry.type);
46 EXPECT_EQ(UTF8ToUTF16(test_case.filename), entry.name);
47 EXPECT_EQ(test_case.size, entry.size);
53 EXPECT_EQ(test_case.year, time_exploded.year);
54 EXPECT_EQ(test_case.month, time_exploded.month);
55 EXPECT_EQ(test_case.day_of_month, time_exploded.day_of_month);
56 EXPECT_EQ(test_case.hour, time_exploded.hour);
57 EXPECT_EQ(test_case.minute, time_exploded.minute);
39 VerifySingleLineTestCase( const SingleLineTestData& test_case, const std::vector<FtpDirectoryListingEntry>& entries) argument
/external/chromium_org/chrome/browser/chromeos/net/
H A Donc_utils_unittest.cc31 base::DictionaryValue* test_case; local
32 (*it)->GetAsDictionary(&test_case);
35 test_case->GetDictionary("ONC_ProxySettings", &onc_proxy_settings);
38 test_case->GetDictionary("ProxyConfig", &expected_proxy_config);
/external/chromium_org/chrome/test/ppapi/
H A Dppapi_test.h48 const std::string& test_case) = 0;
51 GURL GetTestFileUrl(const std::string& test_case);
52 void RunTest(const std::string& test_case);
55 void RunTestAndReload(const std::string& test_case);
56 void RunTestViaHTTP(const std::string& test_case);
57 void RunTestWithSSLServer(const std::string& test_case);
58 void RunTestWithWebSocketServer(const std::string& test_case);
59 void RunTestIfAudioOutputAvailable(const std::string& test_case);
60 void RunTestViaHTTPIfAudioOutputAvailable(const std::string& test_case);
83 // Gets the URL of the the given |test_case| fo
[all...]
H A Dppapi_test.cc140 GURL PPAPITestBase::GetTestFileUrl(const std::string& test_case) { argument
145 test_path = test_path.Append(FILE_PATH_LITERAL("test_case.html"));
153 std::string query = BuildQuery(std::string(), test_case);
158 void PPAPITestBase::RunTest(const std::string& test_case) { argument
159 GURL url = GetTestFileUrl(test_case);
163 void PPAPITestBase::RunTestAndReload(const std::string& test_case) { argument
164 GURL url = GetTestFileUrl(test_case);
170 void PPAPITestBase::RunTestViaHTTP(const std::string& test_case) { argument
179 RunTestURL(GetTestURL(http_server, test_case, std::string()));
182 void PPAPITestBase::RunTestWithSSLServer(const std::string& test_case) { argument
204 RunTestWithWebSocketServer(const std::string& test_case) argument
230 RunTestIfAudioOutputAvailable( const std::string& test_case) argument
235 RunTestViaHTTPIfAudioOutputAvailable( const std::string& test_case) argument
274 GetTestURL( const net::SpawnedTestServer& http_server, const std::string& test_case, const std::string& extra_params) argument
309 BuildQuery(const std::string& base, const std::string& test_case) argument
340 BuildQuery(const std::string& base, const std::string& test_case) argument
347 BuildQuery(const std::string& base, const std::string& test_case) argument
354 BuildQuery(const std::string& base, const std::string& test_case) argument
374 BuildQuery( const std::string& base, const std::string& test_case) argument
[all...]
/external/chromium_org/webkit/browser/fileapi/
H A Dtest_file_set.cc43 const TestCaseRecord& test_case) {
44 base::FilePath path = root_path.Append(test_case.path);
45 if (test_case.is_directory) {
59 if (test_case.data_file_size > 0U) {
60 std::string content = base::RandBytesAsString(test_case.data_file_size);
42 SetUpOneTestCase(const base::FilePath& root_path, const TestCaseRecord& test_case) argument
H A Disolated_file_util_unittest.cc258 const test::TestCaseRecord& test_case = test::kRegularTestCases[i]; local
259 base::FilePath path(test_case.path);
271 test::SetUpOneTestCase(toplevel_root_map_[toplevel], test_case);
291 const test::TestCaseRecord& test_case = test::kRegularTestCases[i]; local
293 FileSystemURL url = GetFileSystemURL(base::FilePath(test_case.path));
305 if (!test_case.is_directory)
306 ASSERT_EQ(test_case.data_file_size, info.size);
307 ASSERT_EQ(test_case.is_directory, info.is_directory);
308 ASSERT_EQ(GetTestCasePlatformPath(test_case.path),
324 const test::TestCaseRecord& test_case local
327 SetUpOneTestCase(root_path(), test_case); local
340 const test::TestCaseRecord& test_case = kUnregisteredCases[i]; local
350 const test::TestCaseRecord& test_case = test::kRegularTestCases[i]; local
409 const test::TestCaseRecord& test_case = test::kRegularTestCases[i]; local
493 const test::TestCaseRecord& test_case = test::kRegularTestCases[i]; local
520 const test::TestCaseRecord& test_case = test::kRegularTestCases[i]; local
[all...]
/external/chromium_org/ui/base/ime/win/
H A Dimm32_manager_unittest.cc73 const InputModeTestCase& test_case = GetParam(); local
78 IMM32Manager::ConvertInputModeToImmFlags(test_case.input_mode,
79 test_case.conversion_mode,
83 EXPECT_EQ(test_case.expected_open, open);
84 EXPECT_EQ(test_case.expected_conversion_mode, conversion_mode);
/external/chromium_org/content/public/test/
H A Dtest_launcher.cc63 int DoRunTestInternal(const testing::TestCase* test_case, argument
68 if (test_case) {
72 for (int i = 0; i < test_case->total_test_count(); ++i) {
73 const testing::TestInfo* test_info = test_case->GetTestInfo(i);
78 int exit_code = DoRunTestInternal(test_case,
114 const testing::TestCase* test_case,
141 test_case, test_name, new_cmd_line, default_timeout, was_timeout);
171 virtual bool ShouldRunTest(const testing::TestCase* test_case,
174 const testing::TestCase* test_case,
193 const testing::TestCase* test_case,
113 DoRunTest(TestLauncherDelegate* launcher_delegate, const testing::TestCase* test_case, const std::string& test_name, base::TimeDelta default_timeout, bool* was_timeout) argument
192 ShouldRunTest( const testing::TestCase* test_case, const testing::TestInfo* test_info) argument
218 RunTest( const testing::TestCase* test_case, const testing::TestInfo* test_info, const base::TestLauncherDelegate::TestResultCallback& callback) argument
[all...]
/external/chromium_org/chrome/browser/download/
H A Ddownload_item_model_unittest.cc173 const TestCase& test_case = kTestCases[i]; local
174 SetupInterruptedDownloadItem(test_case.reason);
175 EXPECT_STREQ(test_case.expected_status,
252 const TestCase& test_case = kTestCases[i]; local
253 SetupInterruptedDownloadItem(test_case.reason);
259 test_case.expected_tooltip,
324 const TestCase& test_case = kTestCases[i]; local
328 .WillRepeatedly(Return(test_case.received_bytes));
330 .WillRepeatedly(Return(test_case.total_bytes));
334 Return(test_case
396 const TestCase& test_case = kTestCases[i]; local
[all...]
/external/chromium_org/base/test/
H A Dtest_launcher.h55 virtual bool ShouldRunTest(const testing::TestCase* test_case,
62 virtual void RunTest(const testing::TestCase* test_case,
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
H A Dlogtesting.py48 def __init__(self, test_case):
52 test_case: A unittest.TestCase instance.
55 self._test_case = test_case
124 def setUp(test_case, logging_level=logging.INFO):
142 test_case: A unittest.TestCase instance.
147 stream = TestLogStream(test_case)

Completed in 613 milliseconds

12345