/external/webrtc/rtc_base/ |
D | buffer_unittest.cc | 28 const uint8_t kTestData[] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, variable 48 TestBuf(Buffer(kTestData, 0), 0, 0); in TEST() 49 TestBuf(Buffer(kTestData, 0, 20), 0, 20); in TEST() 53 Buffer buf(kTestData, 7); in TEST() 57 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 7)); in TEST() 61 Buffer buf(kTestData, 7, 14); in TEST() 65 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 7)); in TEST() 69 Buffer buf(kTestData); in TEST() 73 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 16)); in TEST() 77 Buffer buf(kTestData + 4, 7); in TEST() [all …]
|
D | copy_on_write_buffer_unittest.cc | 22 const uint8_t kTestData[] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, variable 55 CopyOnWriteBuffer buf1(kTestData, 3, 10); in TEST() 70 CopyOnWriteBuffer buf1(kTestData, 3, 10); in TEST() 86 CopyOnWriteBuffer buf1(kTestData, 3, 10); in TEST() 91 CopyOnWriteBuffer buf2(kTestData, 6, 20); in TEST() 106 CopyOnWriteBuffer buf1(kTestData, 3, 10); in TEST() 117 EXPECT_EQ(buf1, CopyOnWriteBuffer(kTestData, 3)); in TEST() 134 buf1.SetData(kTestData, 10); in TEST() 137 EXPECT_EQ(buf1, CopyOnWriteBuffer(kTestData, 10)); in TEST() 141 CopyOnWriteBuffer buf1(kTestData, 3, 10); in TEST() [all …]
|
/external/libchrome/mojo/public/cpp/base/ |
D | shared_memory_unittest.cc | 14 const std::string kTestData = "Hello, world!"; in TEST() local 15 memcpy(region.mapping.memory(), kTestData.data(), kTestData.size()); in TEST() 22 EXPECT_EQ(0, memcmp(mapping.memory(), kTestData.data(), kTestData.size())); in TEST() 28 const std::string kTestData = "Hello, world!"; in TEST() local 29 memcpy(mapping.memory(), kTestData.data(), kTestData.size()); in TEST() 37 EXPECT_EQ(0, memcmp(mapping.memory(), kTestData.data(), kTestData.size())); in TEST() 43 const std::string kTestData = "Hello, world!"; in TEST() local 44 memcpy(mapping.memory(), kTestData.data(), kTestData.size()); in TEST() 52 EXPECT_EQ(0, memcmp(mapping.memory(), kTestData.data(), kTestData.size())); in TEST()
|
/external/libchrome/mojo/public/cpp/platform/tests/ |
D | platform_handle_unittest.cc | 56 const std::string kTestData = "some data to validate"; variable 108 test_file.WriteAtCurrentPos(kTestData.data(), kTestData.size()); in SetUpFile() 129 std::vector<char> buffer(kTestData.size()); in GetFileContents() 147 auto region = base::UnsafeSharedMemoryRegion::Create(kTestData.size()); in SetUpSharedMemory() 149 memcpy(mapping.memory(), kTestData.data(), kTestData.size()); in SetUpSharedMemory() 172 kTestData.size(), shm_guid_); in GetSharedMemoryContents() 177 kTestData.size()); in GetSharedMemoryContents() 201 EXPECT_EQ(kTestData, GetObjectContents(test_handle())); in TEST_P() 205 EXPECT_EQ(kTestData, GetObjectContents(test_handle())); in TEST_P() 211 EXPECT_EQ(kTestData, GetObjectContents(new_handle)); in TEST_P() [all …]
|
/external/pigweed/pw_tokenizer/ |
D | base64_test.cc | 49 } kTestData[] = { variable 67 for (auto& [binary, base64] : kTestData) { in TEST_F() 82 PrefixedBase64Encode(kTestData[5].binary, std::span(base64_, 0))); in TEST_F() 88 PrefixedBase64Encode(kTestData[5].binary, std::span(base64_, 1))); in TEST_F() 96 PrefixedBase64Encode(kTestData[5].binary, in TEST_F() 97 std::span(base64_, kTestData[5].base64.size()))); in TEST_F() 116 for (auto& [binary, base64] : kTestData) { in TEST_F() 134 PrefixedBase64Decode(kTestData[5].base64, std::span(binary_, 0))); in TEST_F() 139 auto& item = kTestData[5]; in TEST_F() 149 for (auto& [binary, base64] : kTestData) { in TEST()
|
D | decode_test.cc | 61 const auto& test_data = test::tokenized_string_decoding::kTestData; in TEST() 140 const auto& test_data = test::varint_decoding::kTestData; in TEST()
|
/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/pdfium/core/fpdfapi/parser/ |
D | fpdf_parser_decode_unittest.cpp | 116 const pdfium::DecodeTestData kTestData[] = { in TEST() local 134 for (const auto& test_case : kTestData) { in TEST() 151 const pdfium::DecodeTestData kTestData[] = { in TEST() local 169 for (const auto& test_case : kTestData) { in TEST() 191 } kTestData[] = { in TEST() local 220 for (const auto& test_case : kTestData) { in TEST() 239 } kTestData[] = { in TEST() local 254 for (const auto& test_case : kTestData) { in TEST()
|
/external/tensorflow/tensorflow/cc/saved_model/ |
D | bundle_v2_test.cc | 25 constexpr char kTestData[] = "cc/saved_model/testdata"; variable 74 testing::TensorFlowSrcRoot(), kTestData, "VarsAndArithmeticObjectGraph"); in TEST_F() 87 io::JoinPath(testing::TensorFlowSrcRoot(), kTestData, "CyclicModule"); in TEST_F()
|
/external/tensorflow/tensorflow/core/lib/jpeg/ |
D | jpeg_mem_unittest.cc | 37 const char kTestData[] = "tensorflow/core/lib/jpeg/testdata/"; variable 89 const string data_path = kTestData; in TEST() 183 const string data_path = kTestData; in TEST() 193 const string data_path = kTestData; in TEST() 203 const string data_path = kTestData; in TEST() 213 const string data_path = kTestData; in TEST() 221 const string data_path = kTestData; in TEST() 259 const string data_path = kTestData; in TEST() 445 const string jpegfile = string(kTestData) + "jpeg_merge_test1.jpg"; in TEST() 505 const string data_path = kTestData; in TEST()
|
/external/tensorflow/tensorflow/core/lib/gif/ |
D | gif_io_test.cc | 26 const char kTestData[] = "tensorflow/core/lib/gif/testdata/"; variable 68 const string testdata_path = kTestData; in TEST() 106 const string testdata_path = kTestData; in TEST() 157 const string testdata_path = kTestData; in TEST()
|
/external/libchrome/mojo/core/ |
D | data_pipe_unittest.cc | 1119 const char kTestData[] = "hello world"; in TEST_F() local 1120 const uint32_t kTestDataSize = static_cast<uint32_t>(sizeof(kTestData)); in TEST_F() 1132 ASSERT_EQ(MOJO_RESULT_OK, WriteData(kTestData, &num_bytes, false)); in TEST_F() 1137 ASSERT_EQ(MOJO_RESULT_OK, WriteData(kTestData, &num_bytes, false)); in TEST_F() 1169 ASSERT_EQ(0, memcmp(read_buffer_ptr, kTestData, kTestDataSize)); in TEST_F() 1183 const char kTestData[] = "hello world"; in TEST_F() local 1184 const uint32_t kTestDataSize = static_cast<uint32_t>(sizeof(kTestData)); in TEST_F() 1197 ASSERT_EQ(MOJO_RESULT_OK, WriteData(kTestData, &num_bytes)); in TEST_F() 1238 memcpy(write_buffer_ptr, kTestData, kTestDataSize); in TEST_F() 1245 ASSERT_EQ(MOJO_RESULT_FAILED_PRECONDITION, WriteData(kTestData, &num_bytes)); in TEST_F() [all …]
|
D | trap_unittest.cc | 440 const char kTestData[] = "aaaa"; in TEST_F() local 441 static_assert((sizeof(kTestData) - 1) * 2 == kTestPipeCapacity, in TEST_F() 481 WriteData(producer, kTestData); in TEST_F() 491 WriteData(producer, kTestData); in TEST_F() 495 EXPECT_EQ(kTestData, ReadData(consumer, sizeof(kTestData) - 1)); in TEST_F() 508 WriteData(producer, kTestData); in TEST_F()
|
/external/libchrome/base/files/ |
D | file_proxy_unittest.cc | 349 const char kTestData[] = "0123456789"; in TEST_F() local 350 ASSERT_EQ(10, base::WriteFile(TestPath(), kTestData, 10)); in TEST_F() 370 EXPECT_EQ(kTestData[i], buffer[i]); in TEST_F() 375 const char kTestData[] = "9876543210"; in TEST_F() local 376 ASSERT_EQ(10, base::WriteFile(TestPath(), kTestData, 10)); in TEST_F() 396 EXPECT_EQ(kTestData[i], buffer[i]); in TEST_F()
|
D | file_util_unittest.cc | 2734 const std::string kTestData("The quick brown fox jumps over the lazy dog."); in TEST_F() local 2738 ASSERT_EQ(static_cast<int>(kTestData.size()), in TEST_F() 2739 WriteFile(file_path, kTestData.data(), kTestData.size())); in TEST_F() 2742 std::vector<char> small_buffer(kTestData.size() / 2); in TEST_F() 2743 std::vector<char> exact_buffer(kTestData.size()); in TEST_F() 2744 std::vector<char> large_buffer(kTestData.size() * 2); in TEST_F() 2751 std::string(kTestData.begin(), kTestData.begin() + small_buffer.size()), in TEST_F() 2757 EXPECT_EQ(static_cast<int>(kTestData.size()), bytes_read_exact); in TEST_F() 2758 EXPECT_EQ(kTestData, std::string(exact_buffer.begin(), exact_buffer.end())); in TEST_F() 2763 EXPECT_EQ(static_cast<int>(kTestData.size()), bytes_read_large); in TEST_F() [all …]
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_psengine_unittest.cpp | 37 } kTestData[] = { in TEST() local 65 for (size_t i = 0; i < FX_ArraySize(kTestData); ++i) { in TEST() 66 ByteStringView word(kTestData[i].name); in TEST() 72 EXPECT_EQ(kTestData[i].op, new_op); in TEST()
|
/external/tensorflow/tensorflow/core/lib/math/ |
D | math_util_test.cc | 64 const uint64 kTestData[kNumTests][kNumTestArguments] = { in TestCeilOfRatioUnsigned() local 85 TestCeilOfRatio<UnsignedIntegralType, uint64>(kTestData, kNumTests); in TestCeilOfRatioUnsigned() 91 const int64 kTestData[kNumTests][kNumTestArguments] = { in TestCeilOfRatioSigned() local 133 TestCeilOfRatio<SignedInteger, int64>(kTestData, kNumTests); in TestCeilOfRatioSigned()
|
/external/tensorflow/tensorflow/cc/saved_model/experimental/tests/ |
D | saved_model_api_test.cc | 37 constexpr char kTestData[] = "cc/saved_model/testdata"; variable 41 kTestData, saved_model_dir); in SavedModelPath()
|
/external/pigweed/pw_trace_tokenized/ |
D | trace_test.cc | 547 constexpr std::byte kTestData[] = { variable 551 "module_" PW_STRINGIFY(num), (num), (num), kTestData, \ 552 (num) % PW_ARRAY_SIZE(kTestData) 563 kTestData, \ 565 (result->data_size == (num) % PW_ARRAY_SIZE(kTestData))
|
/external/libvpx/libvpx/test/ |
D | predict_test.cc | 237 static const uint8_t kTestData[kSrcSize] = { in TEST_P() local 294 predict_(const_cast<uint8_t *>(kTestData) + kSrcStride * 2 + 2, in TEST_P()
|
/external/zlib/google/ |
D | zip_reader_unittest.cc | 394 const char kTestData[] = in TEST_F() local 407 std::string data(kTestData, base::size(kTestData)); in TEST_F()
|
/external/angle/third_party/zlib/google/ |
D | zip_reader_unittest.cc | 394 const char kTestData[] = in TEST_F() local 407 std::string data(kTestData, base::size(kTestData)); in TEST_F()
|
/external/tensorflow/tensorflow/c/experimental/saved_model/internal/ |
D | saved_model_api_test.cc | 46 constexpr char kTestData[] = "cc/saved_model/testdata"; variable 51 kTestData, saved_model_dir); in SavedModelPath()
|
/external/pigweed/pw_tokenizer/pw_tokenizer_private/ |
D | tokenized_string_decoding_test_data.h | 29 inline constexpr TestCase kTestData[] = { variable
|
D | varint_decoding_test_data.h | 29 inline constexpr TestCase kTestData[] = { variable
|