20 EXPECT_FALSE(null1.m_pData.Get());
21 EXPECT_FALSE(null2.m_pData.Get());
22 EXPECT_NE(goats1.m_pData, goats2.m_pData);
24 ByteString interned_null1 = pool.Intern(null1);
25 ByteString interned_null2 = pool.Intern(null2);
26 ByteString interned_goats1 = pool.Intern(goats1);
27 ByteString interned_goats2 = pool.Intern(goats2);
30 EXPECT_EQ(null1, interned_null1);
31 EXPECT_EQ(null2, interned_null2);
32 EXPECT_EQ(goats1, interned_goats1);
33 EXPECT_EQ(goats2, interned_goats2);
36 EXPECT_FALSE(interned_null1.m_pData.Get());
37 EXPECT_FALSE(interned_null2.m_pData.Get());
38 EXPECT_EQ(goats1.m_pData, interned_goats1.m_pData);
39 EXPECT_EQ(goats1.m_pData, interned_goats2.m_pData);
42 ByteString reinterned_null2 = pool.Intern(null2);
43 ByteString reinterned_null1 = pool.Intern(null2);
44 ByteString reinterned_goats2 = pool.Intern(goats2);
45 ByteString reinterned_goats1 = pool.Intern(goats2);
48 EXPECT_FALSE(interned_null1.m_pData.Get());
49 EXPECT_FALSE(interned_null2.m_pData.Get());
50 EXPECT_EQ(goats2.m_pData, reinterned_goats1.m_pData);
51 EXPECT_EQ(goats2.m_pData, reinterned_goats2.m_pData);
63 EXPECT_FALSE(null1.m_pData.Get());
64 EXPECT_FALSE(null2.m_pData.Get());
65 EXPECT_NE(goats1.m_pData, goats2.m_pData);
67 WideString interned_null1 = pool.Intern(null1);
68 WideString interned_null2 = pool.Intern(null2);
69 WideString interned_goats1 = pool.Intern(goats1);
70 WideString interned_goats2 = pool.Intern(goats2);
73 EXPECT_EQ(null1, interned_null1);
74 EXPECT_EQ(null2, interned_null2);
75 EXPECT_EQ(goats1, interned_goats1);
76 EXPECT_EQ(goats2, interned_goats2);
79 EXPECT_FALSE(interned_null1.m_pData.Get());
80 EXPECT_FALSE(interned_null2.m_pData.Get());
81 EXPECT_EQ(goats1.m_pData, interned_goats1.m_pData);
82 EXPECT_EQ(goats1.m_pData, interned_goats2.m_pData);
85 WideString reinterned_null2 = pool.Intern(null2);
86 WideString reinterned_null1 = pool.Intern(null2);
87 WideString reinterned_goats2 = pool.Intern(goats2);
88 WideString reinterned_goats1 = pool.Intern(goats2);
91 EXPECT_FALSE(interned_null1.m_pData.Get());
92 EXPECT_FALSE(interned_null2.m_pData.Get());
93 EXPECT_EQ(goats2.m_pData, reinterned_goats1.m_pData);
94 EXPECT_EQ(goats2.m_pData, reinterned_goats2.m_pData);