32 static const size_t SIZE = 10;
44 static constexpr
size_t N =SIZE;
45 std::array<test_data_t, N> v {};
57 for (
size_t i=0 ; i<n && i<N; ++i) {
69 static constexpr
size_t N =SIZE;
70 std::array<test_data_t, N> v {};
82 for (
size_t i=0 ; i<n && i<N; ++i) {
100 std::array<Ostream_vdev_impl, 5> osVdev {};
127 for (
size_t i =0 ; i<7 ; ++i) {
133 for (
size_t i =0 ; i<SIZE ; ++i) {
156 Blop blop {1, 1, 42};
162 const Blop cblop {2, 2, 42};
176 auto it = osIdev.begin();
178 EXPECT_EQ (*(int32_t*)&it, *(int32_t*)&it2);
181 EXPECT_EQ (*(int32_t*)&it, *(int32_t*)&it2);
183 EXPECT_EQ (*(int32_t*)&it, *(int32_t*)&def_it);
199 auto it = osIdev.begin();
201 std::fill_n(it, SIZE,
Idata);
202 for (
size_t i=0 ;i<SIZE ; ++i) {
209 for (
auto& dev : osVdev) {
211 basePointer->put(
Idata);
215 for (
size_t i =0 ; i<SIZE ; ++i) {
225 Blop blop {1, 1, 42};
226 const Blop cblop {2, 2, 42};
229 for (
auto& dev : osVdev) {
234 *basePointer << blop;
239 *basePointer << cblop;
248 for (
auto& dev : osVdev) {
250 auto it = *basePointer->begin();
251 std::fill_n(it, SIZE,
Idata);
252 for (
size_t i=0 ;i<SIZE ; ++i) {
size_t put_(const test_data_t *data, size_t n)
size_t put_(const test_data_t &data)
size_t put_(const test_data_t &data)
#define EXPECT_LT(val1, val2)
Abstract base classes for output stream devices.
STL's core language concepts.
TEST_F(Tostream_Idev, Construction)
size_t put_(const test_data_t *data, size_t n)
#define EXPECT_EQ(val1, val2)
Abstract base class interface for output devices of utl.