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

testMediaTable.cpp

Go to the documentation of this file.
00001 /*
00002  *  testMediaTable.cpp
00003  *  MediaTable
00004  *
00005  *  Created by Daan Odijk on 18-11-09.
00006  *  Copyright 2009 UvA. All rights reserved.
00007  *
00008  */
00009 
00010 #include "Basis/ILog.h"
00011 #include "OglGui/OglLib.cpp"
00012 
00013 #define BOOST_TEST_DYN_LINK
00014 #include "testMediaTable.h"
00015 
00016 #include "boost/test/output/compiler_log_formatter.hpp"
00017 
00018 struct xcode_log_formatter :
00019 public boost::unit_test::output::compiler_log_formatter
00020 {
00021     // Produces an Xcode-friendly message prefix.
00022     void print_prefix(std::ostream& output,
00023                                           boost::unit_test::const_string file_name, std::size_t line)
00024     {
00025         output << file_name << ':' << line << ": error: ";
00026     }
00027 };
00028 
00029 
00030 struct MediaTableUnitTestConfig {
00031     MediaTableUnitTestConfig()
00032         {
00033                 boost::unit_test::unit_test_log.set_formatter(new xcode_log_formatter); 
00034         }
00035     ~MediaTableUnitTestConfig() {}
00036 };
00037 
00038 BOOST_GLOBAL_FIXTURE( MediaTableUnitTestConfig );

Generated on Fri Mar 19 09:30:36 2010 for ImpalaSrc by  doxygen 1.5.1