• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

posix.test.h

Go to the documentation of this file.
00001 /* -*- C++ -*- (c) 2008 Petr Rockai <me@mornfall.net>
00002                (c) 2008 Enrico Zini <enrico@enricozini.org> */
00003 
00004 #include <wibble/test.h>
00005 #include <wibble/stream/posix.h>
00006 #include <sys/types.h>
00007 #include <sys/stat.h>
00008 #include <fcntl.h>
00009 
00010 namespace {
00011 
00012 using namespace std;
00013 using namespace wibble;
00014 using namespace wibble::stream;
00015 
00016 struct TestStreamPosix {
00017 
00018     Test basicMatch() {
00019         int fd = open("/dev/null", O_WRONLY);
00020         assert(fd != -1);
00021 
00022         PosixBuf buf(fd);
00023         ostream os(&buf);
00024 
00025         os << "Foo";
00026         os << "Bar";
00027         os << endl;
00028     }
00029 
00030 };
00031 
00032 }
00033 
00034 // vim:set ts=4 sw=4:

Generated on Tue May 10 2011 16:51:50 for wibble by  doxygen 1.7.1