Chromium Code Reviews| Index: core/fxcrt/cfx_retain_ptr_unittest.cpp |
| diff --git a/core/fxcrt/cfx_retain_ptr_unittest.cpp b/core/fxcrt/cfx_retain_ptr_unittest.cpp |
| index aa92e57f32fb87e2d7702af4e06c8637385052f5..b6ea831beeee6e12b6b0b758671e6d70d2033413 100644 |
| --- a/core/fxcrt/cfx_retain_ptr_unittest.cpp |
| +++ b/core/fxcrt/cfx_retain_ptr_unittest.cpp |
| @@ -213,3 +213,8 @@ TEST(fxcrt, RetainPtrBool) { |
| EXPECT_FALSE(null_bool); |
| EXPECT_TRUE(obj1_bool); |
| } |
| + |
| +TEST(fxcrt, RetainPtrMakeRetained) { |
| + auto ptr = pdfium::MakeRetain<CFX_Retainable>(); |
| + EXPECT_TRUE(ptr->HasOneRef()); |
|
npm
2016/11/29 22:25:30
Do we need more tests? For Retain() and Release()
Tom Sepez
2016/11/29 22:36:23
Done.
|
| +} |