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

Side by Side Diff: media/cast/video_receiver/video_decoder_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
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 #include <stdint.h>
6
5 #include "base/bind.h" 7 #include "base/bind.h"
6 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
7 #include "base/test/simple_test_tick_clock.h" 9 #include "base/test/simple_test_tick_clock.h"
8 #include "base/time/tick_clock.h" 10 #include "base/time/tick_clock.h"
9 #include "media/cast/cast_config.h" 11 #include "media/cast/cast_config.h"
10 #include "media/cast/cast_defines.h" 12 #include "media/cast/cast_defines.h"
11 #include "media/cast/cast_environment.h" 13 #include "media/cast/cast_environment.h"
12 #include "media/cast/cast_receiver.h" 14 #include "media/cast/cast_receiver.h"
13 #include "media/cast/test/fake_single_thread_task_runner.h" 15 #include "media/cast/test/fake_single_thread_task_runner.h"
14 #include "media/cast/video_receiver/video_decoder.h" 16 #include "media/cast/video_receiver/video_decoder.h"
15 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
16 18
17 namespace media { 19 namespace media {
18 namespace cast { 20 namespace cast {
19 21
20 using testing::_; 22 using testing::_;
21 23
22 // Random frame size for testing. 24 // Random frame size for testing.
23 static const int64 kStartMillisecond = GG_INT64_C(1245); 25 static const int64 kStartMillisecond = INT64_C(1245);
24 26
25 namespace { 27 namespace {
26 class DecodeTestFrameCallback 28 class DecodeTestFrameCallback
27 : public base::RefCountedThreadSafe<DecodeTestFrameCallback> { 29 : public base::RefCountedThreadSafe<DecodeTestFrameCallback> {
28 public: 30 public:
29 DecodeTestFrameCallback() {} 31 DecodeTestFrameCallback() {}
30 32
31 void DecodeComplete(const scoped_refptr<media::VideoFrame>& decoded_frame, 33 void DecodeComplete(const scoped_refptr<media::VideoFrame>& decoded_frame,
32 const base::TimeTicks& render_time) {} 34 const base::TimeTicks& render_time) {}
33 35
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 &encoded_frame, 84 &encoded_frame,
83 render_time, 85 render_time,
84 base::Bind(&DecodeTestFrameCallback::DecodeComplete, test_callback_)), 86 base::Bind(&DecodeTestFrameCallback::DecodeComplete, test_callback_)),
85 "Empty frame"); 87 "Empty frame");
86 } 88 }
87 89
88 // TODO(pwestin): Test decoding a real frame. 90 // TODO(pwestin): Test decoding a real frame.
89 91
90 } // namespace cast 92 } // namespace cast
91 } // namespace media 93 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/video_receiver/video_decoder.cc ('k') | media/cast/video_receiver/video_receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698