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

Side by Side Diff: content/renderer/media/crypto/key_systems_unittest.cc

Issue 23205006: Define proprietary_codecs=1 when branding==Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto lkgr Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include <vector> 6 #include <vector>
7 7
8 #include "content/renderer/media/crypto/key_systems.h" 8 #include "content/renderer/media/crypto/key_systems.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/WebKit/public/platform/WebString.h" 10 #include "third_party/WebKit/public/platform/WebString.h"
11 11
12 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. 12 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
13 13
14 #if defined(WIDEVINE_CDM_AVAILABLE) && \ 14 #if defined(WIDEVINE_CDM_AVAILABLE) && \
15 defined(OS_LINUX) && !defined(OS_CHROMEOS) 15 defined(OS_LINUX) && !defined(OS_CHROMEOS)
16 #include <gnu/libc-version.h> 16 #include <gnu/libc-version.h>
17 #endif 17 #endif
18 18
19 using WebKit::WebString; 19 using WebKit::WebString;
20 20
21 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 21 #if defined(USE_PROPRIETARY_CODECS)
22 #define EXPECT_PROPRIETARY EXPECT_TRUE 22 #define EXPECT_PROPRIETARY EXPECT_TRUE
23 #else 23 #else
24 #define EXPECT_PROPRIETARY EXPECT_FALSE 24 #define EXPECT_PROPRIETARY EXPECT_FALSE
25 #endif 25 #endif
26 26
27 #if defined(WIDEVINE_CDM_AVAILABLE) 27 #if defined(WIDEVINE_CDM_AVAILABLE)
28 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 28 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
29 // TODO(ddorwin): Remove after bots switch to Precise. 29 // TODO(ddorwin): Remove after bots switch to Precise.
30 #define EXPECT_WV(a) \ 30 #define EXPECT_WV(a) \
31 EXPECT_EQ((std::string(gnu_get_libc_version()) != "2.11.1"), (a)) 31 EXPECT_EQ((std::string(gnu_get_libc_version()) != "2.11.1"), (a))
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 } 762 }
763 763
764 TEST_F(KeySystemsTest, GetUUID_Unrecognized) { 764 TEST_F(KeySystemsTest, GetUUID_Unrecognized) {
765 EXPECT_TRUE(GetUUID(kWidevine).empty()); 765 EXPECT_TRUE(GetUUID(kWidevine).empty());
766 EXPECT_TRUE(GetUUID(kClearKey).empty()); 766 EXPECT_TRUE(GetUUID(kClearKey).empty());
767 EXPECT_TRUE(GetUUID("").empty()); 767 EXPECT_TRUE(GetUUID("").empty());
768 } 768 }
769 #endif // defined(OS_ANDROID) 769 #endif // defined(OS_ANDROID)
770 770
771 } // namespace content 771 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/key_systems_info.cc ('k') | media/base/media_file_checker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698