diff options
author | spacelord <spacelord@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
commit | 16747e4f77455cca4932df21eb76f12cb0a97a5c (patch) | |
tree | 4dd6da4102d99d0d69dec53c1050d290a850a9f2 /util/generic/ptr_ut.cpp | |
parent | a817f5de12611ec73085eba17f8ec7740a46bdb7 (diff) | |
download | ydb-16747e4f77455cca4932df21eb76f12cb0a97a5c.tar.gz |
Restoring authorship annotation for <spacelord@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ptr_ut.cpp')
-rw-r--r-- | util/generic/ptr_ut.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/util/generic/ptr_ut.cpp b/util/generic/ptr_ut.cpp index c2dcff23f6b..85eaf125a90 100644 --- a/util/generic/ptr_ut.cpp +++ b/util/generic/ptr_ut.cpp @@ -26,7 +26,7 @@ class TPointerTest: public TTestBase { UNIT_TEST(TestIntrusiveConvertion); UNIT_TEST(TestIntrusiveConstConvertion); UNIT_TEST(TestIntrusiveConstConstruction); - UNIT_TEST(TestMakeIntrusive); + UNIT_TEST(TestMakeIntrusive); UNIT_TEST(TestCopyOnWritePtr1); UNIT_TEST(TestCopyOnWritePtr2); UNIT_TEST(TestOperatorBool); @@ -78,7 +78,7 @@ private: void TestIntrusiveConvertion(); void TestIntrusiveConstConvertion(); void TestIntrusiveConstConstruction(); - void TestMakeIntrusive(); + void TestMakeIntrusive(); void TestCopyOnWritePtr1(); void TestCopyOnWritePtr2(); void TestOperatorBool(); @@ -418,17 +418,17 @@ void TPointerTest::TestIntrusiveConstConvertion() { } void TPointerTest::TestMakeIntrusive() { - { - UNIT_ASSERT_VALUES_EQUAL(0, TOp::Cnt); - auto p = MakeIntrusive<TOp>(); - UNIT_ASSERT_VALUES_EQUAL(1, p->RefCount()); - UNIT_ASSERT_VALUES_EQUAL(1, TOp::Cnt); - } + { + UNIT_ASSERT_VALUES_EQUAL(0, TOp::Cnt); + auto p = MakeIntrusive<TOp>(); + UNIT_ASSERT_VALUES_EQUAL(1, p->RefCount()); + UNIT_ASSERT_VALUES_EQUAL(1, TOp::Cnt); + } UNIT_ASSERT_VALUES_EQUAL(TOp::Cnt, 0); -} - +} + void TPointerTest::TestCopyOnWritePtr1() { - using TPtr = TCowPtr<TSimpleSharedPtr<int>>; + using TPtr = TCowPtr<TSimpleSharedPtr<int>>; TPtr p1; UNIT_ASSERT(!p1.Shared()); @@ -484,7 +484,7 @@ struct X: public TSimpleRefCount<X> { }; void TPointerTest::TestCopyOnWritePtr2() { - using TPtr = TCowPtr<TIntrusivePtr<X>>; + using TPtr = TCowPtr<TIntrusivePtr<X>>; TPtr p1; UNIT_ASSERT(!p1.Shared()); @@ -537,7 +537,7 @@ namespace { char t[2]; }; - using RTNo = char; + using RTNo = char; static RTYes Func(TTo); static RTNo Func(...); |