Show
Ignore:
Timestamp:
07/22/09 14:57:26 (15 years ago)
Author:
vbarta
Message:

moved logger test to testsuite, updated logger docs (a bit)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/test_user_info.cpp

    r418 r425  
    1 #include <fstream> 
    21#include <memory> 
    32#include <string> 
    43#include <string.h> 
    54#include "base/user_info.h" 
     5#include "test_util.h" 
    66#include "UnitTest++.h" 
    77 
     
    196196UIREGISTER(Bike); 
    197197 
    198 // Non-general but simple file load - handles only files of limited 
    199 // size which do not contain '\0' characters, but for testing that 
    200 // should be enough. 
    201 string load_test_file(const char *fname) 
    202 { 
    203     char buffer[8192]; 
    204     memset(buffer, 0, sizeof(buffer)); 
    205     ifstream src(fname, ios_base::binary); 
    206     src.read(buffer, sizeof(buffer) - 1); 
    207     return string(buffer); 
    208 } 
    209  
    210198TEST(test_load) 
    211199{