Lines Matching refs:rTestObj2
37 template< class T > void test( T& rTestObj1, T& rTestObj2, T& rTestObj3 ) in test() argument
40 ASSERT_TRUE(rTestObj2.is_unique() ) << "rTestObj2 is unique"; in test()
43 ASSERT_TRUE(rTestObj1 != rTestObj2 ) << "rTestObj1 != rTestObj2"; in test()
44 ASSERT_TRUE(rTestObj2 != rTestObj3 ) << "rTestObj2 != rTestObj3"; in test()
46 ASSERT_TRUE(rTestObj1 < rTestObj2 ) << "rTestObj1 < rTestObj2"; in test()
47 ASSERT_TRUE(rTestObj2 < rTestObj3 ) << "rTestObj2 < rTestObj3"; in test()
49 rTestObj2 = rTestObj1; in test()
51 ASSERT_TRUE(rTestObj1 == rTestObj2 ) << "rTestObj1 == rTestObj2"; in test()
54 ASSERT_TRUE(rTestObj2.use_count() == 3 ) << "rTestObj2.use_count() == 3"; in test()
57 rTestObj2.makeUnique(); in test()
58 ASSERT_TRUE(rTestObj1 == rTestObj2 ) << "rTestObj1 == rTestObj2"; in test()
61 ASSERT_TRUE(rTestObj2.use_count() == 1 ) << "rTestObj2.use_count() == 1"; in test()
62 ASSERT_TRUE(rTestObj2.is_unique() ) << "rTestObj2.is_unique()"; in test()
65 rTestObj2.swap( rTestObj3 ); in test()
66 ASSERT_TRUE(rTestObj1 == rTestObj2 ) << "rTestObj1 == rTestObj2"; in test()
69 ASSERT_TRUE(rTestObj2.use_count() == 2 ) << "rTestObj2.use_count() == 2"; in test()