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

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

Issue 2580093002: Revert of Convert USE_PROPRIETARY_CODECS to a buildflag header. (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
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 "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/browser/media/media_browsertest.h" 10 #include "content/browser/media/media_browsertest.h"
11 #include "content/public/test/browser_test_utils.h" 11 #include "content/public/test/browser_test_utils.h"
12 #include "content/public/test/content_browser_test_utils.h" 12 #include "content/public/test/content_browser_test_utils.h"
13 #include "content/shell/browser/shell.h" 13 #include "content/shell/browser/shell.h"
14 #include "media/base/media_switches.h" 14 #include "media/base/media_switches.h"
15 #include "media/media_features.h" 15 #include "media/media_features.h"
16 16
17 #if defined(OS_ANDROID) 17 #if defined(OS_ANDROID)
18 #include "base/android/build_info.h" 18 #include "base/android/build_info.h"
19 #endif 19 #endif
20 20
21 const char kProbably[] = "probably"; 21 const char kProbably[] = "probably";
22 const char kMaybe[] = "maybe"; 22 const char kMaybe[] = "maybe";
23 const char kNot[] = ""; 23 const char kNot[] = "";
24 24
25 #if BUILDFLAG(USE_PROPRIETARY_CODECS) 25 #if defined(USE_PROPRIETARY_CODECS)
26 const char* kPropProbably = kProbably; 26 const char* kPropProbably = kProbably;
27 const char* kPropMaybe = kMaybe; 27 const char* kPropMaybe = kMaybe;
28 #else 28 #else
29 const char* kPropProbably = kNot; 29 const char* kPropProbably = kNot;
30 const char* kPropMaybe = kNot; 30 const char* kPropMaybe = kNot;
31 #endif // USE_PROPRIETARY_CODECS 31 #endif // USE_PROPRIETARY_CODECS
32 32
33 #if !defined(OS_ANDROID) 33 #if !defined(OS_ANDROID)
34 const char* kOggVideoProbably = kProbably; 34 const char* kOggVideoProbably = kProbably;
35 const char* kOggVideoMaybe = kMaybe; 35 const char* kOggVideoMaybe = kMaybe;
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 CanPlay("'video/mp4; codecs=\"vp09.02.01.08.02.01.01.00\"'")); 1686 CanPlay("'video/mp4; codecs=\"vp09.02.01.08.02.01.01.00\"'"));
1687 EXPECT_EQ(mp4_vp9_maybe, 1687 EXPECT_EQ(mp4_vp9_maybe,
1688 CanPlay("'video/mp4; codecs=\"vp09.03.01.08.02.01.01.00\"'")); 1688 CanPlay("'video/mp4; codecs=\"vp09.03.01.08.02.01.01.00\"'"));
1689 } 1689 }
1690 1690
1691 INSTANTIATE_TEST_CASE_P(EnableDisableMp4Vp9Demuxing, 1691 INSTANTIATE_TEST_CASE_P(EnableDisableMp4Vp9Demuxing,
1692 MediaCanPlayTypeTestMp4Vp9Demuxing, 1692 MediaCanPlayTypeTestMp4Vp9Demuxing,
1693 ::testing::Bool()); 1693 ::testing::Bool());
1694 1694
1695 } // namespace content 1695 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/media_browsertest.cc ('k') | content/browser/media/media_color_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698