Modify Android mediadrm and mediacrypto glue layer to use HIDL interface. Test: Play Movies (streaming and offline playback) Test: ANDROID_BUILD_TOP= ./android-gts/tools/gts-tradefed run gts -m GtsMediaTestCases Test: adb shell /system/bin/libwvdrmengine_hidl_test Test: adb shell /system/bin/libwvdrmmediacrypto_hidl_test Test: adb shell /system/bin/libwvdrmdrmplugin_hidl_test bug: 34628973 Change-Id: Icd5f2dd556acb9874697963b4d7d62cb7c943e74
37 lines
783 B
C++
37 lines
783 B
C++
//
|
|
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
|
|
#include "gtest/gtest.h"
|
|
#include "WVCreatePluginFactories.h"
|
|
|
|
namespace wvdrm {
|
|
namespace hardware {
|
|
namespace drm {
|
|
namespace V1_0 {
|
|
namespace widevine {
|
|
|
|
using ::android::sp;
|
|
|
|
using namespace android;
|
|
|
|
TEST(CreatePluginFactoriesTest, CreatesDrmFactory) {
|
|
sp<IDrmFactory> factory(createDrmFactory());
|
|
|
|
EXPECT_NE((IDrmFactory*)NULL, factory.get()) <<
|
|
"createDrmFactory() returned null";
|
|
}
|
|
|
|
TEST(CreatePluginFactoriesTest, CreatesCryptoFactory) {
|
|
sp<ICryptoFactory> factory(createCryptoFactory());
|
|
|
|
EXPECT_NE((ICryptoFactory*)NULL, factory.get()) <<
|
|
"createCryptoFactory() returned null";
|
|
}
|
|
|
|
} // namespace widevine
|
|
} // namespace V1_0
|
|
} // namespace drm
|
|
} // namespace hardware
|
|
} // namespace wvdrm
|