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

Unified Diff: content/renderer/media/crypto/key_systems_unittest.cc

Issue 665343002: Move KeySystemInfo to media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/crypto/key_systems.cc ('k') | media/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/crypto/key_systems_unittest.cc
diff --git a/content/renderer/media/crypto/key_systems_unittest.cc b/content/renderer/media/crypto/key_systems_unittest.cc
index 7b877ee25f53b9d133711efdd46c6ed455fc7dd1..742dc00035936fb0b0ba076e672574edc25335a8 100644
--- a/content/renderer/media/crypto/key_systems_unittest.cc
+++ b/content/renderer/media/crypto/key_systems_unittest.cc
@@ -6,11 +6,11 @@
#include <vector>
#include "content/public/common/content_client.h"
-#include "content/public/common/eme_constants.h"
#include "content/public/renderer/content_renderer_client.h"
-#include "content/public/renderer/key_system_info.h"
#include "content/renderer/media/crypto/key_systems.h"
#include "content/test/test_content_client.h"
+#include "media/base/eme_constants.h"
+#include "media/base/key_system_info.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -37,6 +37,7 @@
namespace content {
using blink::WebString;
+using media::KeySystemInfo;
// These are the (fake) key systems that are registered for these tests.
// kUsesAes uses the AesDecryptor like Clear Key.
@@ -65,8 +66,9 @@ enum TestCodec {
TEST_CODEC_FOO_ALL = TEST_CODEC_FOO_AUDIO_ALL | TEST_CODEC_FOO_VIDEO_ALL
};
-COMPILE_ASSERT((TEST_CODEC_FOO_ALL & EME_CODEC_ALL) == EME_CODEC_NONE,
- test_codec_masks_should_only_use_invalid_codec_masks);
+COMPILE_ASSERT((TEST_CODEC_FOO_ALL & media::EME_CODEC_ALL) ==
+ media::EME_CODEC_NONE,
+ test_codec_masks_should_only_use_invalid_codec_masks);
// Adds test container and codec masks.
// This function must be called after SetContentClient() is called.
@@ -92,22 +94,22 @@ static void AddContainerAndCodecMasksForTest() {
}
class TestContentRendererClient : public ContentRendererClient {
- void AddKeySystems(std::vector<content::KeySystemInfo>* key_systems) override;
+ void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems) override;
};
void TestContentRendererClient::AddKeySystems(
- std::vector<content::KeySystemInfo>* key_systems) {
+ std::vector<media::KeySystemInfo>* key_systems) {
KeySystemInfo aes(kUsesAes);
- aes.supported_codecs = EME_CODEC_WEBM_ALL;
+ aes.supported_codecs = media::EME_CODEC_WEBM_ALL;
aes.supported_codecs |= TEST_CODEC_FOO_ALL;
- aes.supported_init_data_types = EME_INIT_DATA_TYPE_WEBM;
+ aes.supported_init_data_types = media::EME_INIT_DATA_TYPE_WEBM;
aes.use_aes_decryptor = true;
key_systems->push_back(aes);
KeySystemInfo ext(kExternal);
- ext.supported_codecs = EME_CODEC_WEBM_ALL;
+ ext.supported_codecs = media::EME_CODEC_WEBM_ALL;
ext.supported_codecs |= TEST_CODEC_FOO_ALL;
- ext.supported_init_data_types = EME_INIT_DATA_TYPE_WEBM;
+ ext.supported_init_data_types = media::EME_INIT_DATA_TYPE_WEBM;
ext.parent_key_system = kExternalParent;
#if defined(ENABLE_PEPPER_CDMS)
ext.pepper_type = "application/x-ppapi-external-cdm";
« no previous file with comments | « content/renderer/media/crypto/key_systems.cc ('k') | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698