Home
last modified time | relevance | path

Searched refs:expectedData (Results 1 – 25 of 45) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DMultisampledSamplingTests.cpp226 std::array<float, 8> expectedData; in TEST_P() local
228 expectedData = {1, 0, 0, 0, 0.7, 0, 0, 0}; in TEST_P()
229 EXPECT_BUFFER_FLOAT_RANGE_EQ(expectedData.data(), outputBuffer, 0 * alignedResultSize, 8) in TEST_P()
232 expectedData = {0, 1, 0, 0, 0, 0.7, 0, 0}; in TEST_P()
233 EXPECT_BUFFER_FLOAT_RANGE_EQ(expectedData.data(), outputBuffer, 1 * alignedResultSize, 8) in TEST_P()
236 expectedData = {0, 0, 1, 0, 0, 0, 0.7, 0}; in TEST_P()
237 EXPECT_BUFFER_FLOAT_RANGE_EQ(expectedData.data(), outputBuffer, 2 * alignedResultSize, 8) in TEST_P()
240 expectedData = {0, 0, 0, 1, 0, 0, 0, 0.7}; in TEST_P()
241 EXPECT_BUFFER_FLOAT_RANGE_EQ(expectedData.data(), outputBuffer, 3 * alignedResultSize, 8) in TEST_P()
244 expectedData = {1, 0, 0, 0, 0.7, 0, 0, 0}; in TEST_P()
[all …]
DNonzeroBufferCreationTests.cpp49 std::vector<uint8_t> expectedData(kSize, uint8_t(1u)); in TEST_P() local
50 EXPECT_BUFFER_U32_RANGE_EQ(reinterpret_cast<uint32_t*>(expectedData.data()), buffer, 0, in TEST_P()
65 std::vector<uint8_t> expectedData(kSize, uint8_t(1u)); in TEST_P() local
66 EXPECT_BUFFER_U32_RANGE_EQ(reinterpret_cast<uint32_t*>(expectedData.data()), buffer, 0, in TEST_P()
85 const std::vector<uint8_t> expectedData(kSize, uint8_t(1u)); in TEST_P() local
86 const uint32_t* expectedDataPtr = reinterpret_cast<const uint32_t*>(expectedData.data()); in TEST_P()
95 EXPECT_EQ(0, memcmp(mappedData, expectedData.data(), kSize)); in TEST_P()
100 EXPECT_EQ(0, memcmp(mappedData, expectedData.data(), kSize)); in TEST_P()
111 EXPECT_EQ(0, memcmp(mappedData, expectedData.data(), kSize)); in TEST_P()
124 EXPECT_EQ(0, memcmp(mappedData, expectedData.data(), kSize)); in TEST_P()
DDynamicBufferOffsetTests.cpp227 std::vector<uint32_t> expectedData = {2, 4}; in TEST_P() local
229 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffers[1], 0, expectedData.size()); in TEST_P()
249 std::vector<uint32_t> expectedData = {6, 8}; in TEST_P() local
251 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffers[1], in TEST_P()
252 mMinUniformBufferOffsetAlignment, expectedData.size()); in TEST_P()
270 std::vector<uint32_t> expectedData = {2, 4}; in TEST_P() local
271 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffers[1], 0, expectedData.size()); in TEST_P()
290 std::vector<uint32_t> expectedData = {6, 8}; in TEST_P() local
291 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffers[1], in TEST_P()
292 mMinUniformBufferOffsetAlignment, expectedData.size()); in TEST_P()
[all …]
DDepthStencilCopyTests.cpp199 std::vector<float> expectedData = { in TEST_P() local
205 EXPECT_TEXTURE_EQ(expectedData.data(), depthTexture, {0, 0}, {kWidth, kHeight}, 0, in TEST_P()
224 std::vector<uint8_t> expectedData = { in TEST_P() local
230 EXPECT_TEXTURE_EQ(expectedData.data(), depthStencilTexture, {0, 0}, {kWidth, kHeight}, 0, in TEST_P()
249 std::vector<uint8_t> expectedData = { in TEST_P() local
255 EXPECT_TEXTURE_EQ(expectedData.data(), depthStencilTexture, {0, 0}, {4, 4}, 1, in TEST_P()
267 std::vector<float> expectedData = { in TEST_P() local
273 EXPECT_TEXTURE_EQ(expectedData.data(), depthTexture, {0, 0}, {4, 4}, 1, in TEST_P()
296 std::vector<uint8_t> expectedData = { in TEST_P() local
302 EXPECT_TEXTURE_EQ(expectedData.data(), texture, {0, 0}, {kWidth, kHeight}, 0, in TEST_P()
[all …]
DVertexFormatTests.cpp31 std::vector<uint16_t> expectedData; in Float32ToFloat16() local
33 expectedData.push_back(Float32ToFloat16(element)); in Float32ToFloat16()
35 return expectedData; in Float32ToFloat16()
40 std::vector<destType> expectedData; in BitCast() local
42 expectedData.push_back(BitCast(element)); in BitCast()
44 return expectedData; in BitCast()
223 wgpu::RenderPipeline MakeTestPipeline(wgpu::VertexFormat format, std::vector<T>& expectedData) { in MakeTestPipeline() argument
288 std::isnan(static_cast<float>(expectedData[i * componentCount + j]))) { in MakeTestPipeline()
294 vs << "max(f32(" << std::to_string(expectedData[i * componentCount + j]) in MakeTestPipeline()
301 if (static_cast<uint16_t>(expectedData[i * componentCount + j]) == in MakeTestPipeline()
[all …]
DQueueTests.cpp125 std::vector<uint32_t> expectedData; in TEST_P() local
128 expectedData.push_back(i); in TEST_P()
131 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), buffer, 0, kElements); in TEST_P()
143 std::vector<uint32_t> expectedData; in TEST_P() local
145 expectedData.push_back(i); in TEST_P()
148 queue.WriteBuffer(buffer, 0, expectedData.data(), kElements * sizeof(uint32_t)); in TEST_P()
150 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), buffer, 0, kElements); in TEST_P()
162 std::vector<uint32_t> expectedData; in TEST_P() local
164 expectedData.push_back(i); in TEST_P()
167 queue.WriteBuffer(buffer, 0, expectedData.data(), kElements * sizeof(uint32_t)); in TEST_P()
[all …]
DCompressedTextureFormatTests.cpp251 std::vector<RGBA8> expectedData = GetExpectedData(noPaddingExtent3D); in VerifyTexture() local
260 expectedData); in VerifyTexture()
571 std::vector<RGBA8> expectedData(testRegion.width * testRegion.height, leftColorInBlock); in FillExpectedData() local
575 expectedData[testRegion.width * y + x] = rightColorInBlock; in FillExpectedData()
579 return expectedData; in FillExpectedData()
761 std::vector<RGBA8> expectedData = GetExpectedData(kVirtualSize); in TEST_P() local
763 kVirtualSize, expectedData); in TEST_P()
801 std::vector<RGBA8> expectedData = GetExpectedData(kDstVirtualSize); in TEST_P() local
803 dstConfig.copyOrigin3D, kDstVirtualSize, expectedData); in TEST_P()
842 std::vector<RGBA8> expectedData = GetExpectedData(kDstVirtualSize); in TEST_P() local
[all …]
DBufferZeroInitTests.cpp640 std::array<uint8_t, kBufferSize> expectedData; in TEST_P() local
641 expectedData.fill(0); in TEST_P()
643 expectedData[index] = kInitialData[index - kDstOffset]; in TEST_P()
647 0u, EXPECT_BUFFER_U32_RANGE_EQ(reinterpret_cast<uint32_t*>(expectedData.data()), in TEST_P()
663 std::array<uint8_t, kBufferSize> expectedData; in TEST_P() local
664 expectedData.fill(0); in TEST_P()
666 expectedData[index] = kInitialData[index - kDstOffset]; in TEST_P()
670 0u, EXPECT_BUFFER_U32_RANGE_EQ(reinterpret_cast<uint32_t*>(expectedData.data()), in TEST_P()
686 std::array<uint8_t, kBufferSize> expectedData; in TEST_P() local
687 expectedData.fill(0); in TEST_P()
[all …]
DComputeLayoutMemoryBufferTests.cpp253 std::vector<uint8_t> expectedData; // The expected data to be copied by the shader in TEST_P() local
278 expectedData.emplace_back(code); in TEST_P()
339 EXPECT_BUFFER_U8_RANGE_EQ(expectedData.data() + offset, outputBuf, offset, size) in TEST_P()
DStorageTextureTests.cpp700 const std::vector<uint8_t>& expectedData = GetExpectedData(format, sliceCount); in CheckOutputStorageTexture() local
701 CheckOutputStorageTexture(writeonlyStorageTexture, texelSize, expectedData); in CheckOutputStorageTexture()
706 const std::vector<uint8_t>& expectedData) { in CheckOutputStorageTexture() argument
709 static_cast<uint32_t>(expectedData.size() / texelSize / (kWidth * kHeight)); in CheckOutputStorageTexture()
730 reinterpret_cast<const uint32_t*>(expectedData.data() + expectedDataOffset), in CheckOutputStorageTexture()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DGetImageTest.cpp174 std::vector<GLColor> expectedData = {GLColor::red, GLColor::blue, GLColor::green, in TEST_P() local
180 GLTexture tex = InitTextureWithSize(kSmallSize, expectedData.data()); in TEST_P()
193 EXPECT_EQ(expectedData, actualData); in TEST_P()
202 const std::array<std::array<GLColor, kSmallSize * kSmallSize>, kCubeFaces.size()> expectedData = in TEST_P() local
218 GL_UNSIGNED_BYTE, expectedData[faceIndex].data()); in TEST_P()
232 EXPECT_EQ(expectedData[faceIndex], actualData); in TEST_P()
242 std::vector<GLColor> expectedData = {GLColor::red, GLColor::blue, GLColor::green, in TEST_P() local
255 GLTexture tex = InitTextureWithSize(kSmallSize, expectedData.data()); in TEST_P()
268 EXPECT_EQ(expectedData, actualData); in TEST_P()
320 std::vector<GLColorRG> expectedData = {kMediumLumAlpha, kMediumLumAlpha, kMediumLumAlpha, in TEST_P() local
[all …]
DVertexAttributeTest.cpp172 expectedData(expectedDataIn), in TestData()
182 const GLfloat *expectedData; member
211 glVertexAttribPointer(mExpectedAttrib, typeSize, GL_FLOAT, GL_FALSE, 0, test.expectedData); in setupTest()
385 std::array<GLfloat, kVertexCount> &expectedData) in InitTestData() argument
390 expectedData[count] = inputData[count]; in InitTestData()
427 std::array<GLfloat, kVertexCount> expectedData; in TEST_P() local
430 expectedData[i] = inputData[i]; in TEST_P()
434 expectedData.data()); in TEST_P()
442 std::array<GLfloat, kVertexCount> expectedData; in TEST_P() local
445 expectedData[i] = Normalize(inputData[i]); in TEST_P()
[all …]
DExternalBufferTest.cpp116 std::vector<GLubyte> expectedData(kBufferSize, 0xFF); in TEST_P() local
118 glBufferSubData(GL_SHADER_STORAGE_BUFFER, 0, kBufferSize, expectedData.data()); in TEST_P()
170 std::vector<GLubyte> expectedData(kBufferSize, 0xFF); in TEST_P() local
171 glBufferSubData(GL_SHADER_STORAGE_BUFFER, 0, kBufferSize, expectedData.data()); in TEST_P()
327 std::vector<GLubyte> expectedData(kBufferSize, 0xFF); in TEST_P() local
328 glBufferSubData(GL_SHADER_STORAGE_BUFFER, 0, kBufferSize, expectedData.data()); in TEST_P()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DVertexAttributeTest.cpp85 expectedData(expectedDataIn) in TestData()
94 const GLfloat *expectedData; member
121 glVertexAttribPointer(mExpectedAttrib, typeSize, GL_FLOAT, GL_FALSE, 0, test.expectedData); in setupTest()
291 std::array<GLfloat, kVertexCount> &expectedData) in InitTestData() argument
296 expectedData[count] = inputData[count]; in InitTestData()
311 std::array<GLfloat, kVertexCount> expectedData; in TEST_P() local
314 expectedData[i] = inputData[i]; in TEST_P()
318 expectedData.data()); in TEST_P()
326 std::array<GLfloat, kVertexCount> expectedData; in TEST_P() local
329 expectedData[i] = Normalize(inputData[i]); in TEST_P()
[all …]
DSwizzleTest.cpp422 GLColor expectedData(data.R, data.R, data.R, data.R); in TEST_P() local
423 EXPECT_PIXEL_COLOR_EQ(0, 0, expectedData); in TEST_P()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DDynamicBufferOffsetTests.cpp147 std::vector<uint32_t> expectedData = {1, 2}; in TEST_P() local
149 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffer, 0, expectedData.size()); in TEST_P()
169 std::vector<uint32_t> expectedData = {5, 6}; in TEST_P() local
171 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffer, in TEST_P()
172 kMinDynamicBufferOffsetAlignment, expectedData.size()); in TEST_P()
190 std::vector<uint32_t> expectedData = {1, 2}; in TEST_P() local
191 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffer, 0, expectedData.size()); in TEST_P()
210 std::vector<uint32_t> expectedData = {5, 6}; in TEST_P() local
211 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffer, in TEST_P()
212 kMinDynamicBufferOffsetAlignment, expectedData.size()); in TEST_P()
DVertexFormatTests.cpp31 std::vector<uint16_t> expectedData; in Float32ToFloat16() local
33 expectedData.push_back(Float32ToFloat16(element)); in Float32ToFloat16()
35 return expectedData; in Float32ToFloat16()
40 std::vector<destType> expectedData; in BitCast() local
42 expectedData.push_back(BitCast(element)); in BitCast()
44 return expectedData; in BitCast()
223 dawn::RenderPipeline MakeTestPipeline(dawn::VertexFormat format, std::vector<T>& expectedData) { in MakeTestPipeline() argument
281 std::isnan(static_cast<float>(expectedData[i * componentCount + j]))) { in MakeTestPipeline()
287 vs << "max(float(" << std::to_string(expectedData[i * componentCount + j]) in MakeTestPipeline()
293 if (static_cast<uint16_t>(expectedData[i * componentCount + j]) == in MakeTestPipeline()
[all …]
DBufferTests.cpp196 std::vector<uint32_t> expectedData; in TEST_P() local
199 expectedData.push_back(i); in TEST_P()
202 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), buffer, 0, kElements); in TEST_P()
214 std::vector<uint32_t> expectedData; in TEST_P() local
216 expectedData.push_back(i); in TEST_P()
219 buffer.SetSubData(0, kElements * sizeof(uint32_t), expectedData.data()); in TEST_P()
221 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), buffer, 0, kElements); in TEST_P()
DCompressedTextureFormatTests.cpp232 std::vector<RGBA8> expectedData = GetExpectedData(config.format, virtualSizeAtLevel); in TestCopyRegionIntoBCFormatTextures() local
234 config.copyOrigin3D, noPaddingExtent3D, expectedData); in TestCopyRegionIntoBCFormatTextures()
380 std::vector<RGBA8> expectedData(testRegion.width * testRegion.height, leftColorInBlock); in FillExpectedData() local
384 expectedData[testRegion.width * y + x] = rightColorInBlock; in FillExpectedData()
388 return expectedData; in FillExpectedData()
571 std::vector<RGBA8> expectedData = GetExpectedData(config.format, kVirtualSize); in TEST_P() local
573 config.copyOrigin3D, kVirtualSize, expectedData); in TEST_P()
646 std::vector<RGBA8> expectedData = GetExpectedData(dstConfig.format, kDstVirtualSize); in TEST_P() local
648 dstConfig.copyOrigin3D, kDstVirtualSize, expectedData); in TEST_P()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_cube_map_array/
DesextcTextureCubeMapArrayStencilAttachments.cpp831 glw::GLubyte expectedData[] = { 0, 0, 0, 0 }; in readPixelsAndCompareWithExpectedResult() local
839 expectedData[0] = 0; in readPixelsAndCompareWithExpectedResult()
840 expectedData[1] = 255; in readPixelsAndCompareWithExpectedResult()
841 expectedData[2] = 255; in readPixelsAndCompareWithExpectedResult()
842 expectedData[3] = 0; in readPixelsAndCompareWithExpectedResult()
846 expectedData[0] = 255; in readPixelsAndCompareWithExpectedResult()
847 expectedData[1] = 0; in readPixelsAndCompareWithExpectedResult()
848 expectedData[2] = 0; in readPixelsAndCompareWithExpectedResult()
849 expectedData[3] = 255; in readPixelsAndCompareWithExpectedResult()
859 if (data[0] != expectedData[0] || data[1] != expectedData[1] || data[2] != expectedData[2] || in readPixelsAndCompareWithExpectedResult()
[all …]
/third_party/node/test/parallel/
Dtest-stream-readable-pause-and-resume.js8 let expectedData = 19; variable
29 expectedData--;
30 if (expectedData <= 0)
Dtest-http-readable-data-event.js31 const expectedData = [helloWorld, helloAgainLater];
49 assert.strictEqual(data, expectedData.shift());
/third_party/protobuf/objectivec/Tests/
DGPBUtilitiesTests.m124 NSData *expectedData =
126 NSString *expected = [[NSString alloc] initWithData:expectedData
164 NSData *expectedData =
166 NSString *expected = [[NSString alloc] initWithData:expectedData
186 NSData *expectedData =
188 NSString *expected = [[NSString alloc] initWithData:expectedData
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingDataSpillTests.cpp2620 std::vector<deUint32> expectedData; in iterate() local
2623 expectedData.push_back(103u); in iterate()
2624 expectedData.push_back(100u); in iterate()
2628 expectedData.push_back(200u); in iterate()
2629 expectedData.push_back(100u); in iterate()
2633 expectedData.push_back(300u); in iterate()
2634 expectedData.push_back(315u); in iterate()
2635 expectedData.push_back(330u); in iterate()
2639 expectedData.push_back(402u); in iterate()
2640 expectedData.push_back(450u); in iterate()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/
DesextcGeometryShaderLayeredRenderingBoundaryCondition.cpp450 unsigned char expectedData[m_texture_components]; in iterate() local
452 getReferenceColor(nLayer, expectedData, m_texture_components); in iterate()
455 …if (!comparePixels(m_width, m_height, m_texture_components, buffer, expectedData, nTexture, nLayer… in iterate()

12