Home
last modified time | relevance | path

Searched refs:kTestCases (Results 1 – 25 of 28) sorted by relevance

12

/external/chromium_org/net/ftp/
Dftp_util_unittest.cc21 } kTestCases[] = { in TEST() local
34 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); i++) { in TEST()
35 EXPECT_EQ(kTestCases[i].expected_output, in TEST()
36 net::FtpUtil::UnixFilePathToVMS(kTestCases[i].input)) in TEST()
37 << kTestCases[i].input; in TEST()
45 } kTestCases[] = { in TEST() local
67 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); i++) { in TEST()
68 EXPECT_EQ(kTestCases[i].expected_output, in TEST()
69 net::FtpUtil::UnixDirectoryPathToVMS(kTestCases[i].input)) in TEST()
70 << kTestCases[i].input; in TEST()
[all …]
/external/chromium/net/ftp/
Dftp_util_unittest.cc21 } kTestCases[] = { in TEST() local
34 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); i++) { in TEST()
35 EXPECT_EQ(kTestCases[i].expected_output, in TEST()
36 net::FtpUtil::UnixFilePathToVMS(kTestCases[i].input)) in TEST()
37 << kTestCases[i].input; in TEST()
45 } kTestCases[] = { in TEST() local
67 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); i++) { in TEST()
68 EXPECT_EQ(kTestCases[i].expected_output, in TEST()
69 net::FtpUtil::UnixDirectoryPathToVMS(kTestCases[i].input)) in TEST()
70 << kTestCases[i].input; in TEST()
[all …]
/external/chromium_org/chrome/browser/ui/app_list/search/
Dtokenized_string_match_unittest.cc36 } kTestCases[] = { in TEST() local
46 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
47 const base::string16 text(UTF8ToUTF16(kTestCases[i].text)); in TEST()
48 EXPECT_FALSE(match.Calculate(UTF8ToUTF16(kTestCases[i].query), text)) in TEST()
50 << " : text=" << kTestCases[i].text in TEST()
51 << ", query=" << kTestCases[i].query; in TEST()
60 } kTestCases[] = { in TEST() local
72 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
73 const base::string16 text(UTF8ToUTF16(kTestCases[i].text)); in TEST()
74 EXPECT_TRUE(match.Calculate(UTF8ToUTF16(kTestCases[i].query), text)); in TEST()
[all …]
Dmixer_unittest.cc140 } kTestCases[] = { in TEST_F() local
155 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
156 app_provider()->set_count(kTestCases[i].app_results); in TEST_F()
157 omnibox_provider()->set_count(kTestCases[i].omnibox_results); in TEST_F()
158 webstore_provider()->set_count(kTestCases[i].webstore_results); in TEST_F()
161 EXPECT_EQ(kTestCases[i].expected, GetResults()) << "Case " << i; in TEST_F()
/external/chromium_org/chrome/browser/media_galleries/win/
Dmtp_device_object_enumerator_unittest.cc36 const MTPDeviceObjectEntryData kTestCases[] = { variable
66 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
68 kTestCases[i].object_id, in TEST_F()
69 kTestCases[i].name, in TEST_F()
70 kTestCases[i].is_directory, in TEST_F()
71 kTestCases[i].size, in TEST_F()
72 base::Time::FromTimeT(kTestCases[i].last_modified_time))); in TEST_F()
77 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
78 EXPECT_EQ(kTestCases[i].name, enumerator.Next().value()); in TEST_F()
79 EXPECT_EQ(kTestCases[i].object_id, enumerator.GetObjectId()); in TEST_F()
[all …]
/external/chromium_org/chrome/renderer/spellchecker/
Dspellcheck_unittest.cc172 } kTestCases[] = { in TEST_F() local
383 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
385 if (kTestCases[i].input != NULL) { in TEST_F()
386 input_length = wcslen(kTestCases[i].input); in TEST_F()
391 WideToUTF16(kTestCases[i].input).c_str(), in TEST_F()
397 EXPECT_EQ(kTestCases[i].expected_result, result); in TEST_F()
398 EXPECT_EQ(kTestCases[i].misspelling_start, misspelling_start); in TEST_F()
399 EXPECT_EQ(kTestCases[i].misspelling_length, misspelling_length); in TEST_F()
417 } kTestCases[] = { in TEST_F() local
433 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
[all …]
Dspellcheck_worditerator_unittest.cc70 static const TestCase kTestCases[] = { in TEST() local
115 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST()
117 kTestCases[i].language)); in TEST()
120 attributes.SetDefaultLanguage(kTestCases[i].language); in TEST()
125 kTestCases[i].allow_contraction)); in TEST()
130 WideToUTF16(kTestCases[i].expected_words), ' ', &expected_words); in TEST()
182 } kTestCases[] = { in TEST() local
210 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
212 kTestCases[i].language)); in TEST()
215 attributes.SetDefaultLanguage(kTestCases[i].language); in TEST()
[all …]
/external/chromium_org/webkit/browser/fileapi/
Dexternal_mount_points_unittest.cc41 const TestCase kTestCases[] = { in TEST() local
109 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
110 EXPECT_EQ(kTestCases[i].success, in TEST()
112 kTestCases[i].name, in TEST()
115 base::FilePath(kTestCases[i].path))) in TEST()
116 << "Adding mount point: " << kTestCases[i].name << " with path " in TEST()
117 << kTestCases[i].path; in TEST()
121 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
123 EXPECT_EQ(kTestCases[i].registered_path != NULL, in TEST()
124 mount_points->GetRegisteredPath(kTestCases[i].name, &found_path)) in TEST()
[all …]
/external/chromium_org/chrome/browser/media_galleries/linux/
Dmtp_device_object_enumerator_unittest.cc17 const MtpFileEntryData kTestCases[] = { variable
46 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
48 entry.set_file_name(kTestCases[i].name); in TEST_F()
49 entry.set_file_size(kTestCases[i].size); in TEST_F()
50 entry.set_file_type(kTestCases[i].is_directory ? in TEST_F()
53 entry.set_modification_time(kTestCases[i].modification_time); in TEST_F()
59 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
60 EXPECT_EQ(kTestCases[i].name, enumerator.Next().value()); in TEST_F()
61 EXPECT_EQ(kTestCases[i].size, enumerator.Size()); in TEST_F()
62 EXPECT_EQ(kTestCases[i].is_directory, enumerator.IsDirectory()); in TEST_F()
[all …]
/external/chromium/chrome/browser/
Dspellchecker_platform_engine_unittest.cc15 const char* kTestCases[] = { in TEST() local
22 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
23 const string16 word(ASCIIToUTF16(kTestCases[i])); in TEST()
48 } kTestCases[] = { in TEST() local
317 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
318 const string16 word(ASCIIToUTF16(kTestCases[i].input)); in TEST()
325 const string16 suggested_word(ASCIIToUTF16(kTestCases[i].suggested_word)); in TEST()
Dresources_util_unittest.cc20 const TestCase kTestCases[] = { in TEST() local
26 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST()
27 EXPECT_EQ(kTestCases[i].id, in TEST()
28 ResourcesUtil::GetThemeResourceId(kTestCases[i].name)); in TEST()
/external/chromium_org/ui/gfx/
Dshadow_value_unittest.cc17 } kTestCases[] = { in TEST() local
54 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
56 ShadowValues(kTestCases[i].shadows, in TEST()
57 kTestCases[i].shadows + kTestCases[i].shadow_count)); in TEST()
59 EXPECT_EQ(kTestCases[i].expected_margin, margin) << " i=" << i; in TEST()
/external/chromium_org/base/debug/
Dproc_maps_linux_unittest.cc145 } kTestCases[] = { in TEST() local
170 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
172 base::StringPrintf("kTestCases[%zu] = %s", i, kTestCases[i].input)); in TEST()
175 EXPECT_TRUE(ParseProcMaps(kTestCases[i].input, &regions)); in TEST()
179 EXPECT_EQ(kTestCases[i].permissions, regions[0].permissions); in TEST()
242 static const char* kTestCases[] = { in TEST() local
256 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST()
257 SCOPED_TRACE(base::StringPrintf("kTestCases[%zu] = %s", i, kTestCases[i])); in TEST()
259 EXPECT_FALSE(ParseProcMaps(kTestCases[i], &regions)); in TEST()
264 static const char* kTestCases[] = { in TEST() local
[all …]
/external/chromium_org/chrome/browser/download/
Ddownload_item_model_unittest.cc124 } kTestCases[] = { in TEST_F() local
170 COMPILE_ASSERT(kInterruptReasonCount == ARRAYSIZE_UNSAFE(kTestCases), in TEST_F()
174 for (unsigned i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
175 const TestCase& test_case = kTestCases[i]; in TEST_F()
194 } kTestCases[] = { in TEST_F() local
240 COMPILE_ASSERT(kInterruptReasonCount == ARRAYSIZE_UNSAFE(kTestCases), in TEST_F()
255 for (unsigned i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
256 const TestCase& test_case = kTestCases[i]; in TEST_F()
286 } kTestCases[] = { in TEST_F() local
328 for (unsigned i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); i++) { in TEST_F()
[all …]
/external/chromium_org/chrome/browser/spellchecker/
Dspellcheck_platform_mac_unittest.cc55 const char* kTestCases[] = { in TEST_F() local
62 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
63 const base::string16 word(ASCIIToUTF16(kTestCases[i])); in TEST_F()
88 } kTestCases[] = { in TEST_F() local
357 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
358 const base::string16 word(ASCIIToUTF16(kTestCases[i].input)); in TEST_F()
366 ASCIIToUTF16(kTestCases[i].suggested_word)); in TEST_F()
Dspellcheck_action_unittest.cc57 } kTestCases[] = { in TEST() local
86 kTestCases[i].action.Serialize()); in TEST()
88 base::JSONReader::Read(kTestCases[i].expected)); in TEST()
/external/chromium_org/content/browser/fileapi/
Dfile_system_context_unittest.cc241 const TestCase kTestCases[] = { in TEST_F() local
299 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
302 kTestCases[i].root).Append(kVirtualPathNoRoot); in TEST_F()
305 CreateRawFileSystemURL(kTestCases[i].type_str, kTestCases[i].root); in TEST_F()
311 EXPECT_EQ(kTestCases[i].expect_is_valid, cracked_url.is_valid()); in TEST_F()
312 if (!kTestCases[i].expect_is_valid) in TEST_F()
318 kTestCases[i].expect_mount_type, in TEST_F()
319 kTestCases[i].expect_type, in TEST_F()
320 base::FilePath(kTestCases[i].expect_path).NormalizePathSeparators(), in TEST_F()
322 kTestCases[i].expect_filesystem_id); in TEST_F()
/external/chromium_org/chrome/browser/ui/app_list/search/people/
Dpeople_provider_browsertest.cc254 } kTestCases[] = { in IN_PROC_BROWSER_TEST_F() local
259 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in IN_PROC_BROWSER_TEST_F()
260 EXPECT_EQ(kTestCases[i].expected_results_content, in IN_PROC_BROWSER_TEST_F()
261 RunQuery(kTestCases[i].query, in IN_PROC_BROWSER_TEST_F()
262 kTestCases[i].mock_server_response)) in IN_PROC_BROWSER_TEST_F()
263 << "Case " << i << ": q=" << kTestCases[i].query; in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/crypto/
Dghash_unittest.cc59 static const TestCase kTestCases[] = { variable
109 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST()
110 const TestCase& test = kTestCases[i]; in TEST()
126 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST()
127 const TestCase& test = kTestCases[i]; in TEST()
/external/chromium_org/chrome/browser/ui/app_list/search/webstore/
Dwebstore_provider_browsertest.cc180 } kTestCases[] = { in IN_PROC_BROWSER_TEST_F() local
192 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in IN_PROC_BROWSER_TEST_F()
193 EXPECT_EQ(kTestCases[i].expected_results_content, in IN_PROC_BROWSER_TEST_F()
194 RunQuery(kTestCases[i].query, in IN_PROC_BROWSER_TEST_F()
195 kTestCases[i].mock_server_response)) in IN_PROC_BROWSER_TEST_F()
196 << "Case " << i << ": q=" << kTestCases[i].query; in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/chromeos/fileapi/
Dfile_system_backend_unittest.cc250 const TestCase kTestCases[] = { in TEST() local
263 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
266 base::FilePath local_path(kTestCases[i].local_path); in TEST()
267 EXPECT_EQ(kTestCases[i].success, in TEST()
269 << "Resolving " << kTestCases[i].local_path; in TEST()
273 if (!kTestCases[i].success) in TEST()
276 base::FilePath expected_virtual_path(kTestCases[i].virtual_path); in TEST()
278 << "Resolving " << kTestCases[i].local_path; in TEST()
/external/chromium_org/chrome/browser/chromeos/login/
Dmulti_profile_user_controller_unittest.cc189 const char* kTestCases[] = { in TEST_F() local
194 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST_F()
195 SetCachedBehavior(0, kTestCases[i]); in TEST_F()
213 const char* kTestCases[] = { in TEST_F() local
219 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST_F()
220 SetPrefBehavior(0, kTestCases[i]); in TEST_F()
221 EXPECT_EQ(kTestCases[i], GetCachedBehavior(0)); in TEST_F()
/external/chromium_org/chrome/browser/search/
Dsearch_unittest.cc233 const SearchTestCase kTestCases[] = { in TEST_F() local
247 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST_F()
248 const SearchTestCase& test = kTestCases[i]; in TEST_F()
259 const SearchTestCase kTestCases[] = { in TEST_F() local
273 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST_F()
274 const SearchTestCase& test = kTestCases[i]; in TEST_F()
284 const SearchTestCase kTestCases[] = { in TEST_F() local
302 for (size_t i = 0; i < arraysize(kTestCases); ++i) { in TEST_F()
303 const SearchTestCase& test = kTestCases[i]; in TEST_F()
/external/chromium_org/chrome/browser/ui/views/accessibility/
Daccessibility_event_router_views_unittest.cc495 } kTestCases[] = { in TEST_F() local
502 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST_F()
508 menu->GetMenuItemByID(kTestCases[i].command_id), in TEST_F()
511 EXPECT_EQ(kTestCases[i].expected_index, index) << "Case " << i; in TEST_F()
512 EXPECT_EQ(kTestCases[i].expected_count, count) << "Case " << i; in TEST_F()
/external/chromium_org/net/http/
Dhttp_content_disposition_unittest.cc519 } kTestCases[] = { in TEST() local
579 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { in TEST()
580 const ParseResultTestCase& test_case = kTestCases[i]; in TEST()

12