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

Side by Side Diff: media/base/test_helpers.h

Issue 237353007: Refactor VideoRendererImpl to use VideoFrameScheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MEDIA_BASE_TEST_HELPERS_H_ 5 #ifndef MEDIA_BASE_TEST_HELPERS_H_
6 #define MEDIA_BASE_TEST_HELPERS_H_ 6 #define MEDIA_BASE_TEST_HELPERS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "media/base/channel_layout.h" 10 #include "media/base/channel_layout.h"
11 #include "media/base/pipeline_status.h" 11 #include "media/base/pipeline_status.h"
12 #include "media/base/sample_format.h" 12 #include "media/base/sample_format.h"
13 #include "media/base/video_decoder_config.h" 13 #include "media/base/video_decoder_config.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
16 16
17 namespace base { 17 namespace base {
18 class MessageLoop; 18 class MessageLoop;
19 class TimeDelta; 19 class TimeDelta;
20 class TimeTicks;
21
22 // Gtest pretty printers for commonly used types in media tests.
23 void PrintTo(const TimeDelta& time_delta, std::ostream* os);
24 void PrintTo(const TimeTicks& time_ticks, std::ostream* os);
20 } 25 }
21 26
22 namespace media { 27 namespace media {
23 28
24 class AudioBuffer; 29 class AudioBuffer;
25 class DecoderBuffer; 30 class DecoderBuffer;
26 31
27 // Return a callback that expects to be run once. 32 // Return a callback that expects to be run once.
28 base::Closure NewExpectedClosure(); 33 base::Closure NewExpectedClosure();
29 PipelineStatusCB NewExpectedStatusCB(PipelineStatus status); 34 PipelineStatusCB NewExpectedStatusCB(PipelineStatus status);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 base::TimeDelta timestamp, 135 base::TimeDelta timestamp,
131 base::TimeDelta duration); 136 base::TimeDelta duration);
132 137
133 // Verify if a fake video DecoderBuffer is valid. 138 // Verify if a fake video DecoderBuffer is valid.
134 bool VerifyFakeVideoBufferForTest(const scoped_refptr<DecoderBuffer>& buffer, 139 bool VerifyFakeVideoBufferForTest(const scoped_refptr<DecoderBuffer>& buffer,
135 const VideoDecoderConfig& config); 140 const VideoDecoderConfig& config);
136 141
137 } // namespace media 142 } // namespace media
138 143
139 #endif // MEDIA_BASE_TEST_HELPERS_H_ 144 #endif // MEDIA_BASE_TEST_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698