1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
|
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "VtsHalRenderscriptV1_0TargetTest.h"
/*
* This test creates a 1D Allocation with 128 Float Elements, and two float
* vector dataIn & dataOut. dataIn is pre-populated with data, and copied into
* the Allocation using allocation1DWrite. Then the Allocation is copied into
* dataOut with allocation1DRead.
*
* Calls: elementCreate, typeCreate, allocationCreateTyped, allocation1DWrite,
* allocation1DRead
*
* Expect: dataIn & dataOut are the same.
*/
TEST_P(RenderscriptHidlTest, Simple1DCopyTest) {
// float1
Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element);
// 128 x float1
Type type = context->typeCreate(element, 128, 0, 0, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), type);
// 128 x float1
Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE,
(int)AllocationUsageType::SCRIPT,
(Ptr)nullptr);
ASSERT_NE(Allocation(0), allocation);
std::vector<float> dataIn(128), dataOut(128);
std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(float));
context->allocation1DWrite(allocation, 0, 0, (Size)dataIn.size(), _data);
context->allocation1DRead(allocation, 0, 0, (uint32_t)dataOut.size(), (Ptr)dataOut.data(),
(Size)dataOut.size()*sizeof(float));
EXPECT_EQ(dataIn, dataOut);
}
/*
* This test creates a 2D Allocation with 128 * 128 Float Elements, and two
* float vector dataIn & dataOut. dataIn is pre-populated with data, and copied
* into the Allocation using allocation2DWrite. Then the Allocation is copied
* into dataOut with allocation2DRead.
*
* Calls: elementCreate, typeCreate, allocationCreateTyped, allocation2DWrite,
* allocation2DRead
*
* Expect: dataIn & dataOut are the same.
*/
TEST_P(RenderscriptHidlTest, Simple2DCopyTest) {
// float1
Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element);
// 128 x 128 x float1
Type type = context->typeCreate(element, 128, 128, 0, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), type);
// 128 x 128 x float1
Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE,
(int)AllocationUsageType::SCRIPT,
(Ptr)nullptr);
ASSERT_NE(Allocation(0), allocation);
std::vector<float> dataIn(128*128), dataOut(128*128);
std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(float));
context->allocation2DWrite(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128,
_data, 0);
context->allocation2DRead(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128,
(Ptr)dataOut.data(), (Size)dataOut.size()*sizeof(float), 0);
EXPECT_EQ(dataIn, dataOut);
}
/*
* This test creates a 3D Allocation with 32 * 32 * 32 Float Elements, and two
* float vector dataIn & dataOut. dataIn is pre-populated with data, and copied
* into the Allocation using allocation3DWrite. Then the Allocation is copied
* into dataOut with allocation3DRead.
*
* Calls: elementCreate, typeCreate, allocationCreateTyped, allocation3DWrite,
* allocation3DRead
*
* Expect: dataIn & dataOut are the same.
*/
TEST_P(RenderscriptHidlTest, Simple3DCopyTest) {
// float1
Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element);
// 32 x 32 x 32 x float1
Type type = context->typeCreate(element, 32, 32, 32, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), type);
// 32 x 32 x 32 x float1
Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE,
(int)AllocationUsageType::SCRIPT,
(Ptr)nullptr);
ASSERT_NE(Allocation(0), allocation);
std::vector<float> dataIn(32*32*32), dataOut(32*32*32);
std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(float));
context->allocation3DWrite(allocation, 0, 0, 0, 0, 32, 32, 32, _data, 0);
context->allocation3DRead(allocation, 0, 0, 0, 0, 32, 32, 32, (Ptr)dataOut.data(),
(Size)dataOut.size()*sizeof(float), 0);
EXPECT_EQ(dataIn, dataOut);
}
/*
* This test creates a 2D Allocation with 512 * 512 Float Elements with
* allocationCreateFromBitmap, and two float vector dataIn & dataOut. dataIn is
* pre-populated with data, and copied into the Allocation using
* allocationCopyToBitmap. Then the Allocation is copied into dataOut with
* allocationRead.
*
* Calls: elementCreate, typeCreate, allocationCreateFromBitmap,
* allocationCopyToBitmap, allocationRead
*
* Expect: dataIn & dataOut are the same.
*/
TEST_P(RenderscriptHidlTest, SimpleBitmapTest) {
// float1
Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element);
// 512 x 512 x float1
Type type = context->typeCreate(element, 512, 512, 0, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), type);
std::vector<float> dataIn(512*512), dataOut1(512*512), dataOut2(512*512);
std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(float));
// 512 x 512 x float1
Allocation allocation = context->allocationCreateFromBitmap(type,
AllocationMipmapControl::NONE,
_data,
(int)AllocationUsageType::SCRIPT);
ASSERT_NE(Allocation(0), allocation);
context->allocationCopyToBitmap(allocation, (Ptr)dataOut1.data(),
(Size)dataOut1.size()*sizeof(float));
EXPECT_EQ(dataIn, dataOut1);
context->allocationRead(allocation, (Ptr)dataOut2.data(), (Size)dataOut2.size()*sizeof(float));
EXPECT_EQ(dataIn, dataOut2);
}
/*
* This test creates two 2D Allocations, one with 512 * 512 Float Elements, the
* other with 256 * 256 Float Elements. The larger Allocation is pre-populated
* with dataIn, and copied into the smaller Allocation using
* allocationCopy2DRange. Then the Allocation is copied into dataOut with
* allocationRead.
*
* Calls: elementCreate, typeCreate, allocationCreateFromBitmap,
* allocationCreateTyped, allocationCopy2DRange, allocationRead
*
* Expect: dataIn & dataOut are the same.
*/
TEST_P(RenderscriptHidlTest, AllocationCopy2DRangeTest) {
// float1
Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element);
// 512 x 512 x float1
Type typeSrc = context->typeCreate(element, 512, 512, 0, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), typeSrc);
// 256 x 256 x float1
Type typeDst = context->typeCreate(element, 256, 256, 0, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), typeDst);
std::vector<float> dataIn(512*512), dataOut(256*256), expected(256*256);
std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(float));
// 512 x 512 x float1
Allocation allocSrc = context->allocationCreateFromBitmap(typeSrc,
AllocationMipmapControl::NONE, _data,
(int)AllocationUsageType::SCRIPT);
ASSERT_NE(Allocation(0), allocSrc);
// 256 x 256 x float1
Allocation allocDst = context->allocationCreateTyped(typeDst, AllocationMipmapControl::NONE,
(int)AllocationUsageType::SCRIPT,
(Ptr)nullptr);
ASSERT_NE(Allocation(0), allocDst);
context->allocationCopy2DRange(allocDst, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 256, 256,
allocSrc, 128, 128, 0, AllocationCubemapFace::POSITIVE_X);
context->allocationRead(allocDst, (Ptr)dataOut.data(), (Size)dataOut.size()*sizeof(float));
for (int i = 0; i < 256; ++i) {
for (int j = 0; j < 256; ++j) {
expected[i*256 + j] = dataIn[(i+128)*512 + (j+128)];
}
}
EXPECT_EQ(expected, dataOut);
}
/*
* This test creates two 3D Allocations, one with 128 * 128 * 128 Float
* Elements, the other with 64 * 64 * 64 Float Elements. The larger Allocation
* is pre-populated with dataIn, and copied into the smaller Allocation using
* allocationCopy3DRange. Then the Allocation is copied into dataOut with
* allocationRead.
*
* Calls: elementCreate, typeCreate, allocationCreateTyped, allocation3DWrite,
* allocationCopy3DRange, allocationRead
*
* Expect: dataIn & dataOut are the same.
*/
TEST_P(RenderscriptHidlTest, AllocationCopy3DRangeTest) {
// float1
Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element);
// 128 x 128 x 128 x float1
Type typeSrc = context->typeCreate(element, 128, 128, 128, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), typeSrc);
// 64 x 64 x 64 x float1
Type typeDst = context->typeCreate(element, 64, 64, 64, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), typeDst);
std::vector<float> dataIn(128*128*128), dataOut(64*64*64), expected(64*64*64);
std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(float));
// 512 x 512 x float1
Allocation allocSrc = context->allocationCreateTyped(typeSrc, AllocationMipmapControl::NONE,
(int)AllocationUsageType::SCRIPT,
(Ptr)nullptr);
ASSERT_NE(Allocation(0), allocSrc);
// 256 x 256 x float1
Allocation allocDst = context->allocationCreateTyped(typeDst, AllocationMipmapControl::NONE,
(int)AllocationUsageType::SCRIPT,
(Ptr)nullptr);
ASSERT_NE(Allocation(0), allocDst);
context->allocation3DWrite(allocSrc, 0, 0, 0, 0, 128, 128, 128, _data, 128*sizeof(float));
context->allocationCopy3DRange(allocDst, 0, 0, 0, 0, 64, 64, 64, allocSrc, 32, 32, 32, 0);
context->allocationRead(allocDst, (Ptr)dataOut.data(), (Size)dataOut.size()*sizeof(float));
for (int i = 0; i < 64; ++i) {
for (int j = 0; j < 64; ++j) {
for (int k = 0; k < 64; ++k) {
expected[i*64*64 + j*64 + k] = dataIn[(i+32)*128*128 + (j+32)*128 + (k+32)];
}
}
}
EXPECT_EQ(expected, dataOut);
}
/*
* This test creates one 2D Allocations, one with 512 * 512 Float Elements, and
* one 2D AllocationAdapter with a window of 256 * 256 based on the Allocation.
* The Allocation is pre-populated with dataIn. Then the Allocation is copied
* into dataOut with allocationRead on the AllocationAdapter.
*
* Calls: elementCreate, typeCreate, allocationCreateFromBitmap,
* allocationAdapterCreate, allocationAdapterOffset, allocation2DRead
*
* Expect: dataIn & dataOut are the same.
*/
TEST_P(RenderscriptHidlTest, SimpleAdapterTest) {
// float1
Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element);
// 512 x 512 x float1
Type type = context->typeCreate(element, 512, 512, 0, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), type);
std::vector<float> dataIn(512*512), dataOut(256*256), expected;
std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(float));
// 512 x 512 x float1
Allocation allocation = context->allocationCreateFromBitmap(type,
AllocationMipmapControl::NONE,
_data,
(int)AllocationUsageType::SCRIPT);
ASSERT_NE(Allocation(0), allocation);
// 256 x 256 x float1
Type subType = context->typeCreate(element, 256, 256, 0, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), subType);
// 256 x 256 x float1
AllocationAdapter allocationAdapter = context->allocationAdapterCreate(subType, allocation);
ASSERT_NE(AllocationAdapter(0), allocationAdapter);
std::vector<uint32_t> offsets(9, 0);
offsets[0] = 128;
offsets[1] = 128;
hidl_vec<uint32_t> _offsets;
_offsets.setToExternal(offsets.data(), offsets.size());
// origin at (128,128)
context->allocationAdapterOffset(allocationAdapter, _offsets);
context->allocation2DRead(allocationAdapter, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 256,
256, (Ptr)dataOut.data(), (Size)dataOut.size()*sizeof(float), 0);
for (int i = 128; i < 128 + 256; ++i) {
for (int j = 128; j < 128 + 256; ++j) {
expected.push_back(i * 512 + j);
}
}
EXPECT_EQ(expected, dataOut);
}
/*
* This test creates one 2D Allocations, one with 64 * 64 USIGNED_8 Elements,
* and with AllocationMipmapControl::FULL. The Allocation is pre-populated with
* dataIn and the mipmaps are filled with allocationGenerateMipmaps. Then
* dataOut is then overridden with allocation2DRead.
*
* Calls: elementCreate, typeCreate, allocationCreateTyped, allocation2DWrite,
* allocationGenerateMipmaps, allocationSyncAll, allocation2DRead
*
* Expect: dataIn & dataOut are the same.
*/
TEST_P(RenderscriptHidlTest, SimpleMipmapTest) {
// uint8_t
Element element = context->elementCreate(DataType::UNSIGNED_8, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element);
// 64 x 64 x uint8_t
Type type = context->typeCreate(element, 64, 64, 0, true, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), type);
std::vector<uint8_t> dataIn(64*64), dataOut(32*32), expected(32*32);
std::generate(dataIn.begin(), dataIn.end(),
[](){ static int val = 0; return (uint8_t)(0xFF & val++); });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(uint8_t));
// 64 x 64 x uint8_t
Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::FULL,
(int)AllocationUsageType::SCRIPT,
(Ptr)nullptr);
ASSERT_NE(Allocation(0), allocation);
context->allocation2DWrite(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 64, 64,
_data, 64*sizeof(uint8_t));
context->allocationGenerateMipmaps(allocation);
context->allocationSyncAll(allocation, AllocationUsageType::SCRIPT);
context->allocation2DRead(allocation, 0, 0, 1, AllocationCubemapFace::POSITIVE_X, 32, 32,
(Ptr)dataOut.data(), (Size)dataOut.size()*sizeof(uint8_t),
32*sizeof(uint8_t));
for (int i = 0; i < 32; ++i) {
for (int j = 0; j < 32; ++j) {
expected[i*32 + j] = ((uint32_t)dataIn[i*2*64 + j*2] + dataIn[i*2*64 + j*2 + 1] +
dataIn[i*2*64 + j*2 + 64] + dataIn[i*2*64 + j*2 + 64+1]) / 4;
}
}
EXPECT_EQ(expected, dataOut);
}
/*
* This test creates one 2D Allocations, one with 128 * 128 Float Elements with
* allocationCubeCreateFromBitmap. The Allocation is pre-populated with dataIn
* and the mipmaps are filled with allocationGenerateMipmaps. Then dataOut is
* then overridden with allocation2DRead.
*
* Calls: elementCreate, typeCreate, allocationCubeCreateFromBitmap,
* allocation2DRead
*
* Expect: dataIn & dataOut are the same.
*/
TEST_P(RenderscriptHidlTest, SimpleCubemapTest) {
// float1
Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element);
// 128 x 128 x float1
Type type = context->typeCreate(element, 128, 128, 0, false, true, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), type);
std::vector<float> dataIn(128*128*6), dataOut(128*128), expected(128*128);
std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(float));
// 128 x 128 x float1 x 6
Allocation allocation = context->allocationCubeCreateFromBitmap(
type, AllocationMipmapControl::NONE, _data, (int)AllocationUsageType::SCRIPT);
ASSERT_NE(Allocation(0), allocation);
context->allocation2DRead(allocation, 0, 0, 0, AllocationCubemapFace::NEGATIVE_Z, 128,
128, (Ptr)dataOut.data(), (Size)dataOut.size()*sizeof(float),
128*sizeof(float));
for (int i = 0; i < 128; ++i) {
for (int j = 0; j < 128; ++j) {
expected[i*128 + j] = i*128*6 + j + 128*5;
}
}
EXPECT_EQ(expected, dataOut);
}
/*
* This test creates a complex element type (uint8_t, uint32_t) out of known
* elements. It then verifies the element structure was created correctly.
* Finally, the test creates a 1-wide, 1-dimension allocation of this type
* and transfers memory to and from a single cell of this Allocation.
*
* Calls: elementCreate, elementComplexCreate, elementGetSubElements,
* typeCreate, allocationCreateTyped, allocationElementWrite,
* allocationElementRead
*/
TEST_P(RenderscriptHidlTest, ComplexElementTest) {
Element element1 = context->elementCreate(DataType::UNSIGNED_8, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element1);
Element element2 = context->elementCreate(DataType::UNSIGNED_32, DataKind::USER, false, 1);
ASSERT_NE(Element(0), element2);
hidl_vec<Element> eins = {element1, element2};
hidl_vec<hidl_string> names = {hidl_string("first"), hidl_string("second")};
hidl_vec<Size> arraySizesPtr = {1, 1};
Element element3 = context->elementComplexCreate(eins, names, arraySizesPtr);
ASSERT_NE(Element(0), element3);
std::vector<Element> ids;
std::vector<std::string> namesOut;
std::vector<Size> arraySizesOut;
context->elementGetSubElements(element3, 2, [&](const hidl_vec<Element>& _ids,
const hidl_vec<hidl_string>& _names,
const hidl_vec<Size>& _arraySizes){
ids = _ids;
namesOut.push_back(_names[0]);
namesOut.push_back(_names[1]);
arraySizesOut = _arraySizes;
});
EXPECT_EQ(element1, ids[0]);
EXPECT_EQ(element2, ids[1]);
EXPECT_EQ("first", namesOut[0]);
EXPECT_EQ("second", namesOut[1]);
EXPECT_EQ(Size(1), arraySizesOut[0]);
EXPECT_EQ(Size(1), arraySizesOut[1]);
// 1 x (uint8_t, uint32_t)
Type type = context->typeCreate(element3, 1, 0, 0, false, false, YuvFormat::YUV_NONE);
ASSERT_NE(Type(0), type);
// 1 x (uint8_t, uint32_t)
Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE,
(int)AllocationUsageType::SCRIPT,
(Ptr)nullptr);
ASSERT_NE(Allocation(0), allocation);
std::vector<uint32_t> dataIn(1), dataOut(1);
std::generate(dataIn.begin(), dataIn.end(), [](){ static uint32_t val = 0; return val++; });
hidl_vec<uint8_t> _data;
_data.setToExternal((uint8_t*)dataIn.data(), dataIn.size()*sizeof(uint32_t));
context->allocationElementWrite(allocation, 0, 0, 0, 0, _data, 1);
context->allocationElementRead(allocation, 0, 0, 0, 0, (Ptr)dataOut.data(),
(Size)dataOut.size()*sizeof(uint32_t), 1);
EXPECT_EQ(dataIn, dataOut);
}
|