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/public/common/content_client.h" | 8 #include "content/public/common/content_client.h" |
9 #include "content/public/renderer/content_renderer_client.h" | 9 #include "content/public/renderer/content_renderer_client.h" |
10 #include "content/public/renderer/key_system_info.h" | 10 #include "content/public/renderer/key_system_info.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #define EXPECT_DEBUG_DEATH_PORTABLE(statement, regex) \ | 26 #define EXPECT_DEBUG_DEATH_PORTABLE(statement, regex) \ |
27 do { statement; } while (false) | 27 do { statement; } while (false) |
28 #else | 28 #else |
29 #include "base/logging.h" | 29 #include "base/logging.h" |
30 #define EXPECT_DEBUG_DEATH_PORTABLE(statement, regex) \ | 30 #define EXPECT_DEBUG_DEATH_PORTABLE(statement, regex) \ |
31 LOG(WARNING) << "Death tests are not supported on this platform.\n" \ | 31 LOG(WARNING) << "Death tests are not supported on this platform.\n" \ |
32 << "Statement '" #statement "' cannot be verified."; | 32 << "Statement '" #statement "' cannot be verified."; |
33 #endif // defined(NDEBUG) | 33 #endif // defined(NDEBUG) |
34 #endif // defined(GTEST_HAS_DEATH_TEST) && !defined(OS_ANDROID) | 34 #endif // defined(GTEST_HAS_DEATH_TEST) && !defined(OS_ANDROID) |
35 | 35 |
36 using WebKit::WebString; | 36 using blink::WebString; |
37 | 37 |
38 // These are the (fake) key systems that are registered for these tests. | 38 // These are the (fake) key systems that are registered for these tests. |
39 // kUsesAes uses the AesDecryptor like Clear Key. | 39 // kUsesAes uses the AesDecryptor like Clear Key. |
40 // kExternal uses an external CDM, such as Pepper-based or Android platform CDM. | 40 // kExternal uses an external CDM, such as Pepper-based or Android platform CDM. |
41 static const char kUsesAes[] = "org.example.clear"; | 41 static const char kUsesAes[] = "org.example.clear"; |
42 static const char kUsesAesParent[] = "org.example"; // Not registered. | 42 static const char kUsesAesParent[] = "org.example"; // Not registered. |
43 static const char kExternal[] = "com.example.test"; | 43 static const char kExternal[] = "com.example.test"; |
44 static const char kExternalParent[] = "com.example"; | 44 static const char kExternalParent[] = "com.example"; |
45 | 45 |
46 static const char kPrefixedClearKey[] = "webkit-org.w3.clearkey"; | 46 static const char kPrefixedClearKey[] = "webkit-org.w3.clearkey"; |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 #if defined(WIDEVINE_CDM_AVAILABLE) | 608 #if defined(WIDEVINE_CDM_AVAILABLE) |
609 const char* const kTestWidevineUmaName = "Widevine"; | 609 const char* const kTestWidevineUmaName = "Widevine"; |
610 #else | 610 #else |
611 const char* const kTestWidevineUmaName = "Unknown"; | 611 const char* const kTestWidevineUmaName = "Unknown"; |
612 #endif | 612 #endif |
613 EXPECT_EQ(kTestWidevineUmaName, | 613 EXPECT_EQ(kTestWidevineUmaName, |
614 KeySystemNameForUMAUTF8("com.widevine.alpha")); | 614 KeySystemNameForUMAUTF8("com.widevine.alpha")); |
615 } | 615 } |
616 | 616 |
617 } // namespace content | 617 } // namespace content |
OLD | NEW |