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

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

Issue 2552883003: media: Pare MCVD down to a minimal media::VideoDecoder (Closed)
Patch Set: Created 4 years 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/base/test_helpers.h ('k') | media/gpu/BUILD.gn » ('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 (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 #include "media/base/test_helpers.h" 5 #include "media/base/test_helpers.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 VideoDecoderConfig TestVideoConfig::Invalid() { 145 VideoDecoderConfig TestVideoConfig::Invalid() {
146 return GetTestConfig(kUnknownVideoCodec, kNormalSize, false); 146 return GetTestConfig(kUnknownVideoCodec, kNormalSize, false);
147 } 147 }
148 148
149 // static 149 // static
150 VideoDecoderConfig TestVideoConfig::Normal() { 150 VideoDecoderConfig TestVideoConfig::Normal() {
151 return GetTestConfig(kCodecVP8, kNormalSize, false); 151 return GetTestConfig(kCodecVP8, kNormalSize, false);
152 } 152 }
153 153
154 // static 154 // static
155 VideoDecoderConfig TestVideoConfig::NormalH264() {
156 return GetTestConfig(kCodecH264, kNormalSize, false);
157 }
158
159 // static
155 VideoDecoderConfig TestVideoConfig::NormalEncrypted() { 160 VideoDecoderConfig TestVideoConfig::NormalEncrypted() {
156 return GetTestConfig(kCodecVP8, kNormalSize, true); 161 return GetTestConfig(kCodecVP8, kNormalSize, true);
157 } 162 }
158 163
159 // static 164 // static
160 VideoDecoderConfig TestVideoConfig::Large() { 165 VideoDecoderConfig TestVideoConfig::Large() {
161 return GetTestConfig(kCodecVP8, kLargeSize, false); 166 return GetTestConfig(kCodecVP8, kLargeSize, false);
162 } 167 }
163 168
164 // static 169 // static
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 int width = 0; 277 int width = 0;
273 int height = 0; 278 int height = 0;
274 bool success = pickle.ReadString(&header) && pickle.ReadInt(&width) && 279 bool success = pickle.ReadString(&header) && pickle.ReadInt(&width) &&
275 pickle.ReadInt(&height); 280 pickle.ReadInt(&height);
276 return (success && header == kFakeVideoBufferHeader && 281 return (success && header == kFakeVideoBufferHeader &&
277 width == config.coded_size().width() && 282 width == config.coded_size().width() &&
278 height == config.coded_size().height()); 283 height == config.coded_size().height());
279 } 284 }
280 285
281 } // namespace media 286 } // namespace media
OLDNEW
« no previous file with comments | « media/base/test_helpers.h ('k') | media/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698