Searched refs:kData (Results 1 - 25 of 67) sorted by relevance

123

/external/chromium_org/extensions/browser/guest_view/app_view/
H A Dapp_view_constants.cc14 const char kData[] = "data"; member in namespace:appview
H A Dapp_view_constants.h17 extern const char kData[];
/external/chromium_org/media/filters/
H A Din_memory_url_protocol_unittest.cc11 static const uint8 kData[] = { 0x01, 0x02, 0x03, 0x04 }; member in namespace:media
14 InMemoryUrlProtocol protocol(kData, std::numeric_limits<int64>::max(), false);
16 uint8 out[sizeof(kData)];
18 EXPECT_EQ(0, memcmp(out, kData, sizeof(out)));
22 InMemoryUrlProtocol protocol(kData, sizeof(kData), false);
24 uint8 out[sizeof(kData)];
29 InMemoryUrlProtocol protocol(kData, sizeof(kData), false);
36 InMemoryUrlProtocol protocol(kData, sizeo
[all...]
/external/chromium_org/rlz/lib/
H A Dcrc32_unittest.cc19 } kData[] = { local
27 for (int i = 0; kData[i].data; i++)
28 EXPECT_EQ(kData[i].crc,
29 rlz_lib::Crc32(reinterpret_cast<const unsigned char*>(kData[i].data),
30 kData[i].len));
38 } kData[] = { local
48 for (int i = 0; kData[i].data; i++) {
49 EXPECT_TRUE(rlz_lib::Crc32(kData[i].data, &crc));
50 EXPECT_EQ(kData[i].crc, crc);
/external/qemu/android/utils/
H A Dwin32_cmdline_quote_unittest.cpp35 } kData[] = { local
44 for (size_t n = 0; n < ARRAY_SIZE(kData); ++n) {
45 const char* input = kData[n].input;
46 const char* expected = kData[n].expected;
H A Dfile_data_unittest.cpp79 static const char kData[] = "Hello World!"; local
80 ScopedFileData data(kData, sizeof kData);
82 EXPECT_NE(kData, (const char*)data->data);
83 for (size_t n = 0; n < sizeof kData; ++n) {
84 EXPECT_EQ(kData[n], data->data[n]) << "index " << n;
89 static const char kData[] = "Hello World!"; local
90 ScopedFileData data1(kData, sizeof kData);
99 EXPECT_EQ(kData[
105 static const char kData[] = "Hello World!"; local
[all...]
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_system_unittest.cpp47 } kData[] = { local
65 for (size_t n = 0; n < ARRAY_LEN(kData); ++n) {
66 TEST_TEXT << "Checking " << kData[n].name;
67 EXPECT_EQ(kData[n].success, IsSystemLibrary(kData[n].name));
H A Dcrazy_linker_proc_maps_unittest.cpp75 } kData[] = {{0x4000afff, false, 0}, local
87 for (size_t n = 0; n < ARRAY_LEN(kData); ++n) {
88 void* address = reinterpret_cast<void*>(kData[n].address);
90 EXPECT_EQ(kData[n].success, FindProtectionFlagsForAddress(address, &prot));
91 if (kData[n].success) {
93 EXPECT_EQ(kData[n].prot, prot);
105 } kData[] = {{true, 0x4005c000, 0, "mksh"}, local
111 for (size_t n = 0; n < ARRAY_LEN(kData); ++n) {
113 TEST_TEXT << "Checking " << kData[n].name;
114 bool success = FindLoadAddressForFile(kData[
156 } kData[] = { local
[all...]
/external/qemu/android/base/files/
H A DPathUtils_unittest.cpp30 } kData[] = { local
38 for (size_t n = 0; n < ARRAY_SIZE(kData); ++n) {
39 int ch = kData[n].ch;
40 EXPECT_EQ(kData[n].expected[kHostPosix],
43 EXPECT_EQ(kData[n].expected[kHostWin32],
46 EXPECT_EQ(kData[n].expected[kHostType],
56 } kData[] = { local
64 for (size_t n = 0; n < ARRAY_SIZE(kData); ++n) {
65 int ch = kData[n].ch;
66 EXPECT_EQ(kData[
82 } kData[] = { local
122 } kData[] = { local
172 } kData[] = { local
233 } kData[] = { local
287 } kData[] = { local
[all...]
/external/chromium_org/media/base/
H A Ddecoder_buffer_unittest.cc29 const uint8 kData[] = "hello"; local
30 const int kDataSize = arraysize(kData);
32 reinterpret_cast<const uint8*>(&kData), kDataSize));
34 EXPECT_NE(kData, buffer2->data());
36 EXPECT_EQ(0, memcmp(buffer2->data(), kData, kDataSize));
39 reinterpret_cast<const uint8*>(&kData), kDataSize,
40 reinterpret_cast<const uint8*>(&kData), kDataSize));
42 EXPECT_NE(kData, buffer3->data());
44 EXPECT_EQ(0, memcmp(buffer3->data(), kData, kDataSize));
45 EXPECT_NE(kData, buffer
53 const uint8 kData[] = "hello"; local
79 const char kData[] = "hello"; local
[all...]
H A Ddata_buffer_unittest.cc34 const uint8* kData = data.get(); local
39 EXPECT_EQ(kData, buffer->data());
95 const char kData[] = "hello"; local
96 const int kDataSize = arraysize(kData);
106 memcpy(data, kData, kDataSize);
110 ASSERT_EQ(0, memcmp(read_only_data, kData, kDataSize));
/external/chromium_org/net/spdy/
H A Dspdy_buffer_unittest.cc23 const char kData[] = "hello!\0hi."; member in namespace:net::__anon9587
24 const size_t kDataSize = arraysize(kData);
38 new SpdyFrame(const_cast<char*>(kData), kDataSize,
41 EXPECT_EQ(kData, buffer.GetRemainingData());
48 std::string data(kData, kDataSize);
53 EXPECT_NE(kData, buffer.GetRemainingData());
55 EXPECT_EQ(std::string(kData, kDataSize), BufferToString(buffer));
70 SpdyBuffer buffer(kData, kDataSize);
79 EXPECT_EQ(std::string(kData, kDataSize), BufferToString(buffer));
82 EXPECT_EQ(std::string(kData
[all...]
/external/chromium_org/gpu/command_buffer/service/
H A Dcommon_decoder_unittest.cc247 static const char kData[] = "1234567890123456789"; local
252 size_cmd.Init(kBucketId, sizeof(kData));
256 EXPECT_NE(0, memcmp(bucket->GetData(0, sizeof(kData)), kData, sizeof(kData)));
261 memcpy(memory, kData, sizeof(kData));
262 cmd.Init(kBucketId, 0, sizeof(kData),
265 EXPECT_EQ(0, memcmp(bucket->GetData(0, sizeof(kData)), kData, sizeo
305 static const char kData[] = "1234567890123456789"; local
361 static const char kData[] = "1234567890123456789"; local
461 static const char kData[] = "1234567890123456789"; local
[all...]
/external/chromium_org/net/quic/
H A Dquic_fec_group_test.cc22 const char* kData[] = { member in namespace:net::__anon9466
45 size_t max_len = strlen(kData[0]);
51 redundancy[i] = kData[0][i];
55 uint8 byte = i > strlen(kData[packet]) ? 0x00 : kData[packet][i];
71 fec.redundancy = StringPiece(redundancy.get(), strlen(kData[0]));
79 kData[packet]));
94 kData[packet]));
102 fec.redundancy = StringPiece(redundancy.get(), strlen(kData[0]));
119 ASSERT_GE(len, strlen(kData[lost_packe
[all...]
/external/chromium_org/media/audio/sounds/
H A Dwav_audio_handler_unittest.cc26 const char kData[] = "\x01\x00\x01\x00"; local
27 ASSERT_EQ(base::StringPiece(kData, arraysize(kData) - 1), handler.data());
/external/chromium_org/components/os_crypt/
H A Die7_password_win_unittest.cc63 const unsigned char kData[] = local
78 decrypted_data.resize(arraysize(kData));
79 memcpy(&decrypted_data.front(), kData, sizeof(kData));
/external/chromium_org/components/metrics/
H A Dcompression_utils_unittest.cc19 const uint8 kData[] = member in namespace:metrics::__anon6573
36 std::string data(reinterpret_cast<const char*>(kData), arraysize(kData));
52 std::string golden_data(reinterpret_cast<const char*>(kData),
53 arraysize(kData));
/external/chromium_org/media/cdm/ppapi/
H A Dcdm_file_io_test.cc15 const uint8 kData[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, member in namespace:media
17 const uint32 kDataSize = arraysize(kData);
132 WRITE_FILE(kData, kDataSize)
142 WRITE_FILE(kData, kDataSize)
145 EXPECT_FILE_READ(kSuccess, kData, kDataSize)
150 WRITE_FILE(kData, kDataSize)
154 WRITE_FILE(kData, kDataSize)
157 EXPECT_FILE_READ(kSuccess, kData, kDataSize)
163 WRITE_FILE(kData, kDataSize)
168 EXPECT_FILE_READ(kSuccess, kData, kDataSiz
[all...]
/external/chromium_org/content/browser/appcache/
H A Dappcache_manifest_parser_unittest.cc67 const std::string kData("CACHE MANIFEST\r"
71 EXPECT_TRUE(ParseManifest(kUrl, kData.c_str(), kData.length(),
82 const std::string kData("CACHE MANIFEST\r"
99 EXPECT_TRUE(ParseManifest(kUrl, kData.c_str(), kData.length(),
118 EXPECT_TRUE(ParseManifest(kUrl, kData.c_str(), kData.length(),
138 const std::string kData("CACHE MANIFEST\r"
155 EXPECT_TRUE(ParseManifest(kUrl, kData
[all...]
/external/chromium_org/media/mojo/services/
H A Dmedia_type_converters_unittest.cc17 const uint8 kData[] = "hello, world"; local
19 const int kDataSize = arraysize(kData);
24 reinterpret_cast<const uint8*>(&kData), kDataSize,
39 EXPECT_EQ(0, memcmp(result->data(), kData, kDataSize));
/external/qemu/android/kernel/
H A Dkernel_utils_unittest.cpp85 static const Expectation kData[] = { local
114 const size_t kDataSize = sizeof(kData) / sizeof(kData[0]);
118 const Expectation& expectation = kData[n];
/external/chromium_org/net/server/
H A Dhttp_connection_unittest.cc239 const std::string kData("data to write");
240 EXPECT_TRUE(buffer->Append(kData));
242 EXPECT_EQ(static_cast<int>(kData.size()), buffer->GetSizeToWrite());
243 EXPECT_EQ(static_cast<int>(kData.size()), buffer->total_size());
244 // First data to write is same to kData.
245 EXPECT_EQ(kData, base::StringPiece(buffer->data(), buffer->GetSizeToWrite()));
251 EXPECT_EQ(static_cast<int>(kData.size()), buffer->GetSizeToWrite());
253 EXPECT_EQ(static_cast<int>(kData.size() + kData2.size()),
255 // First data to write has not been changed. Same to kData.
256 EXPECT_EQ(kData, bas
[all...]
/external/chromium_org/net/base/
H A Dupload_bytes_element_reader_unittest.cc19 const char kData[] = "123abc"; variable
20 bytes_.assign(kData, kData + arraysize(kData));
/external/chromium_org/net/url_request/
H A Durl_fetcher_response_writer_unittest.cc20 const char kData[] = "Hello!"; member in namespace:net::__anon9789
28 buf_ = new StringIOBuffer(kData);
47 EXPECT_EQ(kData, writer_->data());
62 buf_ = new StringIOBuffer(kData);
86 EXPECT_EQ(kData, file_contents);
108 EXPECT_EQ(kData, file_contents);
150 buf_ = new StringIOBuffer(kData);
171 EXPECT_EQ(kData, file_contents);
/external/chromium_org/media/formats/mp4/
H A Dbox_reader_unittest.cc199 static const uint8 kData[] = { local
203 TestTopLevelBox(kData, sizeof(kData), FOURCC_BLOC);
207 static const uint8 kData[] = { local
220 TestTopLevelBox(kData, sizeof(kData), FOURCC_EMSG);
224 static const uint8 kData[] = { local
231 TestTopLevelBox(kData, sizeof(kData), FOURCC_UUID);

Completed in 599 milliseconds

123