Index: core/fxcrt/cfx_count_ref_unittest.cpp |
diff --git a/core/fxcrt/cfx_count_ref_unittest.cpp b/core/fxcrt/cfx_count_ref_unittest.cpp |
index 2a36292b541ec1f80613a1ba5b15910e53611d7c..7651c93f251ccf7c40a9449dcbc130e9f3c5cd9c 100644 |
--- a/core/fxcrt/cfx_count_ref_unittest.cpp |
+++ b/core/fxcrt/cfx_count_ref_unittest.cpp |
@@ -109,19 +109,16 @@ TEST(fxcrt, CountRefGetModify) { |
Observer observer; |
{ |
CFX_CountRef<Object> ptr; |
- ptr.MakePrivateCopy(&observer, std::string("one")); |
- EXPECT_NE(nullptr, ptr.GetObject()); |
+ EXPECT_NE(nullptr, ptr.GetPrivateCopy(&observer, std::string("one"))); |
EXPECT_EQ(1, observer.GetConstructionCount("one")); |
EXPECT_EQ(0, observer.GetDestructionCount("one")); |
- ptr.MakePrivateCopy(&observer, std::string("one")); |
- EXPECT_NE(nullptr, ptr.GetObject()); |
+ EXPECT_NE(nullptr, ptr.GetPrivateCopy(&observer, std::string("one"))); |
EXPECT_EQ(1, observer.GetConstructionCount("one")); |
EXPECT_EQ(0, observer.GetDestructionCount("one")); |
{ |
CFX_CountRef<Object> other(ptr); |
- ptr.MakePrivateCopy(&observer, std::string("one")); |
- EXPECT_NE(nullptr, ptr.GetObject()); |
+ EXPECT_NE(nullptr, ptr.GetPrivateCopy(&observer, std::string("one"))); |
EXPECT_EQ(2, observer.GetConstructionCount("one")); |
EXPECT_EQ(0, observer.GetDestructionCount("one")); |
} |