22 #include <boost/array.hpp> 32 #include <boost/serialization/array.hpp> 67 BOOST_CHECK_EQUAL( d->
set(),
atype );
78 BOOST_CHECK_EQUAL( d->
get(),
atype );
89 BOOST_CHECK_EQUAL( d->
set(),
atype );
91 BOOST_CHECK_EQUAL( d->
set(),
atype );
94 BOOST_CHECK_EQUAL( d->
set(),
atype );
103 BOOST_CHECK_EQUAL( d->
get(),
atype );
105 BOOST_CHECK_EQUAL( d->
get(),
atype );
115 BOOST_CHECK_EQUAL( d->set(),
atype.
c );
117 BOOST_CHECK_EQUAL( d->set(),
atype.
c );
120 d->set(
"Long gone!" );
121 BOOST_CHECK_EQUAL( d->set(), abase->
get().
c );
122 BOOST_CHECK_EQUAL( d->set(),
atype.
c );
124 d->set() =
"And back!";
126 BOOST_CHECK_EQUAL( d->set(), abase->
get().
c );
127 BOOST_CHECK_EQUAL( d->set(),
atype.
c );
139 BOOST_CHECK_EQUAL( d->set().address(),
btype.
c );
140 strcpy(
btype.
c,
"world");
141 BOOST_CHECK_EQUAL(
"world",
btype.
c );
142 BOOST_CHECK_EQUAL( d->set().address(),
btype.
c );
145 *d->set().address() =
'L';
147 BOOST_CHECK_EQUAL(
"Lorld",
btype.
c );
148 BOOST_CHECK_EQUAL(
"Lorld", d->
get().address() );
149 BOOST_CHECK_EQUAL( d->set().address(),
btype.
c );
161 BOOST_CHECK_EQUAL( &d->set(),
btype.
c );
162 strcpy(
btype.
c,
"world");
163 BOOST_CHECK_EQUAL(
"world",
btype.
c );
164 BOOST_CHECK_EQUAL( &d->set(),
btype.
c );
168 BOOST_CHECK_EQUAL(
"Lorld",
btype.
c );
169 BOOST_CHECK( strcmp( &d->set(), abase->
get().c) == 0 );
170 BOOST_CHECK_EQUAL( &d->set(),
btype.
c );
174 BOOST_CHECK_EQUAL(
"World",
btype.
c );
175 BOOST_CHECK( strcmp( &d->set(), abase->
get().c) == 0 );
176 BOOST_CHECK_EQUAL( &d->set(),
btype.
c );
180 BOOST_CHECK_EQUAL(
"WorLd",
btype.
c );
181 BOOST_CHECK( strcmp( &d->set(), &abase->
get().c[3]) == 0 );
182 BOOST_CHECK_EQUAL( &d->set(), &
btype.
c[3] );
#define BOOST_FIXTURE_TEST_SUITE(suite_name, F)
virtual result_t get() const =0
#define BOOST_AUTO_TEST_SUITE_END()
virtual void set(param_t t)=0
BOOST_AUTO_TEST_CASE(testValueDataSource)
DataSource< T >::result_t get() const
boost::intrusive_ptr< DataSource< T > > shared_ptr
boost::intrusive_ptr< AssignableDataSource< T > > shared_ptr