Skip to content
Snippets Groups Projects
Commit 922f4e59 authored by Merov Linden's avatar Merov Linden
Browse files

STORM-744 : Turn llimage/tests/ on again

parent 71fa0894
Branches
Tags
No related merge requests found
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
project(llimage) project(llimage)
include(00-Common) include(00-Common)
include(LLAddBuildTest)
include(LLCommon) include(LLCommon)
include(LLImage) include(LLImage)
include(LLMath) include(LLMath)
include(LLVFS) include(LLVFS)
include(ZLIB) include(ZLIB)
include(LLAddBuildTest)
include(Tut)
include_directories( include_directories(
${LLCOMMON_INCLUDE_DIRS} ${LLCOMMON_INCLUDE_DIRS}
...@@ -63,4 +64,12 @@ target_link_libraries(llimage ...@@ -63,4 +64,12 @@ target_link_libraries(llimage
) )
# Add tests # Add tests
#ADD_BUILD_TEST(llimageworker llimage) if (LL_TESTS)
SET(llimage_TEST_SOURCE_FILES
llimageworker.cpp
)
LL_ADD_PROJECT_UNIT_TESTS(llimage "${llimage_TEST_SOURCE_FILES}")
endif (LL_TESTS)
...@@ -26,9 +26,7 @@ ...@@ -26,9 +26,7 @@
*/ */
// Precompiled header: almost always required for newview cpp files // Precompiled header: almost always required for newview cpp files
#include <list> #include "linden_common.h"
#include <map>
#include <algorithm>
// Class to test // Class to test
#include "../llimageworker.h" #include "../llimageworker.h"
// For timer class // For timer class
...@@ -44,7 +42,17 @@ ...@@ -44,7 +42,17 @@
// * Do not make any assumption as to how those classes or methods work (i.e. don't copy/paste code) // * Do not make any assumption as to how those classes or methods work (i.e. don't copy/paste code)
// * A simulator for a class can be implemented here. Please comment and document thoroughly. // * A simulator for a class can be implemented here. Please comment and document thoroughly.
LLImageBase::LLImageBase() {} LLImageBase::LLImageBase()
: mData(NULL),
mDataSize(0),
mWidth(0),
mHeight(0),
mComponents(0),
mBadBufferAllocation(false),
mAllowOverSize(false),
mMemType(LLMemType::MTYPE_IMAGEBASE)
{
}
LLImageBase::~LLImageBase() {} LLImageBase::~LLImageBase() {}
void LLImageBase::dump() { } void LLImageBase::dump() { }
void LLImageBase::sanityCheck() { } void LLImageBase::sanityCheck() { }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment