Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

BOOST_AUTO_TEST_CASE ( TableDataSourceImageDirTest   ) 

Definition at line 22 of file testTableDataSourceImageDir.h.

References Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetString(), Impala::Application::MediaTable::TableDataSource::GetTotalRows(), and IsValidTableDataSourceTest().

00022                                                    {
00023     Impala::CmdOptions& options = Impala::CmdOptions::GetInstance();
00024     if(options.GetString("directory") == "") {
00025         BOOST_TEST_MESSAGE("Test case TableDataSourceImageDirTest is skipped because no directory is given.");
00026         return;
00027     }
00028 
00029     TableDataSource* imgsrc = new TableDataSourceImageDir(options.GetString("directory"));
00030     BOOST_REQUIRE(imgsrc);
00031 
00032     BOOST_CHECK_GT(imgsrc->GetTotalRows(), 0);
00033 
00034     TableDataSourceTests::IsValidTableDataSourceTest(imgsrc);
00035 
00036     // TODO: Test ImageDir specific stuff.
00037 }

Here is the call graph for this function:


Generated on Fri Mar 19 09:38:48 2010 for ImpalaSrc by  doxygen 1.5.1