00001 00008 #ifndef ORG_PROGGEN_DEDUPE_TEST_TESTDATAHOLDING_H 00009 #define ORG_PROGGEN_DEDUPE_TEST_TESTDATAHOLDING_H 00010 00011 #include <boost/test/unit_test.hpp> 00012 00013 #include <dataholding.h> 00014 #include <fileinfo/fileinfo.h> 00015 #include "testenvironment.h" 00016 00017 namespace Dedupe 00018 { 00022 namespace Test 00023 { 00024 struct TDataholdingFixture 00025 { 00026 TDataholdingFixture() : Dbs( "Testdatabase.db" ), 00027 Env( "DataholdingTest" ), 00028 TestFile( Env.CreateFile( "", Env.CreateRandomFilename(), 00029 Env.CreateRandomInt( 200, 5555))) 00030 {} 00031 00032 virtual ~TDataholdingFixture() 00033 { 00034 Env.DeleteCreated(); 00035 } 00036 00037 Dedupe::Dataholding::Dataholding Dbs; 00038 Dedupe::Test::TestEnvironment Env; 00039 Dedupe::FilePath TestFile; 00040 }; 00041 } 00042 } 00043 #endif