Lines 37-49
Link Here
|
37 |
|
37 |
|
38 |
#include "TestUtilities.h" |
38 |
#include "TestUtilities.h" |
39 |
|
39 |
|
40 |
const char kDataUnspecifiedLength[] = |
40 |
const signed char kDataUnspecifiedLength[] = |
41 |
{ |
41 |
{ |
42 |
'.', 's', 'n', 'd', |
42 |
'.', 's', 'n', 'd', |
43 |
0, 0, 0, 24, // offset of 24 bytes |
43 |
0, 0, 0, 24, // offset of 24 bytes |
44 |
0xff, 0xff, 0xff, 0xff, // unspecified length |
44 |
-1, -1, -1, -1, // unspecified length |
45 |
0, 0, 0, 3, // 16-bit linear |
45 |
0, 0, 0, 3, // 16-bit linear |
46 |
0, 0, 172, 68, // 44100 Hz |
46 |
0, 0, -84, 68, // 44100 Hz (0xAC44) |
47 |
0, 0, 0, 1, // 1 channel |
47 |
0, 0, 0, 1, // 1 channel |
48 |
0, 1, |
48 |
0, 1, |
49 |
0, 1, |
49 |
0, 1, |
Lines 57-69
const char kDataUnspecifiedLength[] =
Link Here
|
57 |
0, 55 |
57 |
0, 55 |
58 |
}; |
58 |
}; |
59 |
|
59 |
|
60 |
const char kDataTruncated[] = |
60 |
const signed char kDataTruncated[] = |
61 |
{ |
61 |
{ |
62 |
'.', 's', 'n', 'd', |
62 |
'.', 's', 'n', 'd', |
63 |
0, 0, 0, 24, // offset of 24 bytes |
63 |
0, 0, 0, 24, // offset of 24 bytes |
64 |
0, 0, 0, 20, // length of 20 bytes |
64 |
0, 0, 0, 20, // length of 20 bytes |
65 |
0, 0, 0, 3, // 16-bit linear |
65 |
0, 0, 0, 3, // 16-bit linear |
66 |
0, 0, 172, 68, // 44100 Hz |
66 |
0, 0, -84, 68, // 44100 Hz (0xAC44) |
67 |
0, 0, 0, 1, // 1 channel |
67 |
0, 0, 0, 1, // 1 channel |
68 |
0, 1, |
68 |
0, 1, |
69 |
0, 1, |
69 |
0, 1, |
Lines 152-164
TEST(NeXT, Truncated)
Link Here
|
152 |
ASSERT_EQ(::unlink(testFileName.c_str()), 0); |
152 |
ASSERT_EQ(::unlink(testFileName.c_str()), 0); |
153 |
} |
153 |
} |
154 |
|
154 |
|
155 |
const char kDataZeroChannels[] = |
155 |
const signed char kDataZeroChannels[] = |
156 |
{ |
156 |
{ |
157 |
'.', 's', 'n', 'd', |
157 |
'.', 's', 'n', 'd', |
158 |
0, 0, 0, 24, // offset of 24 bytes |
158 |
0, 0, 0, 24, // offset of 24 bytes |
159 |
0, 0, 0, 2, // 2 bytes |
159 |
0, 0, 0, 2, // 2 bytes |
160 |
0, 0, 0, 3, // 16-bit linear |
160 |
0, 0, 0, 3, // 16-bit linear |
161 |
0, 0, 172, 68, // 44100 Hz |
161 |
0, 0, -84, 68, // 44100 Hz (0xAC44) |
162 |
0, 0, 0, 0, // 0 channels |
162 |
0, 0, 0, 0, // 0 channels |
163 |
0, 1 |
163 |
0, 1 |
164 |
}; |
164 |
}; |