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

Side by Side Diff: media/formats/mp4/dolby_vision_unittest.cc

Issue 2640113004: Introduce Dolby Vision video codec and Demuxer support (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
wolenetz 2017/01/25 23:42:42 s/2016/2017/ here and elsewhere in totally new sou
wolenetz 2017/01/25 23:42:42 These test cases test for unsupported (and not eve
erickung1 2017/02/03 18:18:32 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/formats/mp4/dolby_vision.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 namespace media {
10 namespace mp4 {
11
12 class DolbyVisionConfigurationTest : public testing::Test {};
13
14 TEST_F(DolbyVisionConfigurationTest, Profile5Test) {
15 DolbyVisionConfiguration dv_config;
16 uint8_t data[] = {0x00, 0x00, 0x0A, 0x05};
17
18 dv_config.Parse(data, sizeof(data));
19
20 EXPECT_EQ(dv_config.codec_profile, DOLBYVISION_PROFILE5);
21 }
22
23 TEST_F(DolbyVisionConfigurationTest, Profile6WithBLTest) {
24 DolbyVisionConfiguration dv_config;
25 uint8_t data[] = {0x00, 0x00, 0x0C, 0x07};
26
27 dv_config.Parse(data, sizeof(data));
28
29 EXPECT_EQ(dv_config.codec_profile, DOLBYVISION_PROFILE6);
30 }
31
32 TEST_F(DolbyVisionConfigurationTest, Profile3Test) {
33 DolbyVisionConfiguration dv_config;
34 uint8_t data[] = {0x00, 0x00, 0x06, 0x07};
35
36 dv_config.Parse(data, sizeof(data));
37
38 EXPECT_EQ(dv_config.codec_profile, DOLBYVISION_PROFILE3);
39 }
40
41 } // namespace mp4
42 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698