Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: media/cast/test/end2end_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cast/test/cast_benchmarks.cc ('k') | media/cast/test/fake_media_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/cast/test/cast_benchmarks.cc ('k') | media/cast/test/fake_media_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698