/external/chromium_org/content/browser/renderer_host/p2p/ |
D | socket_host_tcp_unittest.cc | 107 std::string expected_data; in TEST_F() local 108 expected_data.append(IntToSize(packet1.size())); in TEST_F() 109 expected_data.append(packet1.begin(), packet1.end()); in TEST_F() 110 expected_data.append(IntToSize(packet2.size())); in TEST_F() 111 expected_data.append(packet2.begin(), packet2.end()); in TEST_F() 112 expected_data.append(IntToSize(packet3.size())); in TEST_F() 113 expected_data.append(packet3.begin(), packet3.end()); in TEST_F() 115 EXPECT_EQ(expected_data, sent_data_); in TEST_F() 202 std::string expected_data; in TEST_F() local 203 expected_data.append(IntToSize(packet.size())); in TEST_F() [all …]
|
/external/chromium_org/chrome/test/mini_installer/ |
D | registry_verifier.py | 95 expected_data = value_expectation['data'] 96 if isinstance(expected_data, basestring): 97 expected_data = variable_expander.Expand(expected_data) 98 assert expected_data == data, \ 101 " Actual: %s" % (value, key, expected_data, data))
|
/external/chromium_org/net/base/ |
D | upload_data_stream_unittest.cc | 587 std::string expected_data(kTestData, kTestData + kTestDataSize); in TEST_F() local 588 expected_data += expected_data; in TEST_F() 598 EXPECT_EQ(expected_data, ReadFromUploadDataStream(&stream)); in TEST_F() 609 EXPECT_EQ(expected_data, ReadFromUploadDataStream(&stream)); in TEST_F() 632 std::string expected_data(kTestData, kTestData + kTestDataSize); in TEST_F() local 633 expected_data += expected_data; in TEST_F() 642 EXPECT_EQ(expected_data, ReadFromUploadDataStream(&stream)); in TEST_F() 652 EXPECT_EQ(expected_data, ReadFromUploadDataStream(&stream)); in TEST_F() 674 std::vector<char> expected_data(kTestData, kTestData + kTestDataSize); in TEST_F() local 675 expected_data.insert(expected_data.end(), expected_data.begin(), in TEST_F() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | httpbase_unittest.cc | 104 void VerifyDocumentContents(const char* expected_data, 110 void ReadDocumentStreamData(const char* expected_data); 114 void VerifySourceContents(const char* expected_data, 187 void HttpBaseTest::VerifyDocumentContents(const char* expected_data, in VerifyDocumentContents() argument 192 expected_length = strlen(expected_data); in VerifyDocumentContents() 199 EXPECT_TRUE(0 == memcmp(expected_data, mem->GetBuffer(), length)); in VerifyDocumentContents() 237 void HttpBaseTest::ReadDocumentStreamData(const char* expected_data) { in ReadDocumentStreamData() argument 245 const size_t expected_length = strlen(expected_data); in ReadDocumentStreamData() 252 EXPECT_TRUE(0 == memcmp(expected_data + verified_length, buffer, read)); in ReadDocumentStreamData() 296 void HttpBaseTest::VerifySourceContents(const char* expected_data, in VerifySourceContents() argument [all …]
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
D | drive_url_request_job_unittest.cc | 223 std::string expected_data; in TEST_F() local 224 ASSERT_TRUE(ReadDriveFileSync(kTestFilePath, &expected_data)); in TEST_F() 225 EXPECT_EQ(expected_data, test_delegate_->data_received()); in TEST_F() 245 std::string expected_data; in TEST_F() local 246 ASSERT_TRUE(ReadDriveFileSync(kTestFilePath, &expected_data)); in TEST_F() 247 EXPECT_EQ(expected_data, test_delegate_->data_received()); in TEST_F() 357 std::string expected_data; in TEST_F() local 358 ASSERT_TRUE(ReadDriveFileSync(kTestFilePath, &expected_data)); in TEST_F() 359 EXPECT_EQ(expected_data.substr(3, 3), test_delegate_->data_received()); in TEST_F()
|
D | fileapi_worker_unittest.cc | 106 void VerifyRead(const std::string& expected_data, in VerifyRead() argument 116 const int data_size = static_cast<int>(expected_data.size()); in VerifyRead() 124 EXPECT_EQ(expected_data, std::string(buffer.begin(), buffer.end())); in VerifyRead()
|
/external/chromium/base/ |
D | linux_util.cc | 255 pid_t FindThreadIDWithSyscall(pid_t pid, const std::string& expected_data) { in FindThreadIDWithSyscall() argument 275 scoped_array<char> syscall_data(new char[expected_data.length()]); in FindThreadIDWithSyscall() 284 file_util::ReadFromFD(fd, syscall_data.get(), expected_data.length()); in FindThreadIDWithSyscall() 289 if (0 == strncmp(expected_data.c_str(), syscall_data.get(), in FindThreadIDWithSyscall() 290 expected_data.length())) { in FindThreadIDWithSyscall()
|
D | linux_util.h | 39 pid_t FindThreadIDWithSyscall(pid_t pid, const std::string& expected_data);
|
/external/chromium_org/base/ |
D | linux_util.cc | 255 pid_t FindThreadIDWithSyscall(pid_t pid, const std::string& expected_data, in FindThreadIDWithSyscall() argument 280 scoped_ptr<char[]> syscall_data(new char[expected_data.length()]); in FindThreadIDWithSyscall() 290 bool read_ret = ReadFromFD(fd, syscall_data.get(), expected_data.length()); in FindThreadIDWithSyscall() 295 if (0 == strncmp(expected_data.c_str(), syscall_data.get(), in FindThreadIDWithSyscall() 296 expected_data.length())) { in FindThreadIDWithSyscall()
|
D | linux_util.h | 42 const std::string& expected_data,
|
/external/chromium_org/net/test/ |
D | openssl_helper.cc | 229 const unsigned char *data, *expected_data; in main() local 233 expected_data = (unsigned char*) "foo"; in main() 236 expected_data = (unsigned char*) "baz"; in main() 239 if (len != expected_len || memcmp(data, expected_data, len) != 0) { in main()
|
/external/chromium/net/test/ |
D | openssl_helper.cc | 229 const unsigned char *data, *expected_data; in main() local 233 expected_data = (unsigned char*) "foo"; in main() 236 expected_data = (unsigned char*) "baz"; in main() 239 if (len != expected_len || memcmp(data, expected_data, len) != 0) { in main()
|
/external/chromium_org/tools/grit/grit/gather/ |
D | chrome_scaled_image_unittest.py | 110 for context, expected_data in expected_outputs.items(): 111 self.assertEquals(expected_data, 114 self.assertEquals(expected_data,
|
/external/libvpx/libvpx/test/ |
D | pp_filter_test.cc | 88 static const uint8_t expected_data[block_height] = { in TEST_P() local 95 EXPECT_EQ(expected_data[i], pixel_ptr[j]) in TEST_P()
|
/external/chromium_org/components/policy/core/common/cloud/ |
D | device_management_service_unittest.cc | 413 std::string expected_data; in TEST_F() local 414 ASSERT_TRUE(request_job->GetRequest()->SerializeToString(&expected_data)); in TEST_F() 415 EXPECT_EQ(expected_data, fetcher->upload_data()); in TEST_F() 440 std::string expected_data; in TEST_F() local 441 ASSERT_TRUE(request_job->GetRequest()->SerializeToString(&expected_data)); in TEST_F() 442 EXPECT_EQ(expected_data, fetcher->upload_data()); in TEST_F() 473 std::string expected_data; in TEST_F() local 474 ASSERT_TRUE(request_job->GetRequest()->SerializeToString(&expected_data)); in TEST_F() 475 EXPECT_EQ(expected_data, fetcher->upload_data()); in TEST_F()
|
/external/chromium_org/ppapi/proxy/ |
D | raw_var_data_unittest.cc | 55 scoped_ptr<RawVarDataGraph> expected_data(RawVarDataGraph::Create( in WriteAndRead() local 57 if (!expected_data) in WriteAndRead() 60 expected_data->Write(&m, base::Bind(&DefaultHandleWriter)); in WriteAndRead()
|
/external/chromium_org/third_party/WebKit/Tools/TestResultServer/model/ |
D | jsonresults_unittest.py | 237 …def _test_merge(self, aggregated_data, incremental_data, expected_data, max_builds=jsonresults.JSO… argument 242 if expected_data: 243 expected_results = self._make_test_json(expected_data, builder_name=self._builder) 249 def _test_get_test_list(self, input_data, expected_data): argument 251 …N_RESULTS_TEST_LIST_TEMPLATE.replace("{[TESTDATA_TESTS]}", json.dumps(expected_data, separators=('…
|
D | testfile_test.py | 61 def _assertFileMatchesData(self, expected_data, actual_file): argument 63 …self.assertEqual(expected_data, actual_fields, 'Mismatch between expected fields in file and actua…
|
/external/chromium_org/chrome/browser/sync_file_system/local/ |
D | canned_syncable_file_system.cc | 99 const std::string& expected_data, in OnCreateSnapshotFileAndVerifyData() argument 109 EXPECT_EQ(expected_data.size(), static_cast<size_t>(file_info.size)); in OnCreateSnapshotFileAndVerifyData() 113 EXPECT_EQ(expected_data, data); in OnCreateSnapshotFileAndVerifyData() 421 const std::string& expected_data) { in VerifyFile() argument 428 expected_data)); in VerifyFile() 643 const std::string& expected_data, in DoVerifyFile() argument 649 base::Bind(&OnCreateSnapshotFileAndVerifyData, expected_data, callback)); in DoVerifyFile()
|
/external/chromium_org/testing/gtest/test/ |
D | gtest-listener_test.cc | 178 const char* const* expected_data, in VerifyResults() argument 190 ASSERT_STREQ(expected_data[i], data[i].c_str()) in VerifyResults()
|
/external/chromium/testing/gtest/test/ |
D | gtest-listener_test.cc | 181 const char* const* expected_data, in VerifyResults() argument 193 ASSERT_STREQ(expected_data[i], data[i].c_str()) in VerifyResults()
|
/external/protobuf/gtest/test/ |
D | gtest-listener_test.cc | 190 const char* const* expected_data, in VerifyResults() argument 202 ASSERT_STREQ(expected_data[i], data.GetElement(i).c_str()) in VerifyResults()
|
/external/gtest/test/ |
D | gtest-listener_test.cc | 181 const char* const* expected_data, in VerifyResults() argument 193 ASSERT_STREQ(expected_data[i], data[i].c_str()) in VerifyResults()
|
/external/chromium_org/base/files/ |
D | file_util_proxy_unittest.cc | 273 const char expected_data[] = "bleh"; in TEST_F() local 274 int expected_bytes = arraysize(expected_data); in TEST_F() 276 file_util::WriteFile(test_path(), expected_data, expected_bytes)); in TEST_F() 291 EXPECT_EQ(expected_data[i], buffer_[i]); in TEST_F()
|
/external/chromium/chrome/browser/ |
D | idbbindingutilities_browsertest.cc | 316 const char16 expected_data[] = {0x353, 0x6f66, 0x536f, 0x7a03, 0x6f6f, 0x353, in IN_PROC_BROWSER_TEST_F() local 320 string16(expected_data, in IN_PROC_BROWSER_TEST_F() 321 arraysize(expected_data))); in IN_PROC_BROWSER_TEST_F()
|