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