Home
last modified time | relevance | path

Searched refs:expectedBytes (Results 1 – 25 of 40) sorted by relevance

12

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmComputeShaderTestUtil.cpp40 std::vector<deUint8> expectedBytes; in verifyOutputWithEpsilon() local
41 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyOutputWithEpsilon()
43 std::vector<float> expectedFloats (expectedBytes.size() / sizeof (float)); in verifyOutputWithEpsilon()
44 std::vector<float> actualFloats (expectedBytes.size() / sizeof (float)); in verifyOutputWithEpsilon()
46 memcpy(&expectedFloats[0], &expectedBytes.front(), expectedBytes.size()); in verifyOutputWithEpsilon()
47 memcpy(&actualFloats[0], outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size()); in verifyOutputWithEpsilon()
DvktSpvAsmWorkgroupMemoryTests.cpp63 std::vector<deUint8> expectedBytes; in checkResultsFloat16() local
64 expectedOutputs.front().getBuffer()->getPackedBytes(expectedBytes); in checkResultsFloat16()
67 const deUint16* expected = reinterpret_cast<const deUint16*>(&expectedBytes[0]); in checkResultsFloat16()
69 for (size_t i = 0; i < expectedBytes.size() / sizeof (deUint16); i++) in checkResultsFloat16()
92 std::vector<deUint8> expectedBytes; in checkResultsFloat32() local
93 expectedOutputs.front().getBuffer()->getPackedBytes(expectedBytes); in checkResultsFloat32()
96 const deUint32* expected = reinterpret_cast<const deUint32*>(&expectedBytes[0]); in checkResultsFloat32()
98 for (size_t i = 0; i < expectedBytes.size() / sizeof (deUint32); i++) in checkResultsFloat32()
128 std::vector<deUint8> expectedBytes; in checkResultsFloat64() local
129 expectedOutputs.front().getBuffer()->getPackedBytes(expectedBytes); in checkResultsFloat64()
[all …]
DvktSpvAsmEmptyStructTests.cpp46 std::vector<deUint8> expectedBytes; in verifyResult() local
47 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyResult()
49 const deUint32 itemCount = static_cast<deUint32>(expectedBytes.size()) / 4u; in verifyResult()
51 const deUint32* expected = reinterpret_cast<const deUint32*>(&expectedBytes.front()); in verifyResult()
DvktSpvAsmComputeShaderTestUtil.hpp191 std::vector<deUint8> expectedBytes; in compareWithRetvals() local
193 expectedOutput->getBytes(expectedBytes); in compareWithRetvals()
195 if (deMemCmp(&expectedBytes.front(), values, expectedBytes.size())) in compareWithRetvals()
DvktSpvAsmComputeShaderCase.cpp854 vector<deUint8> expectedBytes; in iterate() local
856 expectedOutput->getBytes(expectedBytes); in iterate()
858 … if (deMemCmp(&expectedBytes.front(), outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size())) in iterate()
862 const deUint8* ptrExpected = static_cast<deUint8*>(&expectedBytes.front()); in iterate()
866 for (; ndx < expectedBytes.size(); ++ndx) in iterate()
872 for (; ndx < expectedBytes.size(); ++ndx) in iterate()
DvktSpvAsmCompositeInsertTests.cpp123 vector<deUint8> expectedBytes; in verifyMatrixOutput() local
124 expectedOutputs[0].getBytes(expectedBytes); in verifyMatrixOutput()
126 …const float* const expectedOutputAsFloat = reinterpret_cast<const float*>(&expectedBytes.fr… in verifyMatrixOutput()
130 for (size_t idx = 0; idx < expectedBytes.size() / sizeof(float); ++idx) in verifyMatrixOutput()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/
DvktSpvAsmComputeShaderTestUtil.cpp40 std::vector<deUint8> expectedBytes; in verifyOutputWithEpsilon() local
41 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyOutputWithEpsilon()
43 std::vector<float> expectedFloats (expectedBytes.size() / sizeof (float)); in verifyOutputWithEpsilon()
44 std::vector<float> actualFloats (expectedBytes.size() / sizeof (float)); in verifyOutputWithEpsilon()
46 memcpy(&expectedFloats[0], &expectedBytes.front(), expectedBytes.size()); in verifyOutputWithEpsilon()
47 memcpy(&actualFloats[0], outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size()); in verifyOutputWithEpsilon()
DvktSpvAsmWorkgroupMemoryTests.cpp63 std::vector<deUint8> expectedBytes; in checkResultsFloat16() local
64 expectedOutputs.front().getBuffer()->getPackedBytes(expectedBytes); in checkResultsFloat16()
67 const deUint16* expected = reinterpret_cast<const deUint16*>(&expectedBytes[0]); in checkResultsFloat16()
69 for (size_t i = 0; i < expectedBytes.size() / sizeof (deUint16); i++) in checkResultsFloat16()
92 std::vector<deUint8> expectedBytes; in checkResultsFloat32() local
93 expectedOutputs.front().getBuffer()->getPackedBytes(expectedBytes); in checkResultsFloat32()
96 const deUint32* expected = reinterpret_cast<const deUint32*>(&expectedBytes[0]); in checkResultsFloat32()
98 for (size_t i = 0; i < expectedBytes.size() / sizeof (deUint32); i++) in checkResultsFloat32()
128 std::vector<deUint8> expectedBytes; in checkResultsFloat64() local
129 expectedOutputs.front().getBuffer()->getPackedBytes(expectedBytes); in checkResultsFloat64()
[all …]
DvktSpvAsmEmptyStructTests.cpp46 std::vector<deUint8> expectedBytes; in verifyResult() local
47 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyResult()
49 const deUint32 itemCount = static_cast<deUint32>(expectedBytes.size()) / 4u; in verifyResult()
51 const deUint32* expected = reinterpret_cast<const deUint32*>(&expectedBytes.front()); in verifyResult()
DvktSpvAsmComputeShaderTestUtil.hpp191 std::vector<deUint8> expectedBytes; in compareWithRetvals() local
193 expectedOutput->getBytes(expectedBytes); in compareWithRetvals()
195 if (deMemCmp(&expectedBytes.front(), values, expectedBytes.size())) in compareWithRetvals()
DvktSpvAsmComputeShaderCase.cpp854 vector<deUint8> expectedBytes; in iterate() local
856 expectedOutput->getBytes(expectedBytes); in iterate()
858 … if (deMemCmp(&expectedBytes.front(), outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size())) in iterate()
862 const deUint8* ptrExpected = static_cast<deUint8*>(&expectedBytes.front()); in iterate()
866 for (; ndx < expectedBytes.size(); ++ndx) in iterate()
872 for (; ndx < expectedBytes.size(); ++ndx) in iterate()
DvktSpvAsmCompositeInsertTests.cpp123 vector<deUint8> expectedBytes; in verifyMatrixOutput() local
124 expectedOutputs[0].getBytes(expectedBytes); in verifyMatrixOutput()
126 …const float* const expectedOutputAsFloat = reinterpret_cast<const float*>(&expectedBytes.fr… in verifyMatrixOutput()
130 for (size_t idx = 0; idx < expectedBytes.size() / sizeof(float); ++idx) in verifyMatrixOutput()
DvktSpvAsmImageSamplerTests.cpp1127 vector<deUint8> expectedBytes; in verifyDepthCompareResult() local
1128 expectedOutputs[0].getBytes(expectedBytes); in verifyDepthCompareResult()
1131 const float* expectedAsFloat = reinterpret_cast<const float*>(&expectedBytes.front()); in verifyDepthCompareResult()
1133 …for (deUint32 elementNdx = 0; elementNdx < static_cast<deUint32>(expectedBytes.size() / sizeof(flo… in verifyDepthCompareResult()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DBinaryProtocolTest.java56 byte[] expectedBytes = expected.toByteArray(); in proto3Roundtrip()
60 ExperimentalSerializationUtil.fromByteArray(expectedBytes, Proto3Message.class); in proto3Roundtrip()
65 Assert.assertEquals(expectedBytes.length, actualBytes.length); in proto3Roundtrip()
75 byte[] expectedBytes = expected.toByteArray(); in proto2Roundtrip()
79 ExperimentalSerializationUtil.fromByteArray(expectedBytes, Proto2Message.class); in proto2Roundtrip()
84 Assert.assertEquals(expectedBytes.length, actualBytes.length); in proto2Roundtrip()
DCodedAdapterTest.java56 byte[] expectedBytes = expected.toByteArray(); in proto3Roundtrip()
59 Proto3Message result = fromByteArray(expectedBytes, Proto3Message.class); in proto3Roundtrip()
63 byte[] actualBytes = toByteArray(result, expectedBytes.length); in proto3Roundtrip()
73 byte[] expectedBytes = expected.toByteArray(); in proto2Roundtrip()
76 Proto2Message result = fromByteArray(expectedBytes, Proto2Message.class); in proto2Roundtrip()
80 byte[] actualBytes = toByteArray(result, expectedBytes.length); in proto2Roundtrip()
DCodedOutputStreamTest.java340 final byte[] expectedBytes = TestUtil.getGoldenMessage().toByteArray(); in testWriteWholeMessage()
348 assertEqualBytes(outputType, expectedBytes, rawBytes); in testWriteWholeMessage()
356 assertEqualBytes(OutputType.STREAM, expectedBytes, coder.toByteArray()); in testWriteWholeMessage()
365 byte[] expectedBytes = TestUtil.getGoldenPackedFieldsMessage().toByteArray(); in testWriteWholePackedFieldsMessage()
373 assertEqualBytes(outputType, expectedBytes, rawBytes); in testWriteWholePackedFieldsMessage()
522 final byte[] expectedBytes = expectedBytesStream.toByteArray();
526 Coder coder = outputType.newCoder(expectedBytes.length);
532 assertEqualBytes(outputType, expectedBytes, coder.toByteArray());
/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/
DDecodeTest.cs75 byte[] expectedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(expected); in CheckDecodeResourceWithDictionary()
79 NUnit.Framework.Assert.AreEqual(expectedBytes, actual); in CheckDecodeResourceWithDictionary()
85 byte[] expectedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(expected); in CheckDecodeResource()
88 NUnit.Framework.Assert.AreEqual(expectedBytes, actual); in CheckDecodeResource()
90 NUnit.Framework.Assert.AreEqual(expectedBytes, actualByByte); in CheckDecodeResource()
/third_party/node/test/parallel/
Dtest-stdin-pipe-large.js15 const expectedBytes = 1024 * 1024; constant
18 child.stdin.end(Buffer.alloc(expectedBytes));
22 assert.strictEqual(readBytes, expectedBytes);
/third_party/skia/third_party/externals/brotli/java/org/brotli/dec/
DDecodeTest.java61 byte[] expectedBytes = readUniBytes(expected); in checkDecodeResource()
64 assertArrayEquals(expectedBytes, actual); in checkDecodeResource()
66 assertArrayEquals(expectedBytes, actualByByte); in checkDecodeResource()
/third_party/typescript/tests/baselines/reference/
DduplicateLocalVariable1.js206 …var expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A,…
208 expectedBytes.forEach(function (val) {
273 …var expectedBytes = [0xF0, 0x90, 0x92, 0x80, 0xF0, 0x90, 0x92, 0x81, 0xF0, 0x90, 0x92, 0x82, 0x54,…
274 expectedBytes.forEach(function (val) {
531 …var expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A,…
533 expectedBytes.forEach(function (val) {
586 …var expectedBytes = [0xF0, 0x90, 0x92, 0x80, 0xF0, 0x90, 0x92, 0x81, 0xF0, 0x90, 0x92, 0x82, 0x54,…
587 expectedBytes.forEach(function (val) {
DduplicateLocalVariable1.types206expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A, 0x0…
207expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A, 0x0…
208expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A, 0x0…
1089expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A, 0x0…
1093expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A, 0x0…
1098expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A, 0x0…
1171 …var expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A,…
1172 >expectedBytes : number[]
1196 expectedBytes.forEach(function (val) {
1197 >expectedBytes.forEach(function (val) { var byteVal = savedFile.readByte(); …
[all …]
DduplicateLocalVariable1.symbols627 …var expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A,…
628 >expectedBytes : Symbol(expectedBytes, Decl(duplicateLocalVariable1.ts, 204, 15))
633 expectedBytes.forEach(function (val) {
634 >expectedBytes.forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --))
635 >expectedBytes : Symbol(expectedBytes, Decl(duplicateLocalVariable1.ts, 204, 15))
822 …var expectedBytes = [0xF0, 0x90, 0x92, 0x80, 0xF0, 0x90, 0x92, 0x81, 0xF0, 0x90, 0x92, 0x82, 0x54,…
823 >expectedBytes : Symbol(expectedBytes, Decl(duplicateLocalVariable1.ts, 271, 15))
825 expectedBytes.forEach(function (val) {
826 >expectedBytes.forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --))
827 >expectedBytes : Symbol(expectedBytes, Decl(duplicateLocalVariable1.ts, 271, 15))
DduplicateLocalVariable1.errors.txt218 …var expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A,…
220 expectedBytes.forEach(function (val) {
285 …var expectedBytes = [0xF0, 0x90, 0x92, 0x80, 0xF0, 0x90, 0x92, 0x81, 0xF0, 0x90, 0x92, 0x82, 0x54,…
286 expectedBytes.forEach(function (val) {
/third_party/typescript/tests/cases/compiler/
DduplicateLocalVariable1.ts208 …var expectedBytes = [0xFF, 0xFE, 0x54, 0x00, 0xE8, 0x00, 0x23, 0x1D, 0x20, 0x20, 0x0D, 0x00, 0x0A,… variable
210 expectedBytes.forEach(function (val) {
275 …var expectedBytes = [0xF0, 0x90, 0x92, 0x80, 0xF0, 0x90, 0x92, 0x81, 0xF0, 0x90, 0x92, 0x82, 0x54,… variable
276 expectedBytes.forEach(function (val) {
/third_party/icu/icu4c/source/test/cintltst/
Ducptrietest.c522 uint32_t value, expectedBytes, actualBytes; in testTrieUTF8() local
613 expectedBytes=0; in testTrieUTF8()
617 expectedBytes=(expectedBytes<<8)|s[k++]; in testTrieUTF8()
621 actualBytes=expectedBytes; in testTrieUTF8()
633 (long)value, (long)values[i], (unsigned long)expectedBytes); in testTrieUTF8()
639 (long)(p-s), (long)i8, (unsigned long)expectedBytes); in testTrieUTF8()
659 expectedBytes=0; in testTrieUTF8()
663 expectedBytes=(expectedBytes<<8)|s[k++]; in testTrieUTF8()
667 actualBytes=expectedBytes; in testTrieUTF8()
679 (long)value, (long)values[i], (unsigned long)expectedBytes); in testTrieUTF8()
[all …]

12