Home
last modified time | relevance | path

Searched refs:kTestData (Results 1 – 13 of 13) sorted by relevance

/external/webrtc/webrtc/base/
Dbuffer_unittest.cc22 const uint8_t kTestData[] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, variable
42 TestBuf(Buffer(kTestData, 0), 0, 0); in TEST()
43 TestBuf(Buffer(kTestData, 0, 20), 0, 20); in TEST()
47 Buffer buf(kTestData, 7); in TEST()
50 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 7)); in TEST()
54 Buffer buf(kTestData, 7, 14); in TEST()
57 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 7)); in TEST()
61 Buffer buf(kTestData); in TEST()
64 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 16)); in TEST()
68 Buffer buf1(kTestData), buf2(buf1); in TEST()
[all …]
Dmultipart_unittest.cc25 static const char kTestData[] = "This is a test."; variable
46 multipart.Write(kTestData, sizeof(kTestData), NULL, NULL)); in TEST()
58 multipart.GetPartSize(kTestData, "form-data; name=\"text\"", "text"); in TEST()
59 EXPECT_TRUE(multipart.AddPart(kTestData, "form-data; name=\"text\"", "text")); in TEST()
105 pos = str.find(kTestData, pos); in TEST()
107 pos += sizeof(kTestData); in TEST()
/external/libchrome/mojo/public/cpp/base/
Dshared_memory_unittest.cc14 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/
Dplatform_handle_unittest.cc56 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/sfntly/cpp/src/test/
Dmemory_io_test.cc27 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/page/
Dcpdf_psengine_unittest.cpp12 } kTestData[] = { in TEST() local
40 for (size_t i = 0; i < FX_ArraySize(kTestData); ++i) { in TEST()
41 ByteStringView word(kTestData[i].name); in TEST()
47 EXPECT_EQ(kTestData[i].op, new_op); in TEST()
/external/tensorflow/tensorflow/core/lib/jpeg/
Djpeg_mem_unittest.cc38 const char kTestData[] = "tensorflow/core/lib/jpeg/testdata/"; variable
90 const string data_path = kTestData; in TEST()
184 const string data_path = kTestData; in TEST()
194 const string data_path = kTestData; in TEST()
204 const string data_path = kTestData; in TEST()
214 const string data_path = kTestData; in TEST()
222 const string data_path = kTestData; in TEST()
260 const string data_path = kTestData; in TEST()
446 const string jpegfile = string(kTestData) + "jpeg_merge_test1.jpg"; in TEST()
506 const string data_path = kTestData; in TEST()
/external/libchrome/mojo/core/
Ddata_pipe_unittest.cc1119 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 …]
Dtrap_unittest.cc440 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/tensorflow/tensorflow/core/platform/cloud/
Dgoogle_auth_provider_test.cc27 constexpr char kTestData[] = "core/platform/cloud/testdata/"; variable
82 io::JoinPath(testing::TensorFlowSrcRoot(), kTestData).c_str(), in TEST_F()
87 io::JoinPath(testing::TensorFlowSrcRoot(), kTestData).c_str(), in TEST_F()
125 io::JoinPath(testing::TensorFlowSrcRoot(), kTestData).c_str(), 1); in TEST_F()
Doauth_client_test.cc32 constexpr char kTestData[] = "core/platform/cloud/testdata/"; variable
94 io::JoinPath(io::JoinPath(testing::TensorFlowSrcRoot(), kTestData), in TEST()
137 io::JoinPath(io::JoinPath(testing::TensorFlowSrcRoot(), kTestData), in TEST()
/external/tensorflow/tensorflow/core/lib/math/
Dmath_util_test.cc64 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/libvpx/libvpx/test/
Dpredict_test.cc237 static const uint8_t kTestData[kSrcSize] = { in TEST_P() local
294 predict_(const_cast<uint8_t *>(kTestData) + kSrcStride * 2 + 2, in TEST_P()