OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |