OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // This test generate synthetic data. For audio it's a sinusoid waveform with | 5 // This test generate synthetic data. For audio it's a sinusoid waveform with |
6 // frequency kSoundFrequency and different amplitudes. For video it's a pattern | 6 // frequency kSoundFrequency and different amplitudes. For video it's a pattern |
7 // that is shifting by one pixel per frame, each pixels neighbors right and down | 7 // that is shifting by one pixel per frame, each pixels neighbors right and down |
8 // is this pixels value +1, since the pixel value is 8 bit it will wrap | 8 // is this pixels value +1, since the pixel value is 8 bit it will wrap |
9 // frequently within the image. Visually this will create diagonally color bands | 9 // frequently within the image. Visually this will create diagonally color bands |
10 // that moves across the screen | 10 // that moves across the screen |
11 | 11 |
12 #include <math.h> | 12 #include <math.h> |
| 13 #include <stddef.h> |
13 #include <stdint.h> | 14 #include <stdint.h> |
14 | 15 |
15 #include <functional> | 16 #include <functional> |
16 #include <list> | 17 #include <list> |
17 #include <map> | 18 #include <map> |
18 | 19 |
19 #include "base/bind.h" | 20 #include "base/bind.h" |
20 #include "base/bind_helpers.h" | 21 #include "base/bind_helpers.h" |
21 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
22 #include "base/sys_byteorder.h" | 23 #include "base/sys_byteorder.h" |
(...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 EXPECT_LT(jump, 220u); | 1444 EXPECT_LT(jump, 220u); |
1444 } | 1445 } |
1445 | 1446 |
1446 // TODO(pwestin): Add repeatable packet loss test. | 1447 // TODO(pwestin): Add repeatable packet loss test. |
1447 // TODO(pwestin): Add test for misaligned send get calls. | 1448 // TODO(pwestin): Add test for misaligned send get calls. |
1448 // TODO(pwestin): Add more tests that does not resample. | 1449 // TODO(pwestin): Add more tests that does not resample. |
1449 // TODO(pwestin): Add test when we have starvation for our RunTask. | 1450 // TODO(pwestin): Add test when we have starvation for our RunTask. |
1450 | 1451 |
1451 } // namespace cast | 1452 } // namespace cast |
1452 } // namespace media | 1453 } // namespace media |
OLD | NEW |