The tests are using vendor only libs such as libcdm and libwvlevel3, thus marked as LOCAL_PROPRIETARY_MODULE to use the libs. In addition, the dependency to libmedia is changed to libmedia_omx since libmedia is not available to vendor modules. UniquePtr is replaced with std::unique_ptr since UniquePtr.h in /libnativehelper is not available to vendors (and will not be completely removed in a near future). Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j tests Change-Id: I4e9d3267b20c1d52f57664b89f15330e2ebd953d
25 lines
594 B
C++
25 lines
594 B
C++
//
|
|
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
|
|
#include "gtest/gtest.h"
|
|
#include "WVCreatePluginFactories.h"
|
|
|
|
#include <memory>
|
|
|
|
using namespace android;
|
|
|
|
TEST(CreatePluginFactoriesTest, CreatesDrmFactory) {
|
|
std::unique_ptr<DrmFactory> factory(createDrmFactory());
|
|
|
|
EXPECT_NE((DrmFactory*)NULL, factory.get()) <<
|
|
"createDrmFactory() returned null";
|
|
}
|
|
|
|
TEST(CreatePluginFactoriesTest, CreatesCryptoFactory) {
|
|
std::unique_ptr<CryptoFactory> factory(createCryptoFactory());
|
|
|
|
EXPECT_NE((CryptoFactory*)NULL, factory.get()) <<
|
|
"createCryptoFactory() returned null";
|
|
}
|