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

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

Issue 219723003: Remove all uses of GG_UINT32_C. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/test/encode_decode_test.cc ('k') | media/cast/transport/cast_transport_defines.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 <stdint.h>
13 14
14 #include <functional> 15 #include <functional>
15 #include <list> 16 #include <list>
16 #include <map> 17 #include <map>
17 18
18 #include "base/bind.h" 19 #include "base/bind.h"
19 #include "base/bind_helpers.h" 20 #include "base/bind_helpers.h"
20 #include "base/stl_util.h" 21 #include "base/stl_util.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 14 matching lines...) Expand all
37 #include "media/cast/transport/cast_transport_defines.h" 38 #include "media/cast/transport/cast_transport_defines.h"
38 #include "media/cast/transport/cast_transport_sender.h" 39 #include "media/cast/transport/cast_transport_sender.h"
39 #include "media/cast/transport/cast_transport_sender_impl.h" 40 #include "media/cast/transport/cast_transport_sender_impl.h"
40 #include "testing/gtest/include/gtest/gtest.h" 41 #include "testing/gtest/include/gtest/gtest.h"
41 42
42 namespace media { 43 namespace media {
43 namespace cast { 44 namespace cast {
44 45
45 namespace { 46 namespace {
46 47
47 static const int64 kStartMillisecond = GG_INT64_C(1245); 48 static const int64 kStartMillisecond = INT64_C(1245);
48 static const int kAudioChannels = 2; 49 static const int kAudioChannels = 2;
49 static const double kSoundFrequency = 314.15926535897; // Freq of sine wave. 50 static const double kSoundFrequency = 314.15926535897; // Freq of sine wave.
50 static const float kSoundVolume = 0.5f; 51 static const float kSoundVolume = 0.5f;
51 static const int kVideoHdWidth = 1280; 52 static const int kVideoHdWidth = 1280;
52 static const int kVideoHdHeight = 720; 53 static const int kVideoHdHeight = 720;
53 static const int kVideoQcifWidth = 176; 54 static const int kVideoQcifWidth = 176;
54 static const int kVideoQcifHeight = 144; 55 static const int kVideoQcifHeight = 144;
55 static const int kCommonRtpHeaderLength = 12; 56 static const int kCommonRtpHeaderLength = 12;
56 static const uint8 kCastReferenceFrameIdBitReset = 0xDF; // Mask is 0x40. 57 static const uint8 kCastReferenceFrameIdBitReset = 0xDF; // Mask is 0x40.
57 58
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 EXPECT_EQ(total_event_count_for_frame, expected_event_count_for_frame); 1232 EXPECT_EQ(total_event_count_for_frame, expected_event_count_for_frame);
1232 } 1233 }
1233 1234
1234 // TODO(pwestin): Add repeatable packet loss test. 1235 // TODO(pwestin): Add repeatable packet loss test.
1235 // TODO(pwestin): Add test for misaligned send get calls. 1236 // TODO(pwestin): Add test for misaligned send get calls.
1236 // TODO(pwestin): Add more tests that does not resample. 1237 // TODO(pwestin): Add more tests that does not resample.
1237 // TODO(pwestin): Add test when we have starvation for our RunTask. 1238 // TODO(pwestin): Add test when we have starvation for our RunTask.
1238 1239
1239 } // namespace cast 1240 } // namespace cast
1240 } // namespace media 1241 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/test/encode_decode_test.cc ('k') | media/cast/transport/cast_transport_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698