• Home
  • Raw
  • Download

Lines Matching +full:clang +full:- +full:format

4  *  Use of this source code is governed by a BSD-style license
40 const size_t bytes_remaining = size_ - pos_; in Read()
59 const size_t bytes_remaining = size_ - pos_; in SeekForward()
104 WavFormat format = WavFormat::kWavFormatPcm; in TEST() local
115 // clang-format off in TEST()
116 // clang formatting doesn't respect inline comments. in TEST()
118 0xbd, 0xd0, 0x5b, 0x07, // size of whole file - 8: 123457689 + 44 - 8 in TEST()
121 16, 0, 0, 0, // size of fmt block - 8: 24 - 8 in TEST()
122 1, 0, // format: PCM (1) in TEST()
130 // clang-format on in TEST()
134 EXPECT_FALSE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
140 // clang-format off in TEST()
141 // clang formatting doesn't respect inline comments. in TEST()
143 0xbd, 0xd0, 0x5b, 0x07, // size of whole file - 8: 123457689 + 44 - 8 in TEST()
146 16, 0, 0, 0, // size of fmt block - 8: 24 - 8 in TEST()
147 1, 0, // format: PCM (1) in TEST()
155 // clang-format on in TEST()
159 EXPECT_FALSE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
165 // clang-format off in TEST()
166 // clang formatting doesn't respect inline comments. in TEST()
168 0xbd, 0xd0, 0x5b, 0x07, // size of whole file - 8: 123457689 + 44 - 8 in TEST()
171 16, 0, 0, 0, // size of fmt block - 8: 24 - 8 in TEST()
172 1, 0, // format: PCM (1) in TEST()
180 // clang-format on in TEST()
184 EXPECT_FALSE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
190 // clang-format off in TEST()
191 // clang formatting doesn't respect inline comments. in TEST()
193 0xbd, 0xd0, 0x5b, 0x07, // size of whole file - 8: 123457689 + 44 - 8 in TEST()
197 1, 0, // format: PCM (1) in TEST()
206 // clang-format on in TEST()
210 EXPECT_FALSE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
216 // clang-format off in TEST()
217 // clang formatting doesn't respect inline comments. in TEST()
219 0xbd, 0xd0, 0x5b, 0x07, // size of whole file - 8: 123457689 + 44 - 8 in TEST()
222 18, 0, 0, 0, // size of fmt block - 8: 24 - 8 in TEST()
223 1, 0, // format: PCM (1) in TEST()
229 1, 0, // non-zero extension field *BAD* in TEST()
232 // clang-format on in TEST()
237 EXPECT_FALSE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
243 // clang-format off in TEST()
244 // clang formatting doesn't respect inline comments. in TEST()
246 0xbd, 0xd0, 0x5b, 0x07, // size of whole file - 8: 123457689 + 44 - 8 in TEST()
249 16, 0, 0, 0, // size of fmt block - 8: 24 - 8 in TEST()
250 1, 0, // format: PCM (1) in TEST()
256 // clang-format on in TEST()
260 EXPECT_FALSE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
266 // clang-format off in TEST()
267 // clang formatting doesn't respect inline comments. in TEST()
269 0xbd, 0xd0, 0x5b, 0x07, // size of whole file - 8: 123457689 + 44 - 8 in TEST()
271 // clang-format on in TEST()
276 EXPECT_FALSE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
291 // clang-format off in TEST()
292 // clang formatting doesn't respect inline comments. in TEST()
295 0x56, 0xa1, 0xb7, 0x0e, // size of whole file - 8: 123457689 + 44 - 8 in TEST()
298 16, 0, 0, 0, // size of fmt block - 8: 24 - 8 in TEST()
299 1, 0, // format: PCM (1) in TEST()
308 // clang-format on in TEST()
315 WavFormat format = WavFormat::kWavFormatPcm; in TEST() local
319 WavHeaderBufferReader r(buf + 4, sizeof(buf) - 8, in TEST()
321 EXPECT_TRUE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
325 EXPECT_EQ(WavFormat::kWavFormatPcm, format); in TEST()
333 // clang-format off in TEST()
334 // clang formatting doesn't respect inline comments. in TEST()
336 0xbf, 0xd0, 0x5b, 0x07, // Size of whole file - 8 + extra 2 bytes of zero in TEST()
337 // extension: 123457689 + 44 - 8 + 2 (atypical). in TEST()
342 1, 0, // Format: PCM (1). in TEST()
351 // clang-format on in TEST()
356 WavFormat format = WavFormat::kWavFormatPcm; in TEST() local
361 EXPECT_TRUE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
365 EXPECT_EQ(WavFormat::kWavFormatPcm, format); in TEST()
374 // clang-format off in TEST()
375 // clang formatting doesn't respect inline comments. in TEST()
377 0xcd, 0xd0, 0x5b, 0x07, // Size of whole file - 8 + an extra 16 bytes of in TEST()
379 // 123457689 + 44 - 8 + 16. in TEST()
383 1, 0, // Format: PCM (1). in TEST()
394 // clang-format on in TEST()
399 WavFormat format = WavFormat::kWavFormatPcm; in TEST() local
404 EXPECT_TRUE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()
408 EXPECT_EQ(WavFormat::kWavFormatPcm, format); in TEST()
414 // format one and make sure it's not parsed.
417 // clang-format off in TEST()
418 // clang formatting doesn't respect inline comments. in TEST()
420 52, 0, 0, 0, // Size of whole file - 8: 16 + 44 - 8. in TEST()
427 1, 0, // Format: Pcm (1). in TEST()
433 // clang-format on in TEST()
438 WavFormat format = WavFormat::kWavFormatPcm; in TEST() local
443 EXPECT_FALSE(ReadWavHeader(&r, &num_channels, &sample_rate, &format, in TEST()