Home
last modified time | relevance | path

Searched refs:kData (Results 1 – 25 of 50) sorted by relevance

12

/external/rust/crates/quiche/deps/boringssl/src/crypto/pool/
Dpool_test.cc28 static const uint8_t kData[4] = {1, 2, 3, 4}; in TEST() local
30 CRYPTO_BUFFER_new(kData, sizeof(kData), nullptr)); in TEST()
33 EXPECT_EQ(Bytes(kData), in TEST()
52 static const uint8_t kData[4] = {1, 2, 3, 4}; in TEST() local
54 CRYPTO_BUFFER_new(kData, sizeof(kData), pool.get())); in TEST()
58 CRYPTO_BUFFER_new(kData, sizeof(kData), pool.get())); in TEST()
70 static const uint8_t kData[4] = {1, 2, 3, 4}; in TEST() local
75 buf.reset(CRYPTO_BUFFER_new(kData, sizeof(kData), pool.get())); in TEST()
78 buf2.reset(CRYPTO_BUFFER_new(kData, sizeof(kData), pool.get())); in TEST()
91 EXPECT_EQ(Bytes(kData), in TEST()
[all …]
/external/boringssl/src/crypto/pool/
Dpool_test.cc28 static const uint8_t kData[4] = {1, 2, 3, 4}; in TEST() local
30 CRYPTO_BUFFER_new(kData, sizeof(kData), nullptr)); in TEST()
33 EXPECT_EQ(Bytes(kData), in TEST()
52 static const uint8_t kData[4] = {1, 2, 3, 4}; in TEST() local
54 CRYPTO_BUFFER_new(kData, sizeof(kData), pool.get())); in TEST()
58 CRYPTO_BUFFER_new(kData, sizeof(kData), pool.get())); in TEST()
70 static const uint8_t kData[4] = {1, 2, 3, 4}; in TEST() local
75 buf.reset(CRYPTO_BUFFER_new(kData, sizeof(kData), pool.get())); in TEST()
78 buf2.reset(CRYPTO_BUFFER_new(kData, sizeof(kData), pool.get())); in TEST()
91 EXPECT_EQ(Bytes(kData), in TEST()
[all …]
/external/libchrome/base/memory/
Dref_counted_memory_unittest.cc41 const unsigned char kData[] = {12, 11, 99}; in TEST() local
42 mem2 = MakeRefCounted<RefCountedBytes>(kData, arraysize(kData)); in TEST()
77 static const char kData[] = "shm_dummy_data"; in TEST() local
79 ASSERT_TRUE(shm->CreateAndMapAnonymous(sizeof(kData))); in TEST()
80 memcpy(shm->memory(), kData, sizeof(kData)); in TEST()
83 MakeRefCounted<RefCountedSharedMemory>(std::move(shm), sizeof(kData)); in TEST()
84 ASSERT_EQ(sizeof(kData), mem->size()); in TEST()
91 static const char kData[] = "mem_region_dummy_data"; in TEST() local
95 ReadOnlySharedMemoryRegion::Create(sizeof(kData)); in TEST()
99 memcpy(rw_mapping.memory(), kData, sizeof(kData)); in TEST()
[all …]
/external/angle/third_party/zlib/google/
Dcompression_utils_unittest.cc21 const uint8_t kData[] = {0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x20, variable
36 std::string data(reinterpret_cast<const char*>(kData), base::size(kData)); in TEST()
52 std::string golden_data(reinterpret_cast<const char*>(kData), in TEST()
53 base::size(kData)); in TEST()
61 std::string golden_data(reinterpret_cast<const char*>(kData), in TEST()
62 base::size(kData)); in TEST()
86 const std::string original_data(reinterpret_cast<const char*>(kData), in TEST()
87 base::size(kData)); in TEST()
/external/zlib/google/
Dcompression_utils_unittest.cc21 const uint8_t kData[] = {0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x20, variable
36 std::string data(reinterpret_cast<const char*>(kData), base::size(kData)); in TEST()
52 std::string golden_data(reinterpret_cast<const char*>(kData), in TEST()
53 base::size(kData)); in TEST()
61 std::string golden_data(reinterpret_cast<const char*>(kData), in TEST()
62 base::size(kData)); in TEST()
86 const std::string original_data(reinterpret_cast<const char*>(kData), in TEST()
87 base::size(kData)); in TEST()
/external/pdfium/core/fxcodec/jbig2/
DJBig2_BitStream_unittest.cpp14 const uint8_t kData[] = {0xb1}; // 10110001 in TEST() local
15 CJBig2_BitStream stream(kData, 0); in TEST()
33 const uint8_t kData[] = {0xb1}; // 10110001 in TEST() local
34 CJBig2_BitStream stream(kData, 42); in TEST()
52 const uint8_t kData[] = {0xb1}; // 10110001 in TEST() local
53 CJBig2_BitStream stream(kData, 42); in TEST()
63 const uint8_t kData[] = {0xb0, 0x01, 0x00, 0x00, 0x40}; in TEST() local
64 CJBig2_BitStream stream(kData, 42); in TEST()
/external/perfetto/src/protozero/filtering/
Dmessage_filter_unittest.cc225 static const uint8_t kData[]{ in TEST() local
229 auto res = flt.FilterMessage(kData, sizeof(kData)); in TEST()
235 static const uint8_t kData[]{ in TEST() local
239 auto res = flt.FilterMessage(kData, sizeof(kData)); in TEST()
246 static const uint8_t kData[]{ in TEST() local
256 auto res = flt.FilterMessage(kData, sizeof(kData)); in TEST()
263 static const uint8_t kData[]{ in TEST() local
269 auto res = flt.FilterMessage(kData, sizeof(kData)); in TEST()
271 EXPECT_EQ(res.size, sizeof(kData) - 2); // last 2 bytes should be skipped. in TEST()
272 EXPECT_EQ(memcmp(kData, res.data.get(), res.size), 0); in TEST()
/external/pdfium/core/fxcrt/
Dcfx_bitstream_unittest.cpp22 static const uint8_t kData[] = {0x00, 0x11, 0x22, 0x33, in TEST() local
24 CFX_BitStream bitstream(kData); in TEST()
122 static const unsigned char kData[] = {0xDE, 0x3F, 0xB1, 0x7C, in TEST() local
124 CFX_BitStream bitstream(kData); in TEST()
126 for (size_t bitpos = 0; bitpos < sizeof(kData) * 8 - nbits; ++bitpos) { in TEST()
130 ReferenceGetBits32(kData, bitpos, nbits)); in TEST()
/external/openscreen/util/
Dbase64_unittest.cc37 const uint8_t kData[] = {0x00, 0x01, 0xFE, 0xFF}; in TEST() local
39 std::string binary_encoded = Encode(absl::MakeConstSpan(kData)); in TEST()
44 absl::string_view(reinterpret_cast<const char*>(kData), sizeof(kData))); in TEST()
/external/pigweed/pw_kvs/
Dchecksum_test.cc92 constexpr std::string_view kData = variable
95 const std::span<const byte> kBytes = std::as_bytes(std::span(kData));
103 void FinalizeAligned() override { EXPECT_EQ(kData.size(), size_); } in FinalizeAligned()
107 EXPECT_EQ(kData.substr(0, data.size()), in UpdateAligned()
116 std::byte data_[kData.size()];
145 kData); in TEST()
Dalignment_test.cc124 constexpr std::string_view kData = variable
128 const std::span<const byte> kBytes = std::as_bytes(std::span(kData));
134 EXPECT_EQ(kData.substr(0, data.size()), in __anon413676270202()
164 EXPECT_EQ(kData.size(), result.size()); in TEST()
308 StatusWithSize result = writer.Write(input, kData.size()); in TEST()
310 EXPECT_LE(result.size(), kData.size()); // May not have written it all yet. in TEST()
314 EXPECT_EQ(kData.size(), result.size()); in TEST()
323 StatusWithSize result = writer.Write(input, kData.size()); in TEST()
335 StatusWithSize result = writer.Write(input, kData.size()); in TEST()
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dapp_unittest.cc28 constexpr uint8_t kData[] = {'t', 'e', 's', 't', 'd', 'a', 't', 'a'}; variable
81 app.SetData(kData, sizeof(kData)); in TEST()
97 ElementsAreArray(kData)); in TEST()
/external/pigweed/pw_ring_buffer/size_report/
Dring_buffer_simple.cc21 constexpr std::byte kData[1] = {kValue}; variable
37 status = ring.TryPushBack(kData); in main()
47 status = ring.PushBack(kData); in main()
Dring_buffer_multi.cc22 constexpr std::byte kData[1] = {kValue}; variable
44 status = ring.TryPushBack(kData); in main()
54 status = ring.PushBack(kData); in main()
/external/libchrome/base/files/
Dfile_unittest.cc444 const char kData[] = "test"; local
445 const int kDataSize = sizeof(kData) - 1;
446 EXPECT_EQ(kDataSize, file.Write(0, kData, kDataSize));
456 EXPECT_EQ(std::string(buffer, buffer + kDataSize), std::string(kData));
469 const char kData[] = "test"; local
470 const int kDataSize = sizeof(kData) - 1;
473 EXPECT_EQ(first_chunk_size, file.WriteAtCurrentPos(kData, first_chunk_size));
475 file.WriteAtCurrentPos(kData + first_chunk_size,
480 EXPECT_EQ(std::string(buffer, buffer + kDataSize), std::string(kData));
513 static const char kData[] = "now is a good time."; local
[all …]
/external/pigweed/pw_tokenizer/
Dsimple_tokenize_test.cc105 template <uint8_t... kData, size_t kSize>
106 std::array<uint8_t, sizeof(uint32_t) + sizeof...(kData)> ExpectedData( in ExpectedData()
109 return std::array<uint8_t, sizeof(uint32_t) + sizeof...(kData)>{ in ExpectedData()
114 kData...}; in ExpectedData()
/external/abseil-cpp/absl/random/
Dexamples_test.cc89 const char kData[] = "A simple seed string"; in TEST() local
90 std::seed_seq my_seed(std::begin(kData), std::end(kData)); in TEST()
/external/openscreen/third_party/abseil/src/absl/random/
Dexamples_test.cc89 const char kData[] = "A simple seed string"; in TEST() local
90 std::seed_seq my_seed(std::begin(kData), std::end(kData)); in TEST()
/external/libtextclassifier/abseil-cpp/absl/random/
Dexamples_test.cc89 const char kData[] = "A simple seed string"; in TEST() local
90 std::seed_seq my_seed(std::begin(kData), std::end(kData)); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/
Dexamples_test.cc89 const char kData[] = "A simple seed string"; in TEST() local
90 std::seed_seq my_seed(std::begin(kData), std::end(kData)); in TEST()
/external/webrtc/third_party/abseil-cpp/absl/random/
Dexamples_test.cc89 const char kData[] = "A simple seed string"; in TEST() local
90 std::seed_seq my_seed(std::begin(kData), std::end(kData)); in TEST()
/external/angle/third_party/abseil-cpp/absl/random/
Dexamples_test.cc89 const char kData[] = "A simple seed string"; in TEST() local
90 std::seed_seq my_seed(std::begin(kData), std::end(kData)); in TEST()
/external/webrtc/p2p/base/
Dtcp_port_unittest.cc235 static const char kData[] = "hello"; in TEST_F() local
237 client_conn->Send(&kData, sizeof(kData), rtc::PacketOptions()); in TEST_F()
238 server_conn->Send(&kData, sizeof(kData), rtc::PacketOptions()); in TEST_F()
/external/boringssl/src/util/
Dembed_test_data.go128 fmt.Printf("static const char *kData%d[] = {\n", i)
156 fmt.Printf(" return AssembleString(kData%d, kLen%d);\n", i, i)
/external/webrtc/modules/video_coding/
Dh264_sps_pps_tracker_unittest.cc278 constexpr uint8_t kData[] = {1, 2, 3}; in TEST_F() local
295 tracker_.CopyAndFixBitstream(kData, &idr_header); in TEST_F()
304 constexpr uint8_t kData[] = {1, 2, 3}; in TEST_F() local
319 EXPECT_EQ(tracker_.CopyAndFixBitstream(kData, &idr_header).action, in TEST_F()
324 constexpr uint8_t kData[] = {1, 2, 3}; in TEST_F() local
337 EXPECT_EQ(tracker_.CopyAndFixBitstream(kData, &idr_header).action, in TEST_F()

12