ReactOS  0.4.15-dev-3440-g915569a
strstream_buffer_read_test.cpp
Go to the documentation of this file.
1 /*
2  * Note: Strstreams are really broken in STLport. But strstreams are
3  * obsolete, and even if ones was mentioned in D7.1--D7.4 of
4  * Standard, we have no wish to spent time with repair ones.
5  */
6 #if !defined (_STLP_NO_IOSTREAMS)
7 # include <strstream>
8 
9 # include "cppunit/cppunit_proxy.h"
10 
11 # if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
12 using namespace std;
13 # endif
14 
15 class StrstreamBufferTest : public CPPUNIT_NS::TestCase
16 {
18  CPPUNIT_TEST(read_from_buffer);
20 
21 protected:
22  void read_from_buffer();
23 };
24 
26 
28 {
29  char hello[] = "Hello";
31  char cur;
32  stream >> cur;
33  CPPUNIT_ASSERT(cur == 'H');
34 }
35 #endif
#define CPPUNIT_TEST_SUITE(X)
Definition: cppunit_mini.h:142
#define CPPUNIT_TEST(X)
Definition: cppunit_mini.h:182
Definition: features.h:417
Definition: ctx.idl:6
#define CPPUNIT_TEST_SUITE_END()
Definition: cppunit_mini.h:191
#define strstream
Definition: _strstream.h:36
CPPUNIT_TEST_SUITE_REGISTRATION(StrstreamBufferTest)
Definition: parse.h:22
GLuint GLuint stream
Definition: glext.h:7522
FxCollectionEntry * cur
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
GLuint in
Definition: glext.h:9616