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

Side by Side Diff: content/browser/media/media_canplaytype_browsertest.cc

Issue 2847533002: Update mp4 vp9 test files to follow v1.0 spec (Closed)
Patch Set: Address build breaks on some configs Created 3 years, 7 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <string> 5 #include <string>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 EXPECT_EQ(kNot, CanPlay(mime_prefix + "codecs=\"vp09.00.-1.08\"'")); 1521 EXPECT_EQ(kNot, CanPlay(mime_prefix + "codecs=\"vp09.00.-1.08\"'"));
1522 1522
1523 const char* new_vp9_probably = params.prop_probably; 1523 const char* new_vp9_probably = params.prop_probably;
1524 const char* new_vp9_maybe = params.prop_maybe; 1524 const char* new_vp9_maybe = params.prop_maybe;
1525 1525
1526 // Test a few valid strings. 1526 // Test a few valid strings.
1527 EXPECT_EQ(new_vp9_probably, 1527 EXPECT_EQ(new_vp9_probably,
1528 CanPlay(mime_prefix + "codecs=\"vp09.00.10.08\"'")); 1528 CanPlay(mime_prefix + "codecs=\"vp09.00.10.08\"'"));
1529 EXPECT_EQ(new_vp9_probably, 1529 EXPECT_EQ(new_vp9_probably,
1530 CanPlay(mime_prefix + "codecs=\"vp09.00.10.08.00.01.01.01.00\"'")); 1530 CanPlay(mime_prefix + "codecs=\"vp09.00.10.08.00.01.01.01.00\"'"));
1531 EXPECT_EQ(new_vp9_probably,
1532 CanPlay(mime_prefix + "codecs=\"vp09.00.10.08.01.02.02.02.00\"'"));
1531 1533
1532 // Platform support is sadly ambiguous for profiles > 0. 1534 // Platform support is sadly ambiguous for profiles > 0.
1533 // TODO(chcunningham): Plumb proper querying of platform support - give a firm 1535 // TODO(chcunningham): Plumb proper querying of platform support - give a firm
1534 // answer. 1536 // answer.
1535 EXPECT_EQ(new_vp9_maybe, CanPlay(mime_prefix + "codecs=\"vp09.01.10.08\"'")); 1537 EXPECT_EQ(new_vp9_maybe, CanPlay(mime_prefix + "codecs=\"vp09.01.10.08\"'"));
1536 EXPECT_EQ(new_vp9_maybe, CanPlay(mime_prefix + "codecs=\"vp09.02.10.08\"'")); 1538 EXPECT_EQ(new_vp9_maybe, CanPlay(mime_prefix + "codecs=\"vp09.02.10.08\"'"));
1537 EXPECT_EQ(new_vp9_maybe, CanPlay(mime_prefix + "codecs=\"vp09.03.10.08\"'")); 1539 EXPECT_EQ(new_vp9_maybe, CanPlay(mime_prefix + "codecs=\"vp09.03.10.08\"'"));
1538 } 1540 }
1539 1541
1540 const CanPlayTypeNewVp9Params kNewVp9ParamVariants[] = { 1542 const CanPlayTypeNewVp9Params kNewVp9ParamVariants[] = {
(...skipping 10 matching lines...) Expand all
1551 {switches::kEnableNewVp9CodecString, "video/mp4", kNot, kNot}, 1553 {switches::kEnableNewVp9CodecString, "video/mp4", kNot, kNot},
1552 {switches::kEnableHDR, "video/webm", kProbably, kMaybe}, 1554 {switches::kEnableHDR, "video/webm", kProbably, kMaybe},
1553 {switches::kEnableNewVp9CodecString, "video/webm", kProbably, kMaybe}, 1555 {switches::kEnableNewVp9CodecString, "video/webm", kProbably, kMaybe},
1554 }; 1556 };
1555 1557
1556 INSTANTIATE_TEST_CASE_P(CodecSupportTest_NewVp9String, 1558 INSTANTIATE_TEST_CASE_P(CodecSupportTest_NewVp9String,
1557 MediaCanPlayNewVp9TypeTest, 1559 MediaCanPlayNewVp9TypeTest,
1558 ::testing::ValuesIn(kNewVp9ParamVariants)); 1560 ::testing::ValuesIn(kNewVp9ParamVariants));
1559 1561
1560 } // namespace content 1562 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/media/encrypted_media_supported_types_browsertest.cc ('k') | media/test/data/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698