Bug: 136119370 Test: GtsMediaTestCases MediaDrmTest#testRequiresSecureDecoder Change-Id: Iaaa7c225c0056904b5fd98c4557ec47f661b2c7d
39 lines
898 B
C++
39 lines
898 B
C++
//
|
|
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
//
|
|
|
|
#include "gtest/gtest.h"
|
|
#include "WVCreatePluginFactories.h"
|
|
|
|
namespace wvdrm {
|
|
namespace hardware {
|
|
namespace drm {
|
|
namespace V1_4 {
|
|
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_4
|
|
} // namespace drm
|
|
} // namespace hardware
|
|
} // namespace wvdrm
|