Ignore:
Timestamp:
Sep 4, 2009, 4:47:18 PM (12 years ago)
Author:
Peter
Message:

adding bool parameter in constructors and fixed some docs typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/stream_redirect_test.cc

    r2047 r2048  
    3333void test1(test::Suite&);
    3434void test2(test::Suite&);
     35void test3(test::Suite&);
    3536void test_cout(test::Suite&);
    3637
     
    4142  test1(suite);
    4243  test2(suite);
     44  test3(suite);
    4345
    4446  // keep this last in case it screws up cout
     
    8991
    9092
     93void test3(test::Suite& suite)
     94{
     95  suite.out() << "testing active=false\n";
     96  std::ostringstream* os1 = new std::ostringstream;
     97  std::ostringstream* os2 = new std::ostringstream;
     98  StreamRedirect* sr = new StreamRedirect(*os1, *os2, false);
     99  delete os1;
     100  delete os2;
     101  delete sr;
     102}
     103
     104
    91105void test_cout(test::Suite& suite)
    92106{
Note: See TracChangeset for help on using the changeset viewer.