Changeset f323dd1 in git for libpolys/tests/common.h


Ignore:
Timestamp:
Feb 29, 2012, 5:18:58 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8d8cd944663cf80b3fd163a42279526ce163a5fd
Parents:
d8b0f69f9828897dca663d5bb516369b1b0ac64a
Message:
chg: move feResource to findexec lib
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/tests/common.h

    rd8b0f69 rf323dd1  
    1818
    1919#include <reporter/reporter.h>
    20 #include <resources/feResource.h>
     20#include <findexec/feResource.h>
    2121
    2222#ifndef PLURAL_INTERNAL_DECLARATIONS
    23 #define PLURAL_INTERNAL_DECLARATIONS 
     23#define PLURAL_INTERNAL_DECLARATIONS
    2424#endif
    2525
     
    5757      CASE(n_Z2m);
    5858      CASE(n_CF);
    59       default: return o << "Unknown type: [" << (const unsigned long) type << "]"; 
    60     }   
     59      default: return o << "Unknown type: [" << (const unsigned long) type << "]";
     60    }
    6161#undef CASE
    6262    return o;
     
    7676  {
    7777    n_Test(a,r);
    78     StringSetS(""); 
     78    StringSetS("");
    7979    n_Write(a, r);
    8080
     
    8383    std::stringstream ss;  ss << s;
    8484
    85     StringSetS(""); 
     85    StringSetS("");
    8686    return ss.str();
    8787
     
    9292    std::clog << _2S(a, r) << ", of size: " << n_Size(a, r);
    9393
    94     if( eoln ) 
    95       std::clog << std::endl; 
     94    if( eoln )
     95      std::clog << std::endl;
    9696  }
    9797
     
    106106  public:
    107107    GlobalPrintingFixture(bool redirect = false): _redirect(redirect){}
    108    
     108
    109109    ~GlobalPrintingFixture()
    110110    {
     
    112112        _ofs.close();
    113113    }
    114    
     114
    115115    void Redirect()
    116116    {
     
    120120      s = strncpy(s, argv0, ll);
    121121      strncpy(s + ll, ".log", 4);
    122       _ofs.open(s); // , ios_base::out) 
     122      _ofs.open(s); // , ios_base::out)
    123123      omFreeSize((ADDRESS)s, l);
    124124
     
    126126    }
    127127
    128     virtual bool setUpWorld() 
     128    virtual bool setUpWorld()
    129129    {
    130130      if( _redirect )
     
    137137      feStringAppendResources(0);
    138138      PrintS(StringAppendS("\n"));
    139      
     139
    140140      return true;
    141141    }
    142142
    143     virtual bool tearDownWorld() 
     143    virtual bool tearDownWorld()
    144144    {
    145         std::clog << std::endl << std::endl <<( "</world>" )  << std::endl  << std::endl ; 
    146         return true; 
     145        std::clog << std::endl << std::endl <<( "</world>" )  << std::endl  << std::endl ;
     146        return true;
    147147    }
    148148    virtual bool setUp() { std::clog << std::endl << std::endl <<( "<test>" ) << std::endl  << std::endl; return true; }
Note: See TracChangeset for help on using the changeset viewer.