Fix examples and tests

This commit is contained in:
jfmcarreira committed 2021-09-30 00:06:57 +01:00
1 parent 612f147639
commit 448b64a8e3
12 files changed
+55 -77

No files matched your search

+6 -8
View File
@@ -38,7 +38,7 @@ protected:
{
ClpString moduleName = CALYP_TEST_MODULE_NAME;
pcStream = new CalypStream;
pcStream = std::make_unique<CalypStream>();
pcStream->open( ClpString( CALYP_TEST_DATA_DIR ) + ClpString( "/BasketballDrill_F10_832x480_yuv420p.yuv" ), 832, 480, 0, 8,
CLP_BIG_ENDIAN, 1, true );
}
@@ -48,9 +48,7 @@ protected:
// Can be omitted if not needed.
static void TearDownTestCase()
{
pcStream->close();
delete pcStream;
pcStream = NULL;
pcStream = nullptr;
}
// Called before each test
@@ -70,18 +68,18 @@ protected:
}
}
// Called after each test
void TearDown()
{
pcModule->Delete();
}
CalypModuleIf* pcModule;
std::unique_ptr<CalypModuleIf> pcModule;
// Some expensive resource shared by all tests.
static CalypStream* pcStream;
static std::unique_ptr<CalypStream> pcStream;
};
CalypStream* TestModuleCreate::pcStream = NULL;
std::unique_ptr<CalypStream> TestModuleCreate::pcStream{ nullptr };
TEST_F( TestModuleCreate, FIND_MODULE )
{