HomeSort by relevance Sort by last modified time
    Searched refs:kTestData (Results 1 - 25 of 38) sorted by null

1 2

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

Completed in 490 milliseconds

1 2