/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | buffer_unittest.cc | 33 static const char kTestData[] = { variable 52 Buffer buf(kTestData, sizeof(kTestData)); in TEST() 53 EXPECT_EQ(sizeof(kTestData), buf.length()); in TEST() 54 EXPECT_EQ(sizeof(kTestData), buf.capacity()); in TEST() 55 EXPECT_EQ(0, memcmp(buf.data(), kTestData, sizeof(kTestData))); in TEST() 56 EXPECT_EQ(Buffer(kTestData, sizeof(kTestData)), buf); in TEST() 60 Buffer buf(kTestData, sizeof(kTestData), 256U); in TEST() 61 EXPECT_EQ(sizeof(kTestData), buf.length()); in TEST() 63 EXPECT_EQ(0, memcmp(buf.data(), kTestData, sizeof(kTestData))); in TEST() 64 EXPECT_EQ(Buffer(kTestData, sizeof(kTestData)), buf); in TEST() [all …]
|
D | multipart_unittest.cc | 42 static const char kTestData[] = "This is a test."; variable 63 multipart.Write(kTestData, sizeof(kTestData), NULL, NULL)); in TEST() 75 multipart.GetPartSize(kTestData, "form-data; name=\"text\"", "text"); in TEST() 76 EXPECT_TRUE(multipart.AddPart(kTestData, "form-data; name=\"text\"", "text")); in TEST() 122 pos = str.find(kTestData, pos); in TEST() 124 pos += sizeof(kTestData); in TEST()
|
D | win32toolhelp_unittest.cc | 65 *d = kTestData[0]; in First() 79 *d = kTestData[tst->index_]; in Next() 136 static const TestData kTestData[]; member in talk_base::Win32ToolhelpTest 144 const TestData Win32ToolhelpTest::kTestData[] = { member in talk_base::Win32ToolhelpTest 259 EXPECT_TRUE(Equals(t->current(), kTestData[0])); in TEST_F() 261 EXPECT_TRUE(Equals(t->current(), kTestData[1])); in TEST_F() 263 EXPECT_TRUE(Equals(t->current(), kTestData[2])); in TEST_F()
|
/external/chromium/net/base/ |
D | file_stream_unittest.cc | 19 const char kTestData[] = "0123456789"; variable 20 const int kTestDataSize = arraysize(kTestData) - 1; 28 file_util::WriteFile(temp_file_path_, kTestData, kTestDataSize); in SetUp() 53 file_util::WriteFile(temp_file_path(), kTestData, kTestDataSize)); in TEST_F() 65 ASSERT_EQ(0, memcmp(kTestData, buffer, kTestDataSize)); in TEST_F() 75 ASSERT_EQ(kTestDataSize, write_stream.Write(kTestData, kTestDataSize, NULL)); in TEST_F() 81 ASSERT_EQ(0, memcmp(kTestData, buffer, kTestDataSize)); in TEST_F() 130 EXPECT_EQ(kTestData, data_read); in TEST_F() 165 EXPECT_EQ(kTestData, data_read); in TEST_F() 194 EXPECT_EQ(std::string(kTestData, rv), std::string(buf, rv)); in TEST_F() [all …]
|
D | upload_data_stream_unittest.cc | 23 const char kTestData[] = "0123456789"; variable 24 const int kTestDataSize = arraysize(kTestData) - 1; 48 upload_data_->AppendBytes(kTestData, kTestDataSize); in TEST_F() 61 kTestData, kTestDataSize)); in TEST_F() 110 kTestData, kTestDataSize)); in TEST_F()
|
/external/chromium_org/net/base/ |
D | upload_data_stream_unittest.cc | 37 const char kTestData[] = "0123456789"; variable 38 const size_t kTestDataSize = arraysize(kTestData) - 1; 155 kTestData, kTestDataSize)); in TEST_F() 177 file_util::WriteFile(temp_file_path, kTestData, kTestDataSize)); in TEST_F() 211 file_util::WriteFile(temp_file_path, kTestData, kTestDataSize)); in TEST_F() 260 kTestData, kTestDataSize)); in TEST_F() 295 kTestData, kTestDataSize)); in TEST_F() 329 file_util::WriteFile(temp_file_path, kTestData, kTestDataSize)); in TEST_F() 341 kTestData, kTestDataSize)); in TEST_F() 368 stream.AppendChunk(kTestData, kTestDataSize, false); in TEST_F() [all …]
|
D | file_stream_unittest.cc | 32 const char kTestData[] = "0123456789"; variable 33 const int kTestDataSize = arraysize(kTestData) - 1; 38 memcpy(buf->data(), kTestData, kTestDataSize); in CreateTestDataBuffer() 50 file_util::WriteFile(temp_file_path_, kTestData, kTestDataSize); in SetUp() 148 file_util::WriteFile(temp_file_path(), kTestData, kTestDataSize)); in TEST_F() 172 file_util::WriteFile(temp_file_path(), kTestData, kTestDataSize)); in TEST_F() 186 ASSERT_EQ(0, memcmp(kTestData, buffer, kTestDataSize)); in TEST_F() 198 write_stream->WriteSync(kTestData, kTestDataSize)); in TEST_F() 204 ASSERT_EQ(0, memcmp(kTestData, buffer, kTestDataSize)); in TEST_F() 253 EXPECT_EQ(kTestData, data_read); in TEST_F() [all …]
|
/external/chromium_org/third_party/sfntly/cpp/src/test/ |
D | memory_io_test.cc | 27 const char* kTestData = variable 39 std::copy(kTestData, kTestData + kTestBufferLen, test_buffer.begin()); in TestMemoryInputStream() 87 std::copy(kTestData, kTestData + kTestBufferLen, test_buffer.begin()); in TestMemoryOutputStream()
|
/external/sfntly/cpp/src/test/ |
D | memory_io_test.cc | 27 const char* kTestData = variable 39 std::copy(kTestData, kTestData + kTestBufferLen, test_buffer.begin()); in TestMemoryInputStream() 87 std::copy(kTestData, kTestData + kTestBufferLen, test_buffer.begin()); in TestMemoryOutputStream()
|
/external/chromium_org/media/base/ |
D | djb2_unittest.cc | 9 uint8 kTestData[] = { 1, 2, 3 }; variable 13 EXPECT_EQ(DJB2Hash(kTestData, sizeof(kTestData), 5381u), in TEST()
|
D | data_buffer_unittest.cc | 45 const uint8 kTestData[] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 }; in TEST() local 46 const int kTestDataSize = arraysize(kTestData); in TEST() 49 DataBuffer::CopyFrom(kTestData, kTestDataSize); in TEST() 54 EXPECT_EQ(0, memcmp(buffer->data(), kTestData, kTestDataSize)); in TEST() 56 EXPECT_NE(0, memcmp(buffer->data(), kTestData, kTestDataSize)); in TEST()
|
/external/chromium_org/ui/base/ime/ |
D | composition_text_util_pango_unittest.cc | 39 const TestData kTestData[] = { variable 109 for (size_t i = 0; i < arraysize(kTestData); ++i) { in TEST() 110 const char* text = kTestData[i].text; in TEST() 111 const AttributeInfo* attrs = kTestData[i].attrs; in TEST() 139 const Underline* underlines = kTestData[i].underlines; in TEST()
|
/external/chromium/chrome/browser/extensions/ |
D | user_script_listener_unittest.cc | 28 const char kTestData[] = "Hello, World!"; variable 100 : net::URLRequestTestJob(request, test_headers(), kTestData, true) {} in SimpleTestJob() 189 EXPECT_EQ(kTestData, delegate.data_received()); in TEST_F() 212 EXPECT_EQ(kTestData, delegate.data_received()); in TEST_F() 223 EXPECT_EQ(kTestData, delegate.data_received()); in TEST_F() 238 EXPECT_EQ(kTestData, delegate.data_received()); in TEST_F()
|
/external/chromium_org/chrome/browser/extensions/ |
D | crx_installer_browsertest.cc | 330 const bool kTestData[] = {false, true}; in IN_PROC_BROWSER_TEST_F() local 332 for (size_t i = 0; i < arraysize(kTestData); ++i) { in IN_PROC_BROWSER_TEST_F() 341 if (kTestData[i]) { in IN_PROC_BROWSER_TEST_F() 347 EXPECT_EQ(kTestData[i], in IN_PROC_BROWSER_TEST_F() 348 WaitForExtensionInstall()) << kTestData[i]; in IN_PROC_BROWSER_TEST_F() 349 EXPECT_EQ(kTestData[i], mock_prompt->did_succeed()); in IN_PROC_BROWSER_TEST_F() 350 EXPECT_EQ(kTestData[i], mock_prompt->confirmation_requested()) << in IN_PROC_BROWSER_TEST_F() 351 kTestData[i]; in IN_PROC_BROWSER_TEST_F() 352 if (kTestData[i]) { in IN_PROC_BROWSER_TEST_F() 353 EXPECT_EQ(base::string16(), mock_prompt->error()) << kTestData[i]; in IN_PROC_BROWSER_TEST_F() [all …]
|
D | user_script_listener_unittest.cc | 35 const char kTestData[] = "Hello, World!"; variable 74 kTestData, in SimpleTestJob() 220 EXPECT_EQ(kTestData, delegate.data_received()); in TEST_F() 245 EXPECT_EQ(kTestData, delegate.data_received()); in TEST_F() 258 EXPECT_EQ(kTestData, delegate.data_received()); in TEST_F() 275 EXPECT_EQ(kTestData, delegate.data_received()); in TEST_F() 317 EXPECT_EQ(kTestData, delegate.data_received()); in TEST_F()
|
/external/chromium_org/content/browser/fileapi/ |
D | file_system_file_stream_reader_unittest.cc | 30 const char kTestData[] = "0123456789"; variable 31 const int kTestDataSize = arraysize(kTestData) - 1; 77 WriteFile(kTestFileName, kTestData, kTestDataSize, in SetUp() 217 ASSERT_EQ(kTestData, data); in TEST_F() 238 ASSERT_EQ(kTestData, data); in TEST_F() 248 ASSERT_EQ(&kTestData[3], data); in TEST_F()
|
D | copy_or_move_operation_delegate_unittest.cc | 708 const char kTestData[] = "abcdefghijklmnopqrstuvwxyz0123456789"; in TEST() local 709 file_util::WriteFile(source_path, kTestData, in TEST() 710 arraysize(kTestData) - 1); // Exclude trailing '\0'. in TEST() 755 EXPECT_EQ(kTestData, content); in TEST() 766 const char kTestData[] = "abcdefghijklmnopqrstuvwxyz0123456789"; in TEST() local 767 file_util::WriteFile(source_path, kTestData, in TEST() 768 arraysize(kTestData) - 1); // Exclude trailing '\0'. in TEST() 813 EXPECT_EQ(kTestData, content); in TEST() 820 const char kTestData[] = "abcdefghijklmnopqrstuvwxyz0123456789"; in TEST() local 821 file_util::WriteFile(source_path, kTestData, in TEST() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/networking_private/ |
D | networking_private_crypto_unittest.cc | 142 static const char kTestData[] = "disco boy"; in TEST_F() local 153 plain = kTestData; in TEST_F() 169 crypto.EncryptByteString(kBadKeyData, kTestData, &encrypted_output)); in TEST_F()
|
/external/chromium/base/i18n/ |
D | rtl_unittest.cc | 122 const wchar_t* kTestData[] = { in TEST_F() local 150 for (unsigned int i = 0; i < arraysize(kTestData); ++i) { in TEST_F() 153 std::wstring win_path(kTestData[i]); in TEST_F() 159 path = FilePath(base::SysWideToNativeMB(kTestData[i])); in TEST_F() 161 std::wstring(L"\x202a") + kTestData[i] + L"\x202c"; in TEST_F()
|
/external/chromium_org/webkit/browser/blob/ |
D | local_file_stream_reader_unittest.cc | 25 const char kTestData[] = "0123456789"; variable 26 const int kTestDataSize = arraysize(kTestData) - 1; 69 file_util::WriteFile(test_path(), kTestData, kTestDataSize); in SetUp() 211 ASSERT_EQ(kTestData, data); in TEST_F() 232 ASSERT_EQ(kTestData, data); in TEST_F() 242 ASSERT_EQ(&kTestData[3], data); in TEST_F()
|
/external/chromium_org/ui/events/ |
D | event_unittest.cc | 106 } kTestData[] = { in TEST() local 176 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestData); ++i) { in TEST() 178 kTestData[i].key_code, in TEST() 179 kTestData[i].flags, in TEST() 181 EXPECT_EQ(kTestData[i].character, key.GetCharacter()) in TEST() 182 << " Index:" << i << " key_code:" << kTestData[i].key_code; in TEST()
|
/external/chromium_org/base/files/ |
D | file_util_proxy_unittest.cc | 357 const char kTestData[] = "0123456789"; in TEST_F() local 358 ASSERT_EQ(10, file_util::WriteFile(test_path(), kTestData, 10)); in TEST_F() 379 EXPECT_EQ(kTestData[i], buffer[i]); in TEST_F() 384 const char kTestData[] = "9876543210"; in TEST_F() local 385 ASSERT_EQ(10, file_util::WriteFile(test_path(), kTestData, 10)); in TEST_F() 406 EXPECT_EQ(kTestData[i], buffer[i]); in TEST_F()
|
/external/chromium/net/socket/ |
D | ssl_server_socket_unittest.cc | 191 const char kTestData[] = "testing123"; in TEST() local 192 const int kTestDataSize = strlen(kTestData); in TEST() 194 scoped_refptr<net::IOBuffer> write_buf = new net::StringIOBuffer(kTestData); in TEST() 200 EXPECT_EQ(0, memcmp(kTestData, read_buf->data(), kTestDataSize)); in TEST() 208 EXPECT_EQ(0, memcmp(kTestData, read_buf->data(), kTestDataSize)); in TEST()
|
/external/chromium/chrome/browser/download/ |
D | download_manager_unittest.cc | 32 static const char* kTestData; member in DownloadManagerTest 110 const char* DownloadManagerTest::kTestData = "a;sdlfalsdfjalsdkfjad"; member in DownloadManagerTest 112 strlen(DownloadManagerTest::kTestData); 430 download_file->AppendDataToFile(kTestData, kTestDataLen); in TEST_F() 501 download_file->AppendDataToFile(kTestData, kTestDataLen); in TEST_F() 580 download_file->AppendDataToFile(kTestData, kTestDataLen); in TEST_F() 602 EXPECT_EQ(std::string(kTestData), file_contents); in TEST_F()
|
/external/chromium_org/chrome/browser/autocomplete/ |
D | keyword_provider_unittest.cc | 44 static const TemplateURLService::Initializer kTestData[]; member in KeywordProviderTest 51 const TemplateURLService::Initializer KeywordProviderTest::kTestData[] = { member in KeywordProviderTest 63 model_.reset(new TemplateURLService(kTestData, arraysize(kTestData))); in SetUp()
|