ReactOS
0.4.16-dev-927-g467dec4
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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
{
17
CPPUNIT_TEST_SUITE
(
StrstreamBufferTest
);
18
CPPUNIT_TEST
(
read_from_buffer
);
19
CPPUNIT_TEST_SUITE_END
();
20
21
protected
:
22
void
read_from_buffer
();
23
};
24
25
CPPUNIT_TEST_SUITE_REGISTRATION
(
StrstreamBufferTest
);
26
27
void
StrstreamBufferTest::read_from_buffer
()
28
{
29
char
hello
[] =
"Hello"
;
30
strstream
stream
(
hello
,
sizeof
(
hello
), ios_base::in);
31
char
cur
;
32
stream
>>
cur
;
33
CPPUNIT_ASSERT
(
cur
==
'H'
);
34
}
35
#endif
strstream
#define strstream
Definition:
_strstream.h:36
StrstreamBufferTest
Definition:
strstream_buffer_read_test.cpp:16
StrstreamBufferTest::CPPUNIT_TEST_SUITE_END
CPPUNIT_TEST_SUITE_END()
StrstreamBufferTest::CPPUNIT_TEST
CPPUNIT_TEST(read_from_buffer)
StrstreamBufferTest::read_from_buffer
void read_from_buffer()
Definition:
strstream_buffer_read_test.cpp:27
StrstreamBufferTest::CPPUNIT_TEST_SUITE
CPPUNIT_TEST_SUITE(StrstreamBufferTest)
CPPUNIT_TEST_SUITE_REGISTRATION
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition:
cppunit_mini.h:193
CPPUNIT_ASSERT
#define CPPUNIT_ASSERT(X)
Definition:
cppunit_mini.h:200
cppunit_proxy.h
cur
FxCollectionEntry * cur
Definition:
fxresourceapi.cpp:412
hello
Definition:
ctx.idl:7
std
Definition:
features.h:417
stream
Definition:
parse.h:23
sdk
lib
3rdparty
stlport
test
unit
strstream_buffer_read_test.cpp
Generated on Sun Mar 30 2025 06:13:52 for ReactOS by
1.9.6