Home
last modified time | relevance | path

Searched refs:kTests (Results 1 – 16 of 16) sorted by relevance

/external/chromium_org/net/websockets/
Dwebsocket_frame_test.cc37 static const TestCase kTests[] = { in TEST() local
46 static const int kNumTests = ARRAYSIZE_UNSAFE(kTests); in TEST()
51 header.payload_length = kTests[i].frame_length; in TEST()
54 kTests[i].frame_header, in TEST()
55 kTests[i].frame_header + kTests[i].frame_header_length); in TEST()
75 static const TestCase kTests[] = { in TEST() local
85 static const int kNumTests = ARRAYSIZE_UNSAFE(kTests); in TEST()
96 header.payload_length = kTests[i].frame_length; in TEST()
99 kTests[i].frame_header, in TEST()
100 kTests[i].frame_header + kTests[i].frame_header_length); in TEST()
[all …]
Dwebsocket_frame_parser_test.cc425 static const TestCase kTests[] = { in TEST() local
435 static const int kNumTests = ARRAYSIZE_UNSAFE(kTests); in TEST()
438 const char* frame_header = kTests[i].frame_header; in TEST()
439 size_t frame_header_length = kTests[i].frame_header_length; in TEST()
463 static const TestCase kTests[] = { in TEST() local
483 static const int kNumTests = ARRAYSIZE_UNSAFE(kTests); in TEST()
486 const char* frame_header = kTests[i].frame_header; in TEST()
487 size_t frame_header_length = kTests[i].frame_header_length; in TEST()
488 WebSocketFrameHeader::OpCode opcode = kTests[i].opcode; in TEST()
527 static const TestCase kTests[] = { in TEST() local
[all …]
/external/chromium_org/chrome/common/extensions/
Dcommand_unittest.cc61 } kTests[] = { in TEST() local
121 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) { in TEST()
124 input->SetString("suggested_key", kTests[i].key); in TEST()
125 input->SetString("description", kTests[i].description); in TEST()
127 SCOPED_TRACE(std::string("Command name: |") + kTests[i].command_name + in TEST()
128 "| key: |" + kTests[i].key + in TEST()
129 "| description: |" + kTests[i].description + in TEST()
135 command.Parse(input.get(), kTests[i].command_name, i, &error); in TEST()
137 EXPECT_EQ(kTests[i].expected_result, result); in TEST()
139 EXPECT_STREQ(kTests[i].description, in TEST()
[all …]
/external/chromium/net/http/
Dhttp_stream_factory_impl_unittest.cc96 TestCase kTests[] = { variable
215 for (size_t i = 0; i < arraysize(kTests); ++i) { in TEST()
229 PreconnectHelper(kTests[i], session); in TEST()
230 if (kTests[i].ssl) in TEST()
231 EXPECT_EQ(kTests[i].num_streams, ssl_conn_pool->last_num_streams()); in TEST()
233 EXPECT_EQ(kTests[i].num_streams, transport_conn_pool->last_num_streams()); in TEST()
238 for (size_t i = 0; i < arraysize(kTests); ++i) { in TEST()
253 PreconnectHelper(kTests[i], session); in TEST()
254 if (kTests[i].ssl) in TEST()
255 EXPECT_EQ(kTests[i].num_streams, ssl_conn_pool->last_num_streams()); in TEST()
[all …]
/external/chromium_org/chrome/browser/chromeos/
Dkeyboard_driven_event_rewriter_unittest.cc81 } kTests[] = { in TEST_F() local
117 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) { in TEST_F()
118 EXPECT_EQ(GetExpectedResultAsString(kTests[i].ui_flags, in TEST_F()
119 kTests[i].x_state, in TEST_F()
121 GetRewrittenEventAsString(kTests[i].ui_keycode, in TEST_F()
122 kTests[i].ui_flags, in TEST_F()
124 kTests[i].x_keycode, in TEST_F()
125 kTests[i].x_state)) in TEST_F()
139 } kTests[] = { in TEST_F() local
148 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) { in TEST_F()
[all …]
/external/chromium_org/chrome/browser/spellchecker/
Dspelling_service_client_unittest.cc229 } kTests[] = { in TEST_F() local
307 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) { in TEST_F()
308 client_.SetHTTPRequest(kTests[i].request_type, kTests[i].request_text, in TEST_F()
309 kTests[i].language); in TEST_F()
310 client_.SetHTTPResponse(kTests[i].response_status, kTests[i].response_data); in TEST_F()
311 client_.SetExpectedTextCheckResult(kTests[i].success, in TEST_F()
312 kTests[i].corrected_text); in TEST_F()
313 pref->SetString(prefs::kSpellCheckDictionary, kTests[i].language); in TEST_F()
316 kTests[i].request_type, in TEST_F()
317 ASCIIToUTF16(kTests[i].request_text), in TEST_F()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dstringencode_unittest.cc40 } kTests[] = { in TEST() local
54 for (size_t i = 0; kTests[i].encoded; ++i) { in TEST()
56 ASSERT_EQ(kTests[i].enclen, utf8_decode(kTests[i].encoded, in TEST()
57 kTests[i].encsize, in TEST()
59 unsigned long result = (kTests[i].enclen == 0) ? 0 : kTests[i].decoded; in TEST()
62 if (kTests[i].decoded == 0) { in TEST()
69 ASSERT_EQ(kTests[i].enclen, utf8_encode(buffer, in TEST()
70 kTests[i].encsize, in TEST()
71 kTests[i].decoded)); in TEST()
72 ASSERT_TRUE(memcmp(buffer, kTests[i].encoded, kTests[i].enclen) == 0); in TEST()
[all …]
/external/ceres-solver/internal/ceres/
Dnumeric_diff_test_utils.cc108 } kTests[] = { in ExpectCostFunctionEvaluationIsNearlyCorrect() local
129 for (int k = 0; k < CERES_ARRAYSIZE(kTests); ++k) { in ExpectCostFunctionEvaluationIsNearlyCorrect()
130 double *x1 = &(kTests[k].x1[0]); in ExpectCostFunctionEvaluationIsNearlyCorrect()
131 double *x2 = &(kTests[k].x2[0]); in ExpectCostFunctionEvaluationIsNearlyCorrect()
Druntime_numeric_diff_cost_function_test.cc168 } kTests[] = { in TEST() local
188 for (int k = 0; k < CERES_ARRAYSIZE(kTests); ++k) { in TEST()
189 double *x1 = &(kTests[k].x1[0]); in TEST()
190 double *x2 = &(kTests[k].x2[0]); in TEST()
/external/chromium_org/net/http/
Dhttp_stream_factory_impl_unittest.cc300 TestCase kTests[] = { variable
450 for (size_t i = 0; i < arraysize(kTests); ++i) { in TEST_P()
470 PreconnectHelper(kTests[i], session.get()); in TEST_P()
471 if (kTests[i].ssl) in TEST_P()
472 EXPECT_EQ(kTests[i].num_streams, ssl_conn_pool->last_num_streams()); in TEST_P()
474 EXPECT_EQ(kTests[i].num_streams, transport_conn_pool->last_num_streams()); in TEST_P()
479 for (size_t i = 0; i < arraysize(kTests); ++i) { in TEST_P()
500 PreconnectHelper(kTests[i], session.get()); in TEST_P()
501 if (kTests[i].ssl) in TEST_P()
502 EXPECT_EQ(kTests[i].num_streams, ssl_conn_pool->last_num_streams()); in TEST_P()
[all …]
/external/chromium/chrome/common/extensions/
Dextension_unittest.cc920 } kTests[] = { in TEST() local
971 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) { in TEST()
974 std::string(kTests[i].base_name) + "_old.json")); in TEST()
977 std::string(kTests[i].base_name) + "_new.json")); in TEST()
980 for (size_t j = 0; kTests[i].granted_apis[j] != NULL; ++j) in TEST()
981 granted_apis.insert(kTests[i].granted_apis[j]); in TEST()
984 for (size_t j = 0; kTests[i].granted_hosts[j] != NULL; ++j) in TEST()
985 AddPattern(&granted_hosts, kTests[i].granted_hosts[j]); in TEST()
987 EXPECT_TRUE(new_extension.get()) << kTests[i].base_name << "_new.json"; in TEST()
991 EXPECT_EQ(kTests[i].expect_increase, in TEST()
[all …]
/external/chromium_org/content/renderer/webcrypto/
Dwebcrypto_impl_unittest.cc286 const TestCase kTests[] = { in TEST_F() local
340 for (size_t test_index = 0; test_index < ARRAYSIZE_UNSAFE(kTests); in TEST_F()
343 const TestCase& test = kTests[test_index]; in TEST_F()
363 const TestCase kTests[] = { in TEST_F() local
443 for (size_t test_index = 0; test_index < ARRAYSIZE_UNSAFE(kTests); in TEST_F()
446 const TestCase& test = kTests[test_index]; in TEST_F()
581 TestCase kTests[] = { in TEST_F() local
651 for (size_t index = 0; index < ARRAYSIZE_UNSAFE(kTests); index++) { in TEST_F()
653 const TestCase& test = kTests[index]; in TEST_F()
/external/chromium_org/cc/trees/
Dlayer_tree_host_unittest_context.cc248 static const TestCase kTests[] = { in NextTestCase() local
311 if (test_case_ >= arraysize(kTests)) in NextTestCase()
319 kTests[test_case_].times_to_lose_during_commit; in NextTestCase()
321 kTests[test_case_].times_to_lose_during_draw; in NextTestCase()
322 times_to_fail_recreate_ = kTests[test_case_].times_to_fail_recreate; in NextTestCase()
324 kTests[test_case_].times_to_fail_recreate_offscreen; in NextTestCase()
325 fallback_context_works_ = kTests[test_case_].fallback_context_works; in NextTestCase()
/external/chromium_org/chrome/common/extensions/api/
Dextension_api_unittest.cc834 } kTests[] = { in TEST() local
880 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) { in TEST()
881 EXPECT_EQ(kTests[i].expect_success, in TEST()
882 extension_api->IsAvailable(kTests[i].permission_name, in TEST()
886 << "Permission being tested: " << kTests[i].permission_name; in TEST()
/external/chromium_org/chrome/common/extensions/permissions/
Dpermission_set_unittest.cc588 } kTests[] = { in TEST() local
625 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) { in TEST()
628 std::string(kTests[i].base_name) + "_old.json")); in TEST()
631 std::string(kTests[i].base_name) + "_new.json")); in TEST()
633 EXPECT_TRUE(new_extension.get()) << kTests[i].base_name << "_new.json"; in TEST()
645 EXPECT_EQ(kTests[i].expect_increase, increased) << kTests[i].base_name; in TEST()
/external/chromium_org/chrome/browser/extensions/api/web_request/
Dweb_request_api_unittest.cc1024 HeaderModificationTest kTests[] = { variable
1154 ::testing::ValuesIn(kTests));