From 05d1823e1220a6bdf5f31990462b66ee60c0c9d1 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 5 Jan 2023 18:28:07 +0100 Subject: Serialization for archive.h --- tests/test-archive.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/test-archive.cpp') diff --git a/tests/test-archive.cpp b/tests/test-archive.cpp index 2ffa2cd..3e9ec10 100644 --- a/tests/test-archive.cpp +++ b/tests/test-archive.cpp @@ -54,13 +54,13 @@ bool operator==(const MyStruct& lhs, const MyStruct& rhs) TEST_F(ArchiveTest, archive) { std::stringstream ss; - Serialization::OArchive oa(ss); + Reichwein::Serialization::OArchive oa(ss); MyStruct mystruct0{123, 45678, 3, 4, 5, {1, 2}, "abc"}; oa << mystruct0; EXPECT_EQ(ss.str().size(), 36); - Serialization::IArchive ia(ss); + Reichwein::Serialization::IArchive ia(ss); MyStruct mystruct1{}; ia >> mystruct1; @@ -71,7 +71,7 @@ TEST_F(ArchiveTest, out) { std::stringstream ss(std::ios_base::in|std::ios_base::out|std::ios_base::binary); - Serialization::OArchive oarchive(ss); + Reichwein::Serialization::OArchive oarchive(ss); uint64_t v1(123456789); oarchive << v1; @@ -113,7 +113,7 @@ TEST_F(ArchiveTest, in) std::string v1("\x00\x00\x00\x00\x07\x5b\xcd\x15\x05\x39\x7f\xb1\x26\x94\x02" "\x00\x00\x00\x04" "abcd\x00\x00\x00\x05\x01\x02\x03\x04\x05", 32); ss.write(v1.data(), v1.size()); - Serialization::IArchive iarchive(ss); + Reichwein::Serialization::IArchive iarchive(ss); ASSERT_EQ(ss.str().size(), 32); @@ -163,7 +163,7 @@ TEST_F(ArchiveTest, in_coro) } sink(); }); - Serialization::IArchive iarchive(ss, coro); + Reichwein::Serialization::IArchive iarchive(ss, coro); uint64_t x1; iarchive >> x1; -- cgit v1.2.3