Fix UniquePtr Calls

This change corrects some problems with the unit tests and make files
for the libcleardrmengine.

Change-Id: Iafd8aae2ecae3885ad4bbfdf9257bce6f62f98dc
This commit is contained in:
Fred Gylys-Colwell
2012-12-21 10:47:41 -08:00
committed by Jeff Tinker
parent fede3bffdd
commit 8ab3b10971
5 changed files with 25 additions and 15 deletions

View File

@@ -7,8 +7,8 @@
#include "gtest/gtest.h"
TEST(CreateDrmPluginFactoryTest, CreatesObject) {
UniquePtr<android::DrmPluginFactory> factory = createDrmPluginFactory();
UniquePtr<android::DrmPluginFactory> factory(createDrmPluginFactory());
EXPECT_NE((android::DrmPluginFactory*)NULL, factory) <<
EXPECT_NE((android::DrmPluginFactory*)NULL, factory.get() ) <<
"createDrmPluginFactory() returned null";
}