8 #include <gtest/gtest.h>
39 auto s4 = std::move(s1);
40 auto s5(std::move(s2));
46 auto s4 = std::move(s1);
47 auto s5(std::move(s2));
54 EXPECT_EQ(s1.
GetName(),
"name");
55 EXPECT_EQ(&s1.
GetRrClient(), m_prim_rr_client.get());
59 EXPECT_EQ(s1.
GetName(),
"name");
60 EXPECT_EQ(&s1.
GetRrClient(), m_meta_rr_client.get());
65 ASSERT_THROW(
PrimSource(
"name", {}), std::invalid_argument);
69 ASSERT_TRUE(m_prim_rr_client);
70 ASSERT_THROW(
PrimSource(
"", m_prim_rr_client), std::invalid_argument);
74 ASSERT_THROW(
MetaSource(
"name", {}), std::invalid_argument);
78 ASSERT_TRUE(m_meta_rr_client);
79 ASSERT_THROW(
MetaSource(
"", m_meta_rr_client), std::invalid_argument);