tests 950 cc/animation/transform_operations_unittest.cc ProblematicAxisTest tests[] = { tests 960 cc/animation/transform_operations_unittest.cc for (size_t i = 0; i < arraysize(tests); ++i) { tests 961 cc/animation/transform_operations_unittest.cc float x = tests[i].x; tests 962 cc/animation/transform_operations_unittest.cc float y = tests[i].y; tests 963 cc/animation/transform_operations_unittest.cc float z = tests[i].z; tests 973 cc/animation/transform_operations_unittest.cc EXPECT_EQ(tests[i].expected.ToString(), bounds.ToString()); tests 2041 chrome/browser/chromeos/events/event_rewriter_unittest.cc } tests[] = { tests 2226 chrome/browser/chromeos/events/event_rewriter_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 2228 chrome/browser/chromeos/events/event_rewriter_unittest.cc if (tests[i].output_native == 0) tests 2230 chrome/browser/chromeos/events/event_rewriter_unittest.cc EXPECT_EQ(GetExpectedResultAsString(tests[i].output, tests 2231 chrome/browser/chromeos/events/event_rewriter_unittest.cc tests[i].output_mods, tests 2233 chrome/browser/chromeos/events/event_rewriter_unittest.cc tests[i].output_native, tests 2234 chrome/browser/chromeos/events/event_rewriter_unittest.cc tests[i].output_native_mods, tests 2237 chrome/browser/chromeos/events/event_rewriter_unittest.cc tests[i].input, tests 2238 chrome/browser/chromeos/events/event_rewriter_unittest.cc tests[i].input_mods, tests 2240 chrome/browser/chromeos/events/event_rewriter_unittest.cc tests[i].input_native, tests 2241 chrome/browser/chromeos/events/event_rewriter_unittest.cc tests[i].input_native_mods)); tests 60 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc } tests[] = { tests 338 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 340 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc tests[i].description.c_str())); tests 343 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc InitConfigWithTestInput(tests[i].input, &test_config); tests 349 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc EXPECT_EQ(tests[i].auto_detect, config.auto_detect()); tests 350 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc EXPECT_EQ(tests[i].pac_url, config.pac_url()); tests 351 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc EXPECT_TRUE(tests[i].proxy_rules.Matches(config.proxy_rules())); tests 381 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc const TestParams& managed_params = tests[proxies[i][0]]; tests 382 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc const TestParams& recommended_params = tests[proxies[i][1]]; tests 383 chrome/browser/chromeos/proxy_config_service_impl_unittest.cc const TestParams& network_params = tests[proxies[i][2]]; tests 146 chrome/browser/extensions/api/cookies/cookies_unittest.cc const DomainMatchCase tests[] = { tests 156 chrome/browser/extensions/api/cookies/cookies_unittest.cc for (size_t i = 0; i < arraysize(tests); ++i) { tests 160 chrome/browser/extensions/api/cookies/cookies_unittest.cc dict->SetString(keys::kDomainKey, std::string(tests[i].filter)); tests 168 chrome/browser/extensions/api/cookies/cookies_unittest.cc tests[i].domain, tests 176 chrome/browser/extensions/api/cookies/cookies_unittest.cc EXPECT_EQ(tests[i].matches, filter.MatchesCookie(cookie)); tests 304 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc static scoped_ptr<const HeaderMatcher> Create(const base::ListValue* tests); tests 345 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc const base::DictionaryValue* tests); tests 362 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc explicit HeaderMatcher(ScopedVector<const HeaderMatchTest>* tests); tests 375 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc const base::ListValue* tests) { tests 377 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc for (base::ListValue::const_iterator it = tests->begin(); tests 378 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc it != tests->end(); ++it) { tests 379 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc const base::DictionaryValue* tests = NULL; tests 380 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc if (!(*it)->GetAsDictionary(&tests)) tests 384 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc HeaderMatchTest::Create(tests)); tests 402 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc HeaderMatcher::HeaderMatcher(ScopedVector<const HeaderMatchTest>* tests) tests 403 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc : tests_(tests->Pass()) {} tests 462 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc HeaderMatcher::HeaderMatchTest::Create(const base::DictionaryValue* tests) { tests 466 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc for (base::DictionaryValue::Iterator it(*tests); tests 496 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc ScopedVector<const StringMatchTest>* tests = tests 504 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc tests->push_back( tests 510 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc tests->push_back( tests 393 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc void MatchAndCheck(const std::vector< std::vector<const std::string*> >& tests, tests 399 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc for (size_t i = 0; i < tests.size(); ++i) { tests 400 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc scoped_ptr<base::DictionaryValue> temp(GetDictionaryFromArray(tests[i])); tests 437 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc std::vector<std::vector<const std::string*> > tests; tests 450 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kPassingCondition, kPassingConditionSizes, 1u, &tests); tests 452 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kRequestHeadersKey, stage, &url_request, &result); tests 456 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc tests, keys::kExcludeRequestHeadersKey, stage, &url_request, &result); tests 467 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kFailCondition, kFailConditionSizes, 4u, &tests); tests 469 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kRequestHeadersKey, stage, &url_request, &result); tests 473 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc tests, keys::kExcludeRequestHeadersKey, stage, &url_request, &result); tests 477 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(NULL, NULL, 0u, &tests); tests 479 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kRequestHeadersKey, stage, &url_request, &result); tests 483 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc tests, keys::kExcludeRequestHeadersKey, stage, &url_request, &result); tests 488 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(NULL, kEmptyConjunctionSizes, 1u, &tests); tests 490 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kRequestHeadersKey, stage, &url_request, &result); tests 494 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc tests, keys::kExcludeRequestHeadersKey, stage, &url_request, &result); tests 528 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc std::vector< std::vector<const std::string*> > tests; tests 541 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kPassingCondition, kPassingConditionSizes, 1u, &tests); tests 542 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 553 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kFailCondition, kFailConditionSizes, 4u, &tests); tests 554 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 563 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kMixingCondition, kMixingConditionSizes, 1u, &tests); tests 564 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 573 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kMoreValues1, kMoreValues1Sizes, 1u, &tests); tests 574 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 581 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kMoreValues2, kMoreValues2Sizes, 1u, &tests); tests 582 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 592 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kConflict, kNoConflictSizes, 2u, &tests); tests 593 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 597 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kConflict, kConflictSizes, 1u, &tests); tests 598 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 607 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kComma, kCommaSizes, 1u, &tests); tests 608 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 617 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kEmpty, kEmptySizes, 1u, &tests); tests 618 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 633 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kLowercase, kLowercaseSizes, 4u, &tests); tests 634 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 645 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kUppercase, kUppercaseSizes, 1u, &tests); tests 646 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 657 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kDisjunction, kDisjunctionSizes, 4u, &tests); tests 658 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc MatchAndCheck(tests, keys::kResponseHeadersKey, stage, &url_request, &result); tests 667 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kNonExistent, kNonExistentSizes, 1u, &tests); tests 669 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc tests, keys::kExcludeResponseHeadersKey, stage, &url_request, &result); tests 678 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc GetArrayAsVector(kExisting, kExistingSize, 1u, &tests); tests 680 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc tests, keys::kExcludeResponseHeadersKey, stage, &url_request, &result); tests 404 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc challenge_test tests[] = { tests 421 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc auth_info->challenger = net::HostPortPair::FromString(tests[i].host); tests 422 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc auth_info->realm = tests[i].realm; tests 423 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc EXPECT_EQ(tests[i].expected_to_succeed, tests 435 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc token_test tests[] = { tests 447 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc auth_info->realm = tests[i].realm; tests 449 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc EXPECT_EQ(tests[i].expected_empty_token, token.empty()); tests 51 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc } tests[] = { tests 84 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc for (size_t j = 0; j < ARRAYSIZE_UNSAFE(tests); ++j) { tests 85 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc GURL origin(tests[j].origin); tests 93 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc EXPECT_EQ(tests[j].err1, factory.CreateAuthHandlerFromString( tests 94 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc tests[j].challenge, targets[i], origin, BoundNetLog(), tests 96 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc if (tests[j].err1 != OK) tests 104 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc EXPECT_EQ(tests[j].err2, rv); tests 105 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc if (tests[i].err2 != OK) tests 107 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc EXPECT_STREQ(tests[i].expected_credentials, auth_token.c_str()); tests 138 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc } tests[] = { tests 155 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 156 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc std::string challenge = tests[i].challenge; tests 160 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc EXPECT_EQ(tests[i].expected_rv, rv); tests 162 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc EXPECT_EQ(tests[i].expected_realm, spdyproxy->realm()); tests 165 chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc EXPECT_EQ(tests[i].expected_ps, tests 259 chrome/browser/policy/policy_prefs_browsertest.cc PolicyTestCase* GetPolicyTestCase(const base::DictionaryValue* tests, tests 262 chrome/browser/policy/policy_prefs_browsertest.cc if (!tests->GetDictionary(name, &policy_test_dict)) tests 71 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc } tests[] = { tests 263 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 264 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc SCOPED_TRACE(base::StringPrintf("Test: %s", tests[i].input_url)); tests 265 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc GURL url(tests[i].input_url); tests 273 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(tests[i].expected_canonicalized_hostname, tests 275 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(tests[i].expected_canonicalized_path, tests 277 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(tests[i].expected_canonicalized_query, tests 107 chrome/installer/util/delete_after_reboot_helper_unittest.cc } tests[] = { tests 113 chrome/installer/util/delete_after_reboot_helper_unittest.cc for (int i = 0; i < arraysize(tests); i++) { tests 116 chrome/installer/util/delete_after_reboot_helper_unittest.cc MultiSZBytesToStringArray(reinterpret_cast<char*>(tests[i].str), tests 117 chrome/installer/util/delete_after_reboot_helper_unittest.cc tests[i].length, &string_list))) tests 118 chrome/installer/util/delete_after_reboot_helper_unittest.cc << tests[i].test_name; tests 119 chrome/installer/util/delete_after_reboot_helper_unittest.cc EXPECT_EQ(tests[i].count, string_list.size()) << tests[i].test_name; tests 124 chrome/installer/util/delete_after_reboot_helper_unittest.cc reinterpret_cast<char*>(tests[i].str), tests 125 chrome/installer/util/delete_after_reboot_helper_unittest.cc tests[i].length)) << tests[i].test_name; tests 699 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 700 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("digest.json", &tests)); tests 702 content/child/webcrypto/shared_crypto_unittest.cc for (size_t test_index = 0; test_index < tests->GetSize(); ++test_index) { tests 705 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(test_index, &test)); tests 720 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 721 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("digest.json", &tests)); tests 723 content/child/webcrypto/shared_crypto_unittest.cc for (size_t test_index = 0; test_index < tests->GetSize(); ++test_index) { tests 726 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(test_index, &test)); tests 758 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 759 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("hmac.json", &tests)); tests 761 content/child/webcrypto/shared_crypto_unittest.cc for (size_t test_index = 0; test_index < tests->GetSize(); ++test_index) { tests 764 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(test_index, &test)); tests 923 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 924 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("aes_cbc.json", &tests)); tests 926 content/child/webcrypto/shared_crypto_unittest.cc for (size_t test_index = 0; test_index < tests->GetSize(); ++test_index) { tests 929 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(test_index, &test)); tests 2417 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 2418 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("pkcs1v15_sign.json", &tests)); tests 2440 content/child/webcrypto/shared_crypto_unittest.cc for (size_t test_index = 0; test_index < tests->GetSize(); ++test_index) { tests 2444 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(test_index, &test)); tests 2552 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 2553 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("aes_kw.json", &tests)); tests 2555 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(0, &test)); tests 2596 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 2597 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("aes_kw.json", &tests)); tests 2599 content/child/webcrypto/shared_crypto_unittest.cc for (size_t test_index = 0; test_index < tests->GetSize(); ++test_index) { tests 2602 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(test_index, &test)); tests 2660 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 2661 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("aes_kw.json", &tests)); tests 2664 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(5, &test)); tests 2713 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 2714 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("aes_kw.json", &tests)); tests 2717 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(5, &test)); tests 2811 content/child/webcrypto/shared_crypto_unittest.cc scoped_ptr<base::ListValue> tests; tests 2812 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(ReadJsonTestFileToList("aes_gcm.json", &tests)); tests 2815 content/child/webcrypto/shared_crypto_unittest.cc for (size_t test_index = 0; test_index < tests->GetSize(); ++test_index) { tests 2818 content/child/webcrypto/shared_crypto_unittest.cc ASSERT_TRUE(tests->GetDictionary(test_index, &test)); tests 50 content/renderer/media/cache_util_unittest.cc const GRFUTestCase tests[] = { tests 87 content/renderer/media/cache_util_unittest.cc for (size_t i = 0; i < arraysize(tests); ++i) { tests 90 content/renderer/media/cache_util_unittest.cc i, tests[i].version, tests[i].status_code, tests 91 content/renderer/media/cache_util_unittest.cc tests[i].headers)); tests 92 content/renderer/media/cache_util_unittest.cc EXPECT_EQ(GetReasonsForUncacheability(CreateResponse(tests[i])), tests 93 content/renderer/media/cache_util_unittest.cc tests[i].expected_reasons); tests 112 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc } tests[] = { tests 147 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 148 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc gfx::Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); tests 149 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc gfx::Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); tests 151 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc gfx::Point delta(tests[i].dx1, tests[i].dy1); tests 152 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc bool res = ConvertToLogicalPixels(tests[i].scale, &r1, &delta); tests 154 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc EXPECT_EQ(res, tests[i].result); tests 156 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc EXPECT_EQ(delta, gfx::Point(tests[i].dx2, tests[i].dy2)); tests 160 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc ConvertToLogicalPixels(1.0f / tests[i].scale, &r1, NULL); tests 43 extensions/common/features/simple_feature_unittest.cc const IsAvailableTestData tests[] = { tests 68 extensions/common/features/simple_feature_unittest.cc for (size_t i = 0; i < arraysize(tests); ++i) { tests 69 extensions/common/features/simple_feature_unittest.cc const IsAvailableTestData& test = tests[i]; tests 1745 gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc TestInfo tests[] = { tests 1751 gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc for (size_t ii = 0; ii < sizeof(tests) / sizeof(tests[0]); ++ii) { tests 1752 gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc const TestInfo& test = tests[ii]; tests 2555 gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc static GLint tests[][4] = { tests 2565 gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc for (size_t tt = 0; tt < arraysize(tests); ++tt) { tests 2567 gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc tests[tt][0], tests[tt][1], tests[tt][2], tests[tt][3], tt == 0); tests 107 gpu/command_buffer/tests/gl_virtual_contexts_unittest.cc TestInfo tests[] = { tests 114 gpu/command_buffer/tests/gl_virtual_contexts_unittest.cc const TestInfo& test = tests[ii]; tests 121 gpu/command_buffer/tests/gl_virtual_contexts_unittest.cc const TestInfo& test = tests[ii]; tests 128 gpu/command_buffer/tests/gl_virtual_contexts_unittest.cc const TestInfo& test = tests[ii]; tests 136 gpu/command_buffer/tests/gl_virtual_contexts_unittest.cc const TestInfo& test = tests[ii]; tests 577 media/audio/android/audio_android_unittest.cc std::vector<bool> tests; tests 578 media/audio/android/audio_android_unittest.cc tests.push_back(false); tests 580 media/audio/android/audio_android_unittest.cc tests.push_back(true); tests 581 media/audio/android/audio_android_unittest.cc return tests; tests 300 media/base/seekable_buffer_unittest.cc } tests[] = { tests 336 media/base/seekable_buffer_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 338 media/base/seekable_buffer_unittest.cc tests[i].first_time_useconds)); tests 340 media/base/seekable_buffer_unittest.cc tests[i].duration_useconds)); tests 342 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.Seek(tests[i].consume_bytes)); tests 346 media/base/seekable_buffer_unittest.cc EXPECT_EQ(tests[i].expected_time, actual) << "With test = { start:" tests 347 media/base/seekable_buffer_unittest.cc << tests[i].first_time_useconds << ", duration:" tests 348 media/base/seekable_buffer_unittest.cc << tests[i].duration_useconds << ", consumed:" tests 349 media/base/seekable_buffer_unittest.cc << tests[i].consume_bytes << " }\n"; tests 378 native_client_sdk/src/tests/nacl_io_test/socket_test.cc } tests[] = { tests 384 native_client_sdk/src/tests/nacl_io_test/socket_test.cc for (size_t i = 0; i < sizeof(tests) / sizeof(tests[0]); ++i) { tests 385 native_client_sdk/src/tests/nacl_io_test/socket_test.cc char* stringified_addr = inet_ntoa(generate_ipv4_addr(tests[i].addr_tuple)); tests 387 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_STREQ(tests[i].output, stringified_addr); tests 395 native_client_sdk/src/tests/nacl_io_test/socket_test.cc } tests[] = { tests 401 native_client_sdk/src/tests/nacl_io_test/socket_test.cc for (size_t i = 0; i < sizeof(tests) / sizeof(tests[0]); ++i) { tests 403 native_client_sdk/src/tests/nacl_io_test/socket_test.cc struct in_addr real_addr = generate_ipv4_addr(tests[i].addr_tuple); tests 406 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_STREQ(tests[i].output, stringified_addr); tests 414 native_client_sdk/src/tests/nacl_io_test/socket_test.cc } tests[] = { tests 426 native_client_sdk/src/tests/nacl_io_test/socket_test.cc for (size_t i = 0; i < sizeof(tests) / sizeof(tests[0]); ++i) { tests 428 native_client_sdk/src/tests/nacl_io_test/socket_test.cc struct in6_addr real_addr = generate_ipv6_addr(tests[i].addr_tuple); tests 431 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_STREQ(tests[i].output, stringified_addr); tests 461 native_client_sdk/src/tests/nacl_io_test/socket_test.cc } tests[] = { tests 482 native_client_sdk/src/tests/nacl_io_test/socket_test.cc for (size_t i = 0; i < sizeof(tests) / sizeof(tests[0]); ++i) { tests 484 native_client_sdk/src/tests/nacl_io_test/socket_test.cc ASSERT_TRUE(inet_pton(tests[i].family, tests[i].input, addr)) tests 485 native_client_sdk/src/tests/nacl_io_test/socket_test.cc << "inet_pton failed for " << tests[i].input; tests 486 native_client_sdk/src/tests/nacl_io_test/socket_test.cc const char* expected = tests[i].output ? tests[i].output : tests[i].input; tests 489 native_client_sdk/src/tests/nacl_io_test/socket_test.cc inet_ntop(tests[i].family, addr, out_buffer, sizeof(out_buffer))); tests 97 net/base/address_list_unittest.cc } tests[] = { tests 124 net/base/address_list_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 126 net/base/address_list_unittest.cc ASSERT_TRUE(ParseIPLiteralToNumber(tests[i].ip_address, &ip_number)); tests 134 net/base/address_list_unittest.cc EXPECT_EQ(ARRAYSIZE_UNSAFE(tests), test_list.size()); tests 23 net/base/data_url_unittest.cc const ParseTestData tests[] = { tests 168 net/base/data_url_unittest.cc for (size_t i = 0; i < arraysize(tests); ++i) { tests 173 net/base/data_url_unittest.cc net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data); tests 174 net/base/data_url_unittest.cc EXPECT_EQ(ok, tests[i].is_valid); tests 175 net/base/data_url_unittest.cc if (tests[i].is_valid) { tests 176 net/base/data_url_unittest.cc EXPECT_EQ(tests[i].mime_type, mime_type); tests 177 net/base/data_url_unittest.cc EXPECT_EQ(tests[i].charset, charset); tests 178 net/base/data_url_unittest.cc EXPECT_EQ(tests[i].data, data); tests 389 net/base/escape_unittest.cc const EscapeForHTMLCase tests[] = { tests 394 net/base/escape_unittest.cc for (size_t i = 0; i < arraysize(tests); ++i) { tests 395 net/base/escape_unittest.cc std::string result = EscapeForHTML(std::string(tests[i].input)); tests 396 net/base/escape_unittest.cc EXPECT_EQ(std::string(tests[i].expected_output), result); tests 401 net/base/escape_unittest.cc const EscapeForHTMLCase tests[] = { tests 414 net/base/escape_unittest.cc for (size_t i = 0; i < arraysize(tests); ++i) { tests 415 net/base/escape_unittest.cc base::string16 result = UnescapeForHTML(base::ASCIIToUTF16(tests[i].input)); tests 416 net/base/escape_unittest.cc EXPECT_EQ(base::ASCIIToUTF16(tests[i].expected_output), result); tests 22 net/base/host_port_pair_unittest.cc } tests[] = { tests 57 net/base/host_port_pair_unittest.cc for (size_t index = 0; index < arraysize(tests); ++index) { tests 58 net/base/host_port_pair_unittest.cc HostPortPair foo(tests[index].host, tests[index].port); tests 59 net/base/host_port_pair_unittest.cc EXPECT_EQ(tests[index].to_string, foo.ToString()); tests 67 net/base/host_port_pair_unittest.cc for (size_t index = 0; index < arraysize(tests); ++index) { tests 68 net/base/host_port_pair_unittest.cc HostPortPair foo(tests[index].host, tests[index].port); tests 69 net/base/host_port_pair_unittest.cc EXPECT_EQ(tests[index].host_for_url, foo.HostForURL()); tests 26 net/base/ip_endpoint_unittest.cc } tests[] = { tests 32 net/base/ip_endpoint_unittest.cc int test_count = ARRAYSIZE_UNSAFE(tests); tests 39 net/base/ip_endpoint_unittest.cc EXPECT_TRUE(ParseIPLiteralToNumber(tests[index].host, tests 40 net/base/ip_endpoint_unittest.cc &tests[index].ip_address)); tests 50 net/base/ip_endpoint_unittest.cc IPEndPoint endpoint(tests[index].ip_address, 80); tests 52 net/base/ip_endpoint_unittest.cc EXPECT_EQ(tests[index].ip_address, endpoint.address()); tests 58 net/base/ip_endpoint_unittest.cc IPEndPoint src(tests[index].ip_address, index); tests 68 net/base/ip_endpoint_unittest.cc IPEndPoint src(tests[index].ip_address, index); tests 78 net/base/ip_endpoint_unittest.cc IPEndPoint ip_endpoint(tests[index].ip_address, index); tests 85 net/base/ip_endpoint_unittest.cc socklen_t expected_size = tests[index].ipv6 ? tests 101 net/base/ip_endpoint_unittest.cc IPEndPoint ip_endpoint(tests[index].ip_address, index); tests 120 net/base/ip_endpoint_unittest.cc IPEndPoint src(tests[index].ip_address, index); tests 128 net/base/ip_endpoint_unittest.cc IPEndPoint ip_endpoint1(tests[0].ip_address, 100); tests 129 net/base/ip_endpoint_unittest.cc IPEndPoint ip_endpoint2(tests[0].ip_address, 1000); tests 134 net/base/ip_endpoint_unittest.cc ip_endpoint1 = IPEndPoint(tests[0].ip_address, 81); tests 135 net/base/ip_endpoint_unittest.cc ip_endpoint2 = IPEndPoint(tests[2].ip_address, 80); tests 140 net/base/ip_endpoint_unittest.cc ip_endpoint1 = IPEndPoint(tests[0].ip_address, 81); tests 141 net/base/ip_endpoint_unittest.cc ip_endpoint2 = IPEndPoint(tests[1].ip_address, 80); tests 146 net/base/ip_endpoint_unittest.cc ip_endpoint1 = IPEndPoint(tests[2].ip_address, 81); tests 147 net/base/ip_endpoint_unittest.cc ip_endpoint2 = IPEndPoint(tests[3].ip_address, 80); tests 152 net/base/ip_endpoint_unittest.cc ip_endpoint1 = IPEndPoint(tests[0].ip_address, 80); tests 153 net/base/ip_endpoint_unittest.cc ip_endpoint2 = IPEndPoint(tests[0].ip_address, 80); tests 164 net/base/ip_endpoint_unittest.cc IPEndPoint endpoint(tests[index].ip_address, port); tests 166 net/base/ip_endpoint_unittest.cc EXPECT_EQ(tests[index].host_normalized + ":" + base::IntToString(port), tests 20 net/base/mime_sniffer_unittest.cc static void TestArray(SnifferTest* tests, size_t count) { tests 24 net/base/mime_sniffer_unittest.cc SniffMimeType(tests[i].content, tests 25 net/base/mime_sniffer_unittest.cc tests[i].content_len, tests 26 net/base/mime_sniffer_unittest.cc GURL(tests[i].url), tests 27 net/base/mime_sniffer_unittest.cc tests[i].type_hint, tests 29 net/base/mime_sniffer_unittest.cc EXPECT_EQ(tests[i].mime_type, mime_type); tests 63 net/base/mime_sniffer_unittest.cc SnifferTest tests[] = { tests 87 net/base/mime_sniffer_unittest.cc TestArray(tests, arraysize(tests)); tests 91 net/base/mime_sniffer_unittest.cc SnifferTest tests[] = { tests 154 net/base/mime_sniffer_unittest.cc TestArray(tests, arraysize(tests)); tests 158 net/base/mime_sniffer_unittest.cc SnifferTest tests[] = { tests 188 net/base/mime_sniffer_unittest.cc TestArray(tests, arraysize(tests)); tests 192 net/base/mime_sniffer_unittest.cc SnifferTest tests[] = { tests 251 net/base/mime_sniffer_unittest.cc TestArray(tests, arraysize(tests)); tests 255 net/base/mime_sniffer_unittest.cc SnifferTest tests[] = { tests 273 net/base/mime_sniffer_unittest.cc TestArray(tests, arraysize(tests)); tests 277 net/base/mime_sniffer_unittest.cc SnifferTest tests[] = { tests 301 net/base/mime_sniffer_unittest.cc TestArray(tests, arraysize(tests)); tests 398 net/base/mime_sniffer_unittest.cc SnifferTest tests[] = { tests 445 net/base/mime_sniffer_unittest.cc TestArray(tests, arraysize(tests)); tests 18 net/base/mime_util_unittest.cc } tests[] = { tests 29 net/base/mime_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 30 net/base/mime_util_unittest.cc rv = GetMimeTypeFromExtension(tests[i].extension, &mime_type); tests 31 net/base/mime_util_unittest.cc EXPECT_EQ(tests[i].valid, rv); tests 33 net/base/mime_util_unittest.cc EXPECT_EQ(tests[i].mime_type, mime_type); tests 42 net/base/mime_util_unittest.cc } tests[] = { tests 54 net/base/mime_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 55 net/base/mime_util_unittest.cc rv = GetMimeTypeFromFile(base::FilePath(tests[i].file_path), tests 57 net/base/mime_util_unittest.cc EXPECT_EQ(tests[i].valid, rv); tests 59 net/base/mime_util_unittest.cc EXPECT_EQ(tests[i].mime_type, mime_type); tests 168 net/base/mime_util_unittest.cc } tests[] = { tests 181 net/base/mime_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 183 net/base/mime_util_unittest.cc ParseCodecString(tests[i].original, &codecs_out, true); tests 184 net/base/mime_util_unittest.cc ASSERT_EQ(tests[i].expected_size, codecs_out.size()); tests 185 net/base/mime_util_unittest.cc for (size_t j = 0; j < tests[i].expected_size; ++j) tests 186 net/base/mime_util_unittest.cc EXPECT_EQ(tests[i].results[j], codecs_out[j]); tests 256 net/base/mime_util_unittest.cc } tests[] = { tests 272 net/base/mime_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 274 net/base/mime_util_unittest.cc GetExtensionsForMimeType(tests[i].mime_type, &extensions); tests 275 net/base/mime_util_unittest.cc ASSERT_TRUE(tests[i].min_expected_size <= extensions.size()); tests 277 net/base/mime_util_unittest.cc if (!tests[i].contained_result) tests 283 net/base/mime_util_unittest.cc if (extensions[j] == base::UTF8ToWide(tests[i].contained_result)) tests 286 net/base/mime_util_unittest.cc if (extensions[j] == tests[i].contained_result) tests 291 net/base/mime_util_unittest.cc << tests[i].mime_type; tests 622 net/base/net_util_unittest.cc } tests[] = { tests 659 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 661 net/base/net_util_unittest.cc tests[i].input_url)); tests 662 net/base/net_util_unittest.cc GURL url(tests[i].input_url); tests 667 net/base/net_util_unittest.cc EXPECT_EQ(ASCIIToUTF16(tests[i].expected_username), username); tests 668 net/base/net_util_unittest.cc EXPECT_EQ(ASCIIToUTF16(tests[i].expected_password), password); tests 712 net/base/net_util_unittest.cc const HeaderCase tests[] = { tests 721 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 723 net/base/net_util_unittest.cc GetSpecificHeader(google_headers, tests[i].header_name); tests 724 net/base/net_util_unittest.cc EXPECT_EQ(result, tests[i].expected); tests 728 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 729 net/base/net_util_unittest.cc std::string result = GetSpecificHeader(std::string(), tests[i].header_name); tests 2298 net/base/net_util_unittest.cc } tests[] = { tests 2323 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 2326 net/base/net_util_unittest.cc bool ok = ParseHostAndPort(tests[i].input, &host, &port); tests 2328 net/base/net_util_unittest.cc EXPECT_EQ(tests[i].success, ok); tests 2330 net/base/net_util_unittest.cc if (tests[i].success) { tests 2331 net/base/net_util_unittest.cc EXPECT_EQ(tests[i].expected_host, host); tests 2332 net/base/net_util_unittest.cc EXPECT_EQ(tests[i].expected_port, port); tests 2341 net/base/net_util_unittest.cc } tests[] = { tests 2349 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 2350 net/base/net_util_unittest.cc std::string host_and_port = GetHostAndPort(tests[i].url); tests 2351 net/base/net_util_unittest.cc EXPECT_EQ(std::string(tests[i].expected_host_and_port), host_and_port); tests 2359 net/base/net_util_unittest.cc } tests[] = { tests 2367 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 2368 net/base/net_util_unittest.cc std::string host_and_port = GetHostAndOptionalPort(tests[i].url); tests 2369 net/base/net_util_unittest.cc EXPECT_EQ(std::string(tests[i].expected_host_and_port), host_and_port); tests 2401 net/base/net_util_unittest.cc } tests[] = { tests 2407 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 2409 net/base/net_util_unittest.cc MakeIPv4Address(tests[i].addr, 80, &storage); tests 2411 net/base/net_util_unittest.cc EXPECT_EQ(std::string(tests[i].result), result); tests 2419 net/base/net_util_unittest.cc } tests[] = { tests 2425 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 2427 net/base/net_util_unittest.cc MakeIPv6Address(tests[i].addr, 80, &storage); tests 2428 net/base/net_util_unittest.cc EXPECT_EQ(std::string(tests[i].result), tests 2467 net/base/net_util_unittest.cc const UrlTestData tests[] = { tests 2638 net/base/net_util_unittest.cc for (size_t i = 0; i < arraysize(tests); ++i) { tests 2641 net/base/net_util_unittest.cc GURL(tests[i].input), tests[i].languages, tests[i].format_types, tests 2642 net/base/net_util_unittest.cc tests[i].escape_rules, NULL, &prefix_len, NULL); tests 2643 net/base/net_util_unittest.cc EXPECT_EQ(WideToUTF16(tests[i].output), formatted) << tests[i].description; tests 2644 net/base/net_util_unittest.cc EXPECT_EQ(tests[i].prefix_len, prefix_len) << tests[i].description; tests 3018 net/base/net_util_unittest.cc } tests[] = { tests 3050 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 3052 net/base/net_util_unittest.cc tests[i].input_url)); tests 3053 net/base/net_util_unittest.cc GURL input_url(GURL(tests[i].input_url)); tests 3054 net/base/net_util_unittest.cc GURL expected_url(GURL(tests[i].expected_simplified_url)); tests 3202 net/base/net_util_unittest.cc } tests[] = { tests 3256 net/base/net_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 3258 net/base/net_util_unittest.cc tests[i].cidr_literal, tests 3259 net/base/net_util_unittest.cc tests[i].ip_literal)); tests 3262 net/base/net_util_unittest.cc EXPECT_TRUE(ParseIPLiteralToNumber(tests[i].ip_literal, &ip_number)); tests 3267 net/base/net_util_unittest.cc EXPECT_TRUE(ParseCIDRBlock(tests[i].cidr_literal, tests 3271 net/base/net_util_unittest.cc EXPECT_EQ(tests[i].expected_to_match, tests 335 net/cert/multi_threaded_cert_verifier_unittest.cc } tests[] = { tests 386 net/cert/multi_threaded_cert_verifier_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 389 net/cert/multi_threaded_cert_verifier_unittest.cc const MultiThreadedCertVerifier::RequestParams& key1 = tests[i].key1; tests 390 net/cert/multi_threaded_cert_verifier_unittest.cc const MultiThreadedCertVerifier::RequestParams& key2 = tests[i].key2; tests 392 net/cert/multi_threaded_cert_verifier_unittest.cc switch (tests[i].expected_result) { tests 13 net/cookies/cookie_util_unittest.cc } tests[] = { tests 19 net/cookies/cookie_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 20 net/cookies/cookie_util_unittest.cc EXPECT_EQ(tests[i].is_host_only, tests 21 net/cookies/cookie_util_unittest.cc net::cookie_util::DomainIsHostOnly(tests[i].str)); tests 30 net/cookies/cookie_util_unittest.cc } tests[] = { tests 102 net/cookies/cookie_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 103 net/cookies/cookie_util_unittest.cc parsed_time = net::cookie_util::ParseCookieTime(tests[i].str); tests 104 net/cookies/cookie_util_unittest.cc if (!tests[i].valid) { tests 105 net/cookies/cookie_util_unittest.cc EXPECT_FALSE(!parsed_time.is_null()) << tests[i].str; tests 108 net/cookies/cookie_util_unittest.cc EXPECT_TRUE(!parsed_time.is_null()) << tests[i].str; tests 109 net/cookies/cookie_util_unittest.cc EXPECT_EQ(tests[i].epoch, parsed_time.ToTimeT()) << tests[i].str; tests 311 net/dns/host_cache_unittest.cc } tests[] = { tests 363 net/dns/host_cache_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 366 net/dns/host_cache_unittest.cc const HostCache::Key& key1 = tests[i].key1; tests 367 net/dns/host_cache_unittest.cc const HostCache::Key& key2 = tests[i].key2; tests 369 net/dns/host_cache_unittest.cc switch (tests[i].expected_comparison) { tests 24 net/http/http_auth_handler_basic_unittest.cc } tests[] = { tests 35 net/http/http_auth_handler_basic_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 40 net/http/http_auth_handler_basic_unittest.cc AuthCredentials credentials(base::ASCIIToUTF16(tests[i].username), tests 41 net/http/http_auth_handler_basic_unittest.cc base::ASCIIToUTF16(tests[i].password)); tests 47 net/http/http_auth_handler_basic_unittest.cc EXPECT_STREQ(tests[i].expected_credentials, auth_token.c_str()); tests 55 net/http/http_auth_handler_basic_unittest.cc } tests[] = { tests 90 net/http/http_auth_handler_basic_unittest.cc tests[0].challenge, HttpAuth::AUTH_SERVER, origin, tests 93 net/http/http_auth_handler_basic_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 94 net/http/http_auth_handler_basic_unittest.cc std::string challenge(tests[i].challenge); tests 97 net/http/http_auth_handler_basic_unittest.cc EXPECT_EQ(tests[i].expected_rv, basic->HandleAnotherChallenge(&tok)); tests 106 net/http/http_auth_handler_basic_unittest.cc } tests[] = { tests 186 net/http/http_auth_handler_basic_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 187 net/http/http_auth_handler_basic_unittest.cc std::string challenge = tests[i].challenge; tests 191 net/http/http_auth_handler_basic_unittest.cc EXPECT_EQ(tests[i].expected_rv, rv); tests 193 net/http/http_auth_handler_basic_unittest.cc EXPECT_EQ(tests[i].expected_realm, basic->realm()); tests 100 net/http/http_auth_handler_digest_unittest.cc } tests[] = { tests 354 net/http/http_auth_handler_digest_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 356 net/http/http_auth_handler_digest_unittest.cc int rv = factory->CreateAuthHandlerFromString(tests[i].challenge, tests 361 net/http/http_auth_handler_digest_unittest.cc if (tests[i].parsed_success) { tests 371 net/http/http_auth_handler_digest_unittest.cc EXPECT_STREQ(tests[i].parsed_realm, digest->realm_.c_str()); tests 372 net/http/http_auth_handler_digest_unittest.cc EXPECT_STREQ(tests[i].parsed_nonce, digest->nonce_.c_str()); tests 373 net/http/http_auth_handler_digest_unittest.cc EXPECT_STREQ(tests[i].parsed_domain, digest->domain_.c_str()); tests 374 net/http/http_auth_handler_digest_unittest.cc EXPECT_STREQ(tests[i].parsed_opaque, digest->opaque_.c_str()); tests 375 net/http/http_auth_handler_digest_unittest.cc EXPECT_EQ(tests[i].parsed_stale, digest->stale_); tests 376 net/http/http_auth_handler_digest_unittest.cc EXPECT_EQ(tests[i].parsed_algorithm, digest->algorithm_); tests 377 net/http/http_auth_handler_digest_unittest.cc EXPECT_EQ(tests[i].parsed_qop, digest->qop_); tests 395 net/http/http_auth_handler_digest_unittest.cc } tests[] = { tests 519 net/http/http_auth_handler_digest_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 521 net/http/http_auth_handler_digest_unittest.cc int rv = factory->CreateAuthHandlerFromString(tests[i].challenge, tests 532 net/http/http_auth_handler_digest_unittest.cc digest->AssembleCredentials(tests[i].req_method, tests 533 net/http/http_auth_handler_digest_unittest.cc tests[i].req_path, tests 535 net/http/http_auth_handler_digest_unittest.cc base::ASCIIToUTF16(tests[i].username), tests 536 net/http/http_auth_handler_digest_unittest.cc base::ASCIIToUTF16(tests[i].password)), tests 537 net/http/http_auth_handler_digest_unittest.cc tests[i].cnonce, tests 538 net/http/http_auth_handler_digest_unittest.cc tests[i].nonce_count); tests 540 net/http/http_auth_handler_digest_unittest.cc EXPECT_STREQ(tests[i].expected_creds, creds.c_str()); tests 71 net/http/http_auth_unittest.cc } tests[] = { tests 132 net/http/http_auth_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 135 net/http/http_auth_unittest.cc headers_with_status_line += tests[i].headers; tests 149 net/http/http_auth_unittest.cc EXPECT_EQ(tests[i].challenge_scheme, handler->auth_scheme()); tests 150 net/http/http_auth_unittest.cc EXPECT_STREQ(tests[i].challenge_realm, handler->realm().c_str()); tests 152 net/http/http_auth_unittest.cc EXPECT_EQ(HttpAuth::AUTH_SCHEME_MAX, tests[i].challenge_scheme); tests 153 net/http/http_auth_unittest.cc EXPECT_STREQ("", tests[i].challenge_realm); tests 14 net/http/http_byte_range_unittest.cc } tests[] = { tests 26 net/http/http_byte_range_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 28 net/http/http_byte_range_unittest.cc range.set_first_byte_position(tests[i].first_byte_position); tests 29 net/http/http_byte_range_unittest.cc range.set_last_byte_position(tests[i].last_byte_position); tests 30 net/http/http_byte_range_unittest.cc range.set_suffix_length(tests[i].suffix_length); tests 31 net/http/http_byte_range_unittest.cc EXPECT_EQ(tests[i].valid, range.IsValid()); tests 44 net/http/http_byte_range_unittest.cc } tests[] = { tests 58 net/http/http_byte_range_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 60 net/http/http_byte_range_unittest.cc range.set_first_byte_position(tests[i].first_byte_position); tests 61 net/http/http_byte_range_unittest.cc range.set_last_byte_position(tests[i].last_byte_position); tests 62 net/http/http_byte_range_unittest.cc range.set_suffix_length(tests[i].suffix_length); tests 64 net/http/http_byte_range_unittest.cc bool return_value = range.ComputeBounds(tests[i].instance_size); tests 65 net/http/http_byte_range_unittest.cc EXPECT_EQ(tests[i].expected_return_value, return_value); tests 67 net/http/http_byte_range_unittest.cc EXPECT_EQ(tests[i].expected_lower_bound, range.first_byte_position()); tests 68 net/http/http_byte_range_unittest.cc EXPECT_EQ(tests[i].expected_upper_bound, range.last_byte_position()); tests 71 net/http/http_byte_range_unittest.cc EXPECT_FALSE(range.ComputeBounds(tests[i].instance_size)); tests 73 net/http/http_byte_range_unittest.cc EXPECT_EQ(tests[i].expected_lower_bound, range.first_byte_position()); tests 74 net/http/http_byte_range_unittest.cc EXPECT_EQ(tests[i].expected_upper_bound, range.last_byte_position()); tests 75 net/http/http_byte_range_unittest.cc EXPECT_EQ(tests[i].suffix_length, range.suffix_length()); tests 84 net/http/http_byte_range_unittest.cc } tests[] = {{net::HttpByteRange::Bounded(0, 0), "bytes=0-0"}, tests 89 net/http/http_byte_range_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 90 net/http/http_byte_range_unittest.cc EXPECT_EQ(tests[i].expected, tests[i].range.GetHeaderValue()); tests 23 net/http/http_content_disposition_unittest.cc const FileNameCDCase tests[] = { tests 198 net/http/http_content_disposition_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 199 net/http/http_content_disposition_unittest.cc HttpContentDisposition header(tests[i].header, tests[i].referrer_charset); tests 200 net/http/http_content_disposition_unittest.cc EXPECT_EQ(tests[i].expected, tests 202 net/http/http_content_disposition_unittest.cc << "Failed on input: " << tests[i].header; tests 212 net/http/http_content_disposition_unittest.cc } tests[] = { tests 506 net/http/http_content_disposition_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 507 net/http/http_content_disposition_unittest.cc HttpContentDisposition header(tests[i].header, std::string()); tests 508 net/http/http_content_disposition_unittest.cc EXPECT_EQ(tests[i].expected_type, header.type()) tests 509 net/http/http_content_disposition_unittest.cc << "Failed on input: " << tests[i].header; tests 510 net/http/http_content_disposition_unittest.cc EXPECT_EQ(tests[i].expected_filename, base::UTF8ToWide(header.filename())) tests 511 net/http/http_content_disposition_unittest.cc << "Failed on input: " << tests[i].header; tests 377 net/http/http_network_layer_unittest.cc } tests[] = { tests 415 net/http/http_network_layer_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 426 net/http/http_network_layer_unittest.cc tests[i].method, tests 427 net/http/http_network_layer_unittest.cc tests[i].content, tests 428 net/http/http_network_layer_unittest.cc tests[i].expected_to_retry, 1u); tests 7452 net/http/http_network_transaction_unittest.cc const GroupNameTest tests[] = { tests 7489 net/http/http_network_transaction_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 7491 net/http/http_network_transaction_unittest.cc ProxyService::CreateFixed(tests[i].proxy_server)); tests 7508 net/http/http_network_transaction_unittest.cc GroupNameTransactionHelper(tests[i].url, session)); tests 7509 net/http/http_network_transaction_unittest.cc if (tests[i].ssl) tests 7510 net/http/http_network_transaction_unittest.cc EXPECT_EQ(tests[i].expected_group_name, tests 7513 net/http/http_network_transaction_unittest.cc EXPECT_EQ(tests[i].expected_group_name, tests 7520 net/http/http_network_transaction_unittest.cc const GroupNameTest tests[] = { tests 7553 net/http/http_network_transaction_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 7555 net/http/http_network_transaction_unittest.cc ProxyService::CreateFixed(tests[i].proxy_server)); tests 7575 net/http/http_network_transaction_unittest.cc GroupNameTransactionHelper(tests[i].url, session)); tests 7576 net/http/http_network_transaction_unittest.cc if (tests[i].ssl) tests 7577 net/http/http_network_transaction_unittest.cc EXPECT_EQ(tests[i].expected_group_name, tests 7580 net/http/http_network_transaction_unittest.cc EXPECT_EQ(tests[i].expected_group_name, tests 7586 net/http/http_network_transaction_unittest.cc const GroupNameTest tests[] = { tests 7624 net/http/http_network_transaction_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 7626 net/http/http_network_transaction_unittest.cc ProxyService::CreateFixed(tests[i].proxy_server)); tests 7649 net/http/http_network_transaction_unittest.cc GroupNameTransactionHelper(tests[i].url, session)); tests 7650 net/http/http_network_transaction_unittest.cc if (tests[i].ssl) tests 7651 net/http/http_network_transaction_unittest.cc EXPECT_EQ(tests[i].expected_group_name, tests 7654 net/http/http_network_transaction_unittest.cc EXPECT_EQ(tests[i].expected_group_name, tests 312 net/http/http_response_headers_unittest.cc } tests[] = { tests 476 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 477 net/http/http_response_headers_unittest.cc std::string headers = tests[i].raw_headers; tests 483 net/http/http_response_headers_unittest.cc parsed1->Persist(&pickle, tests[i].options); tests 491 net/http/http_response_headers_unittest.cc EXPECT_EQ(std::string(tests[i].expected_headers), h2); tests 586 net/http/http_response_headers_unittest.cc const ContentTypeTestData tests[] = { tests 717 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < arraysize(tests); ++i) { tests 718 net/http/http_response_headers_unittest.cc std::string headers(tests[i].raw_headers); tests 724 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].has_mimetype, parsed->GetMimeType(&value)); tests 725 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].mime_type, value); tests 727 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].has_charset, parsed->GetCharset(&value)); tests 728 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].charset, value); tests 730 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].all_content_type, value); tests 738 net/http/http_response_headers_unittest.cc } tests[] = { tests 868 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 869 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 876 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].requires_validation, requires_validation); tests 885 net/http/http_response_headers_unittest.cc } tests[] = { tests 966 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 967 net/http/http_response_headers_unittest.cc std::string orig_headers(tests[i].orig_headers); tests 972 net/http/http_response_headers_unittest.cc std::string new_headers(tests[i].new_headers); tests 981 net/http/http_response_headers_unittest.cc EXPECT_EQ(std::string(tests[i].expected_headers), resulting_headers); tests 989 net/http/http_response_headers_unittest.cc } tests[] = { tests 1012 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1013 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 1028 net/http/http_response_headers_unittest.cc EXPECT_EQ(std::string(tests[i].expected_lines), lines); tests 1037 net/http/http_response_headers_unittest.cc } tests[] = { tests 1096 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1097 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 1103 net/http/http_response_headers_unittest.cc EXPECT_EQ(parsed->IsRedirect(&location), tests[i].is_redirect); tests 1104 net/http/http_response_headers_unittest.cc EXPECT_EQ(location, tests[i].location); tests 1112 net/http/http_response_headers_unittest.cc } tests[] = { tests 1182 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1183 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 1188 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_len, parsed->GetContentLength()); tests 1199 net/http/http_response_headers_unittest.cc } tests[] = { tests 1433 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1434 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 1445 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_return_value, return_value); tests 1446 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_first_byte_position, first_byte_position); tests 1447 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_last_byte_position, last_byte_position); tests 1448 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_instance_size, instance_size); tests 1456 net/http/http_response_headers_unittest.cc } tests[] = { tests 1515 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1516 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 1521 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_keep_alive, parsed->IsKeepAlive()); tests 1529 net/http/http_response_headers_unittest.cc } tests[] = { tests 1574 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1575 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 1580 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_result, parsed->HasStrongValidators()) << tests 1625 net/http/http_response_headers_unittest.cc } tests[] = { tests 1650 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1651 net/http/http_response_headers_unittest.cc std::string orig_headers(tests[i].orig_headers); tests 1656 net/http/http_response_headers_unittest.cc std::string new_header(tests[i].new_header); tests 1661 net/http/http_response_headers_unittest.cc EXPECT_EQ(std::string(tests[i].expected_headers), resulting_headers); tests 1670 net/http/http_response_headers_unittest.cc } tests[] = { tests 1695 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1696 net/http/http_response_headers_unittest.cc std::string orig_headers(tests[i].orig_headers); tests 1701 net/http/http_response_headers_unittest.cc std::string name(tests[i].to_remove); tests 1706 net/http/http_response_headers_unittest.cc EXPECT_EQ(std::string(tests[i].expected_headers), resulting_headers); tests 1716 net/http/http_response_headers_unittest.cc } tests[] = { tests 1788 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1789 net/http/http_response_headers_unittest.cc std::string orig_headers(tests[i].orig_headers); tests 1794 net/http/http_response_headers_unittest.cc std::string name(tests[i].to_remove_name); tests 1795 net/http/http_response_headers_unittest.cc std::string value(tests[i].to_remove_value); tests 1800 net/http/http_response_headers_unittest.cc EXPECT_EQ(std::string(tests[i].expected_headers), resulting_headers); tests 1809 net/http/http_response_headers_unittest.cc } tests[] = { tests 1844 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1845 net/http/http_response_headers_unittest.cc std::string orig_headers(tests[i].orig_headers); tests 1850 net/http/http_response_headers_unittest.cc std::string name(tests[i].new_status); tests 1855 net/http/http_response_headers_unittest.cc EXPECT_EQ(std::string(tests[i].expected_headers), resulting_headers); tests 1864 net/http/http_response_headers_unittest.cc } tests[] = { tests 1890 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1891 net/http/http_response_headers_unittest.cc std::string orig_headers(tests[i].orig_headers); tests 1901 net/http/http_response_headers_unittest.cc EXPECT_EQ(std::string(tests[i].expected_headers), resulting_headers); tests 1906 net/http/http_response_headers_unittest.cc EXPECT_EQ(std::string(tests[i].expected_headers_with_replaced_status), tests 1945 net/http/http_response_headers_unittest.cc } tests[] = { tests 2090 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 2091 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 2097 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_result, tests 2099 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_retry_delay, tests 2101 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_bypass_all, tests 2110 net/http/http_response_headers_unittest.cc } tests[] = { tests 2170 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 2171 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 2176 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_result, parsed->IsChromeProxyResponse()); tests 2184 net/http/http_response_headers_unittest.cc } tests[] = { tests 2242 net/http/http_response_headers_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 2243 net/http/http_response_headers_unittest.cc std::string headers(tests[i].headers); tests 2248 net/http/http_response_headers_unittest.cc EXPECT_EQ(tests[i].expected_result, tests 108 net/http/http_util_unittest.cc } tests[] = { tests 117 net/http/http_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 118 net/http/http_util_unittest.cc bool result = HttpUtil::HasHeader(tests[i].headers, tests[i].name); tests 119 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_result, result); tests 267 net/http/http_util_unittest.cc } tests[] = { tests 275 net/http/http_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 276 net/http/http_util_unittest.cc int input_len = static_cast<int>(strlen(tests[i].input)); tests 277 net/http/http_util_unittest.cc int eoh = HttpUtil::LocateEndOfHeaders(tests[i].input, input_len); tests 278 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_result, eoh); tests 286 net/http/http_util_unittest.cc } tests[] = { tests 585 net/http/http_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 586 net/http/http_util_unittest.cc std::string input = tests[i].input; tests 590 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_result, raw); tests 600 net/http/http_util_unittest.cc } tests[] = { tests 632 net/http/http_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 633 net/http/http_util_unittest.cc GURL url(GURL(tests[i].url)); tests 634 net/http/http_util_unittest.cc std::string expected_spec(tests[i].expected_spec); tests 635 net/http/http_util_unittest.cc std::string expected_path(tests[i].expected_path); tests 665 net/http/http_util_unittest.cc } tests[] = { tests 728 net/http/http_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 733 net/http/http_util_unittest.cc net::HttpUtil::ParseContentType(tests[i].content_type, &mime_type, tests 735 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_mime_type, mime_type) << "i=" << i; tests 736 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_charset, charset) << "i=" << i; tests 737 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_had_charset, had_charset) << "i=" << i; tests 738 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_boundary, boundary) << "i=" << i; tests 752 net/http/http_util_unittest.cc } tests[] = { tests 856 net/http/http_util_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 858 net/http/http_util_unittest.cc bool return_value = HttpUtil::ParseRanges(std::string(tests[i].headers), tests 860 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_return_value, return_value); tests 862 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_ranges_size, ranges.size()); tests 864 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_ranges[j].expected_first_byte_position, tests 866 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_ranges[j].expected_last_byte_position, tests 868 net/http/http_util_unittest.cc EXPECT_EQ(tests[i].expected_ranges[j].expected_suffix_length, tests 245 net/proxy/proxy_bypass_rules_unittest.cc } tests[] = { tests 278 net/proxy/proxy_bypass_rules_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 280 net/proxy/proxy_bypass_rules_unittest.cc "Test[%d]: %s", static_cast<int>(i), tests[i].url)); tests 281 net/proxy/proxy_bypass_rules_unittest.cc EXPECT_EQ(tests[i].expected_is_local, rules.Matches(GURL(tests[i].url))); tests 411 net/proxy/proxy_config_service_linux_unittest.cc } tests[] = { tests 681 net/proxy/proxy_config_service_linux_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 683 net/proxy/proxy_config_service_linux_unittest.cc tests[i].description.c_str())); tests 689 net/proxy/proxy_config_service_linux_unittest.cc setting_getter->values = tests[i].values; tests 693 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_EQ(tests[i].availability, availability); tests 696 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_EQ(tests[i].auto_detect, config.auto_detect()); tests 697 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_EQ(tests[i].pac_url, config.pac_url()); tests 698 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_TRUE(tests[i].proxy_rules.Matches(config.proxy_rules())); tests 717 net/proxy/proxy_config_service_linux_unittest.cc } tests[] = { tests 989 net/proxy/proxy_config_service_linux_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 991 net/proxy/proxy_config_service_linux_unittest.cc tests[i].description.c_str())); tests 997 net/proxy/proxy_config_service_linux_unittest.cc env->values = tests[i].values; tests 1001 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_EQ(tests[i].availability, availability); tests 1004 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_EQ(tests[i].auto_detect, config.auto_detect()); tests 1005 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_EQ(tests[i].pac_url, config.pac_url()); tests 1006 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_TRUE(tests[i].proxy_rules.Matches(config.proxy_rules())); tests 1057 net/proxy/proxy_config_service_linux_unittest.cc } tests[] = { tests 1493 net/proxy/proxy_config_service_linux_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 1495 net/proxy/proxy_config_service_linux_unittest.cc tests[i].description.c_str())); tests 1497 net/proxy/proxy_config_service_linux_unittest.cc env->values = tests[i].env_values; tests 1505 net/proxy/proxy_config_service_linux_unittest.cc base::WriteFile(kioslaverc_, tests[i].kioslaverc.c_str(), tests 1506 net/proxy/proxy_config_service_linux_unittest.cc tests[i].kioslaverc.length()); tests 1510 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_EQ(tests[i].availability, availability); tests 1513 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_EQ(tests[i].auto_detect, config.auto_detect()); tests 1514 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_EQ(tests[i].pac_url, config.pac_url()); tests 1515 net/proxy/proxy_config_service_linux_unittest.cc EXPECT_TRUE(tests[i].proxy_rules.Matches(config.proxy_rules())); tests 24 net/proxy/proxy_config_service_win_unittest.cc } tests[] = { tests 192 net/proxy/proxy_config_service_win_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 194 net/proxy/proxy_config_service_win_unittest.cc ProxyConfigServiceWin::SetFromIEConfig(&config, tests[i].ie_config); tests 196 net/proxy/proxy_config_service_win_unittest.cc EXPECT_EQ(tests[i].auto_detect, config.auto_detect()); tests 197 net/proxy/proxy_config_service_win_unittest.cc EXPECT_EQ(tests[i].pac_url, config.pac_url()); tests 198 net/proxy/proxy_config_service_win_unittest.cc EXPECT_TRUE(tests[i].proxy_rules.Matches(config.proxy_rules())); tests 109 net/proxy/proxy_config_unittest.cc } tests[] = { tests 311 net/proxy/proxy_config_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 312 net/proxy/proxy_config_unittest.cc config.proxy_rules().ParseFromString(tests[i].proxy_rules); tests 314 net/proxy/proxy_config_unittest.cc EXPECT_EQ(tests[i].type, config.proxy_rules().type); tests 315 net/proxy/proxy_config_unittest.cc ExpectProxyServerEquals(tests[i].single_proxy, tests 317 net/proxy/proxy_config_unittest.cc ExpectProxyServerEquals(tests[i].proxy_for_http, tests 319 net/proxy/proxy_config_unittest.cc ExpectProxyServerEquals(tests[i].proxy_for_https, tests 321 net/proxy/proxy_config_unittest.cc ExpectProxyServerEquals(tests[i].proxy_for_ftp, tests 323 net/proxy/proxy_config_unittest.cc ExpectProxyServerEquals(tests[i].fallback_proxy, tests 21 net/proxy/proxy_list_unittest.cc } tests[] = { tests 60 net/proxy/proxy_list_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 62 net/proxy/proxy_list_unittest.cc list.SetFromPacString(tests[i].pac_input); tests 63 net/proxy/proxy_list_unittest.cc EXPECT_EQ(tests[i].pac_output, list.ToPacString()); tests 73 net/proxy/proxy_list_unittest.cc } tests[] = { tests 86 net/proxy/proxy_list_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 88 net/proxy/proxy_list_unittest.cc list.SetFromPacString(tests[i].pac_input); tests 89 net/proxy/proxy_list_unittest.cc list.RemoveProxiesWithoutScheme(tests[i].filter); tests 90 net/proxy/proxy_list_unittest.cc EXPECT_EQ(tests[i].filtered_pac_output, list.ToPacString()); tests 20 net/proxy/proxy_server_unittest.cc } tests[] = { tests 162 net/proxy/proxy_server_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 164 net/proxy/proxy_server_unittest.cc net::ProxyServer::FromURI(tests[i].input_uri, tests 168 net/proxy/proxy_server_unittest.cc EXPECT_EQ(tests[i].expected_uri, uri.ToURI()); tests 169 net/proxy/proxy_server_unittest.cc EXPECT_EQ(tests[i].expected_scheme, uri.scheme()); tests 170 net/proxy/proxy_server_unittest.cc EXPECT_EQ(tests[i].expected_host, uri.host_port_pair().host()); tests 171 net/proxy/proxy_server_unittest.cc EXPECT_EQ(tests[i].expected_port, uri.host_port_pair().port()); tests 172 net/proxy/proxy_server_unittest.cc EXPECT_EQ(tests[i].expected_pac_string, uri.ToPacString()); tests 194 net/proxy/proxy_server_unittest.cc const char* tests[] = { tests 205 net/proxy/proxy_server_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 207 net/proxy/proxy_server_unittest.cc net::ProxyServer::FromURI(tests[i], net::ProxyServer::SCHEME_HTTP); tests 217 net/proxy/proxy_server_unittest.cc const char* tests[] = { tests 223 net/proxy/proxy_server_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 225 net/proxy/proxy_server_unittest.cc net::ProxyServer::FromURI(tests[i], net::ProxyServer::SCHEME_HTTP); tests 235 net/proxy/proxy_server_unittest.cc } tests[] = { tests 282 net/proxy/proxy_server_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 283 net/proxy/proxy_server_unittest.cc net::ProxyServer uri = net::ProxyServer::FromPacString(tests[i].input_pac); tests 285 net/proxy/proxy_server_unittest.cc EXPECT_EQ(tests[i].expected_uri, uri.ToURI()); tests 291 net/proxy/proxy_server_unittest.cc const char* tests[] = { tests 298 net/proxy/proxy_server_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 299 net/proxy/proxy_server_unittest.cc net::ProxyServer uri = net::ProxyServer::FromPacString(tests[i]); tests 315 net/proxy/proxy_server_unittest.cc } tests[] = { tests 338 net/proxy/proxy_server_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 342 net/proxy/proxy_server_unittest.cc tests[i].server1, net::ProxyServer::SCHEME_HTTP); tests 346 net/proxy/proxy_server_unittest.cc tests[i].server2, net::ProxyServer::SCHEME_HTTP); tests 348 net/proxy/proxy_server_unittest.cc switch (tests[i].expected_comparison) { tests 32 net/quic/crypto/crypto_utils_test.cc } tests[] = { tests 41 net/quic/crypto/crypto_utils_test.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 42 net/quic/crypto/crypto_utils_test.cc EXPECT_EQ(std::string(tests[i].expected), tests 43 net/quic/crypto/crypto_utils_test.cc CryptoUtils::NormalizeHostname(tests[i].input)); tests 47 net/quic/quic_utils_test.cc } tests[] = { tests 56 net/quic/quic_utils_test.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 57 net/quic/quic_utils_test.cc EXPECT_EQ(tests[i].expected, tests 58 net/quic/quic_utils_test.cc QuicUtils::StringToHexASCIIDump(tests[i].input.c_str())); tests 59 net/quic/quic_utils_test.cc EXPECT_EQ(tests[i].expected, tests 60 net/quic/quic_utils_test.cc QuicUtils::StringToHexASCIIDump(tests[i].input)); tests 61 net/quic/quic_utils_test.cc EXPECT_EQ(tests[i].expected, tests 62 net/quic/quic_utils_test.cc QuicUtils::StringToHexASCIIDump(StringPiece(tests[i].input))); tests 201 net/socket/socks_client_socket_unittest.cc } tests[] = { tests 216 net/socket/socks_client_socket_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 220 net/socket/socks_client_socket_unittest.cc MockRead(SYNCHRONOUS, tests[i].fail_reply, tests 221 net/socket/socks_client_socket_unittest.cc arraysize(tests[i].fail_reply)) }; tests 239 net/socket/socks_client_socket_unittest.cc EXPECT_EQ(tests[i].fail_code, rv); tests 433 net/udp/udp_socket_unittest.cc } tests[] = { tests 442 net/udp/udp_socket_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); i++) { tests 443 net/udp/udp_socket_unittest.cc SCOPED_TRACE(std::string("Connecting from ") + tests[i].local_address + tests 444 net/udp/udp_socket_unittest.cc std::string(" to ") + tests[i].remote_address); tests 447 net/udp/udp_socket_unittest.cc ParseIPLiteralToNumber(tests[i].remote_address, &ip_number); tests 449 net/udp/udp_socket_unittest.cc ParseIPLiteralToNumber(tests[i].local_address, &ip_number); tests 457 net/udp/udp_socket_unittest.cc if (tests[i].may_fail && rv == ERR_ADDRESS_UNREACHABLE) { tests 6262 net/url_request/url_request_unittest.cc } tests[] = { { "echoheader?Accept-Language", "None" }, tests 6266 net/url_request/url_request_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); i++) { tests 6269 net/url_request/url_request_unittest.cc test_server_.GetURL(tests[i].request), DEFAULT_PRIORITY, &d, &context); tests 6272 net/url_request/url_request_unittest.cc EXPECT_EQ(tests[i].expected_response, d.data_received()) tests 6273 net/url_request/url_request_unittest.cc << " Request = \"" << tests[i].request << "\""; tests 284 remoting/protocol/jingle_messages_unittest.cc } tests[] = { tests 317 remoting/protocol/jingle_messages_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 319 remoting/protocol/jingle_messages_unittest.cc if (tests[i].error_text.empty()) { tests 320 remoting/protocol/jingle_messages_unittest.cc reply_msg = JingleMessageReply(tests[i].error); tests 322 remoting/protocol/jingle_messages_unittest.cc reply_msg = JingleMessageReply(tests[i].error, tests[i].error_text); tests 326 remoting/protocol/jingle_messages_unittest.cc scoped_ptr<XmlElement> expected(XmlElement::ForStr(tests[i].expected_text)); tests 929 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc }* tests; tests 971 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc arg_value->tests = new ArgValue::Tests[arg_value->size]; tests 985 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc arg_value->tests[n].k_value = k_value; tests 987 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc arg_value->tests[n].err = (rand() % 1000) + 1; tests 988 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc arg_value->tests[n].arg_value = NULL; tests 990 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc arg_value->tests[n].err = 0; tests 991 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc arg_value->tests[n].arg_value = tests 1031 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc if (!arg_value->tests[n].err) { tests 1032 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc DeleteArgValue(arg_value->tests[n].arg_value); tests 1035 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc delete[] arg_value->tests; tests 1066 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc if (arg_value->tests[n].err) { tests 1067 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc matched = ErrorCode(arg_value->tests[n].err); tests 1069 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc matched = ToErrorCode(sandbox, arg_value->tests[n].arg_value); tests 1077 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc arg_value->tests[n].k_value, tests 1090 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc mismatched += arg_value.tests[n].k_value; tests 1091 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc args[arg_value.argno] = arg_value.tests[n].k_value; tests 1092 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc if (arg_value.tests[n].err) { tests 1093 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc VerifyErrno(sysno, args, arg_value.tests[n].err); tests 1095 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc Verify(sysno, args, *arg_value.tests[n].arg_value); tests 1104 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc if (mismatched == arg_value.tests[n].k_value) { tests 106 third_party/libxml/src/schematron.c xmlSchematronTestPtr tests; /* the list of tests */ tests 341 third_party/libxml/src/schematron.c if (rule->tests == NULL) { tests 342 third_party/libxml/src/schematron.c rule->tests = ret; tests 344 third_party/libxml/src/schematron.c xmlSchematronTestPtr prev = rule->tests; tests 360 third_party/libxml/src/schematron.c xmlSchematronFreeTests(xmlSchematronTestPtr tests) { tests 363 third_party/libxml/src/schematron.c while (tests != NULL) { tests 364 third_party/libxml/src/schematron.c next = tests->next; tests 365 third_party/libxml/src/schematron.c if (tests->test != NULL) tests 366 third_party/libxml/src/schematron.c xmlFree(tests->test); tests 367 third_party/libxml/src/schematron.c if (tests->comp != NULL) tests 368 third_party/libxml/src/schematron.c xmlXPathFreeCompExpr(tests->comp); tests 369 third_party/libxml/src/schematron.c if (tests->report != NULL) tests 370 third_party/libxml/src/schematron.c xmlFree(tests->report); tests 371 third_party/libxml/src/schematron.c xmlFree(tests); tests 372 third_party/libxml/src/schematron.c tests = next; tests 457 third_party/libxml/src/schematron.c if (rules->tests) tests 458 third_party/libxml/src/schematron.c xmlSchematronFreeTests(rules->tests); tests 1692 third_party/libxml/src/schematron.c test = rule->tests; tests 1723 third_party/libxml/src/schematron.c test = rule->tests; tests 24 third_party/re2/re2/testing/charclass_test.cc static CCTest tests[] = { tests 197 third_party/re2/re2/testing/charclass_test.cc for (int i = 0; i < arraysize(tests); i++) { tests 199 third_party/re2/re2/testing/charclass_test.cc CCTest* t = &tests[i]; tests 28 third_party/re2/re2/testing/compile_test.cc static Test tests[] = { tests 106 third_party/re2/re2/testing/compile_test.cc for (int i = 0; i < arraysize(tests); i++) { tests 107 third_party/re2/re2/testing/compile_test.cc const re2::Test& t = tests[i]; tests 165 third_party/re2/re2/testing/exhaustive_tester.cc t.regexps(), t.tests(), t.failures(), maxstrlen, (int)stralphabet.size()); tests 42 third_party/re2/re2/testing/exhaustive_tester.h int tests() { return tests_; } tests 16 third_party/re2/re2/testing/mimics_pcre_test.cc static PCRETest tests[] = { tests 60 third_party/re2/re2/testing/mimics_pcre_test.cc for (int i = 0; i < arraysize(tests); i++) { tests 61 third_party/re2/re2/testing/mimics_pcre_test.cc const PCRETest& t = tests[i]; tests 27 third_party/re2/re2/testing/parse_test.cc static Test tests[] = { tests 201 third_party/re2/re2/testing/parse_test.cc void TestParse(const Test* tests, int ntests, Regexp::ParseFlags flags, tests 207 third_party/re2/re2/testing/parse_test.cc if (tests[i].flags != 0) { tests 208 third_party/re2/re2/testing/parse_test.cc f = tests[i].flags & ~TestZeroFlags; tests 210 third_party/re2/re2/testing/parse_test.cc re[i] = Regexp::Parse(tests[i].regexp, f, &status); tests 211 third_party/re2/re2/testing/parse_test.cc CHECK(re[i] != NULL) << " " << tests[i].regexp << " " tests 214 third_party/re2/re2/testing/parse_test.cc EXPECT_EQ(string(tests[i].parse), s) << "Regexp: " << tests[i].regexp tests 215 third_party/re2/re2/testing/parse_test.cc << "\nparse: " << tests[i].parse << " s: " << s << " flag=" << f; tests 220 third_party/re2/re2/testing/parse_test.cc EXPECT_EQ(string(tests[i].parse) == tests[j].parse, tests 222 third_party/re2/re2/testing/parse_test.cc << "Regexp: " << tests[i].regexp << " " << tests[j].regexp; tests 233 third_party/re2/re2/testing/parse_test.cc TestParse(tests, arraysize(tests), kTestFlags, "simple"); tests 382 third_party/re2/re2/testing/parse_test.cc for (int i = 0; i < arraysize(tests); i++) { tests 385 third_party/re2/re2/testing/parse_test.cc if (tests[i].flags != 0) { tests 386 third_party/re2/re2/testing/parse_test.cc f = tests[i].flags & ~TestZeroFlags; tests 388 third_party/re2/re2/testing/parse_test.cc Regexp* re = Regexp::Parse(tests[i].regexp, f, &status); tests 389 third_party/re2/re2/testing/parse_test.cc CHECK(re != NULL) << " " << tests[i].regexp << " " << status.Text(); tests 391 third_party/re2/re2/testing/parse_test.cc EXPECT_EQ(string(tests[i].parse), s) << " " << tests[i].regexp << " " << string(tests[i].parse) << " " << s; tests 393 third_party/re2/re2/testing/parse_test.cc if (t != tests[i].regexp) { tests 408 third_party/re2/re2/testing/parse_test.cc LOG(INFO) << "ToString(" << tests[i].regexp << ") = " << t; tests 30 third_party/re2/re2/testing/possible_match_test.cc static PrefixTest tests[] = { tests 104 third_party/re2/re2/testing/possible_match_test.cc for (int i = 0; i < arraysize(tests); i++) { tests 106 third_party/re2/re2/testing/possible_match_test.cc const PrefixTest& t = tests[i]; tests 237 third_party/re2/re2/testing/possible_match_test.cc << t.tests() << " tests"; tests 39 third_party/re2/re2/testing/random_test.cc t.regexps(), t.tests(), t.failures(), maxstrlen, (int)stralphabet.size()); tests 112 third_party/re2/re2/testing/re2_test.cc static const ReplaceTest tests[] = { tests 183 third_party/re2/re2/testing/re2_test.cc for (const ReplaceTest *t = tests; t->original != NULL; ++t) { tests 18 third_party/re2/re2/testing/required_prefix_test.cc static PrefixTest tests[] = { tests 40 third_party/re2/re2/testing/required_prefix_test.cc for (int i = 0; i < arraysize(tests); i++) { tests 41 third_party/re2/re2/testing/required_prefix_test.cc const PrefixTest& t = tests[i]; tests 19 third_party/re2/re2/testing/simplify_test.cc static Test tests[] = { tests 142 third_party/re2/re2/testing/simplify_test.cc for (int i = 0; i < arraysize(tests); i++) { tests 144 third_party/re2/re2/testing/simplify_test.cc VLOG(1) << "Testing " << tests[i].regexp; tests 145 third_party/re2/re2/testing/simplify_test.cc Regexp* re = Regexp::Parse(tests[i].regexp, tests 149 third_party/re2/re2/testing/simplify_test.cc CHECK(re != NULL) << " " << tests[i].regexp << " " << status.Text(); tests 154 third_party/re2/re2/testing/simplify_test.cc if (strcmp(tests[i].regexp, tests[i].simplified) == 0) { tests 155 third_party/re2/re2/testing/simplify_test.cc CHECK(re == sre) << " " << tests[i].regexp tests 159 third_party/re2/re2/testing/simplify_test.cc EXPECT_EQ(tests[i].simplified, sre->ToString()) tests 160 third_party/re2/re2/testing/simplify_test.cc << " " << tests[i].regexp << " " << sre->Dump(); tests 18 third_party/re2/util/test.cc static Test tests[10000]; tests 22 third_party/re2/util/test.cc tests[ntests].fn = fn; tests 23 third_party/re2/util/test.cc tests[ntests++].name = name; tests 40 third_party/re2/util/test.cc printf("%s\n", tests[i].name); tests 41 third_party/re2/util/test.cc tests[i].fn(); tests 95 third_party/talloc/libreplace/test/testsuite.c } tests[] = { tests 104 third_party/talloc/libreplace/test/testsuite.c for (i=0;tests[i].src;i++) { tests 105 third_party/talloc/libreplace/test/testsuite.c if (strlcpy(buf, tests[i].src, sizeof(buf)) != tests[i].result) { tests 19 ui/gfx/geometry/point3_unittest.cc } tests[] = { tests 29 ui/gfx/geometry/point3_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) tests 30 ui/gfx/geometry/point3_unittest.cc EXPECT_EQ(tests[i].expected.ToString(), tests 31 ui/gfx/geometry/point3_unittest.cc tests[i].actual.ToString()); tests 59 ui/gfx/geometry/point_unittest.cc } tests[] = { tests 69 ui/gfx/geometry/point_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) tests 70 ui/gfx/geometry/point_unittest.cc EXPECT_EQ(tests[i].expected.ToString(), tests[i].actual.ToString()); tests 114 ui/gfx/geometry/quad_unittest.cc } tests[] = { tests 153 ui/gfx/geometry/quad_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 154 ui/gfx/geometry/quad_unittest.cc PointF a_off = tests[i].a_off; tests 155 ui/gfx/geometry/quad_unittest.cc PointF b_off = tests[i].b_off; tests 156 ui/gfx/geometry/quad_unittest.cc PointF c_off = tests[i].c_off; tests 157 ui/gfx/geometry/quad_unittest.cc PointF d_off = tests[i].d_off; tests 57 ui/gfx/geometry/rect_unittest.cc } tests[] = { tests 69 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 70 ui/gfx/geometry/rect_unittest.cc Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); tests 71 ui/gfx/geometry/rect_unittest.cc Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); tests 72 ui/gfx/geometry/rect_unittest.cc EXPECT_EQ(tests[i].intersects, r1.Intersects(r2)); tests 73 ui/gfx/geometry/rect_unittest.cc EXPECT_EQ(tests[i].intersects, r2.Intersects(r1)); tests 91 ui/gfx/geometry/rect_unittest.cc } tests[] = { tests 111 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 112 ui/gfx/geometry/rect_unittest.cc Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); tests 113 ui/gfx/geometry/rect_unittest.cc Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); tests 114 ui/gfx/geometry/rect_unittest.cc Rect r3(tests[i].x3, tests[i].y3, tests[i].w3, tests[i].h3); tests 137 ui/gfx/geometry/rect_unittest.cc } tests[] = { tests 160 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 161 ui/gfx/geometry/rect_unittest.cc Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); tests 162 ui/gfx/geometry/rect_unittest.cc Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); tests 163 ui/gfx/geometry/rect_unittest.cc Rect r3(tests[i].x3, tests[i].y3, tests[i].w3, tests[i].h3); tests 195 ui/gfx/geometry/rect_unittest.cc } tests[] = { tests 212 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 213 ui/gfx/geometry/rect_unittest.cc Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); tests 214 ui/gfx/geometry/rect_unittest.cc Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); tests 215 ui/gfx/geometry/rect_unittest.cc Rect r3(tests[i].x3, tests[i].y3, tests[i].w3, tests[i].h3); tests 435 ui/gfx/geometry/rect_unittest.cc } tests[] = { tests 456 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 457 ui/gfx/geometry/rect_unittest.cc Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); tests 458 ui/gfx/geometry/rect_unittest.cc RectF r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); tests 460 ui/gfx/geometry/rect_unittest.cc RectF scaled = ScaleRect(r1, tests[i].scale); tests 478 ui/gfx/geometry/rect_unittest.cc } tests [] = { tests 506 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 507 ui/gfx/geometry/rect_unittest.cc RectF r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); tests 508 ui/gfx/geometry/rect_unittest.cc Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); tests 528 ui/gfx/geometry/rect_unittest.cc } tests [] = { tests 558 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 559 ui/gfx/geometry/rect_unittest.cc RectF r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); tests 560 ui/gfx/geometry/rect_unittest.cc Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); tests 591 ui/gfx/geometry/rect_unittest.cc } tests [] = { tests 602 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 603 ui/gfx/geometry/rect_unittest.cc RectF r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); tests 604 ui/gfx/geometry/rect_unittest.cc Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); tests 619 ui/gfx/geometry/rect_unittest.cc } tests[] = { tests 651 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 652 ui/gfx/geometry/rect_unittest.cc Rect result = ScaleToEnclosedRect(tests[i].input_rect, tests 653 ui/gfx/geometry/rect_unittest.cc tests[i].input_scale); tests 654 ui/gfx/geometry/rect_unittest.cc EXPECT_EQ(tests[i].expected_rect.ToString(), result.ToString()); tests 663 ui/gfx/geometry/rect_unittest.cc } tests[] = { tests 695 ui/gfx/geometry/rect_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 696 ui/gfx/geometry/rect_unittest.cc Rect result = ScaleToEnclosingRect(tests[i].input_rect, tests 697 ui/gfx/geometry/rect_unittest.cc tests[i].input_scale); tests 698 ui/gfx/geometry/rect_unittest.cc EXPECT_EQ(tests[i].expected_rect.ToString(), result.ToString()); tests 184 ui/gfx/geometry/vector3d_unittest.cc } tests[] = { tests 198 ui/gfx/geometry/vector3d_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 199 ui/gfx/geometry/vector3d_unittest.cc float actual = gfx::DotProduct(tests[i].input1, tests[i].input2); tests 200 ui/gfx/geometry/vector3d_unittest.cc EXPECT_EQ(tests[i].expected, actual); tests 209 ui/gfx/geometry/vector3d_unittest.cc } tests[] = { tests 226 ui/gfx/geometry/vector3d_unittest.cc for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { tests 227 ui/gfx/geometry/vector3d_unittest.cc Vector3dF actual = gfx::CrossProduct(tests[i].input1, tests[i].input2); tests 228 ui/gfx/geometry/vector3d_unittest.cc EXPECT_EQ(tests[i].expected.ToString(), actual.ToString());