aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/ptr_ut.cpp
diff options
context:
space:
mode:
authorspacelord <spacelord@yandex-team.ru>2022-02-10 16:48:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:15 +0300
commita0c6d9ad0cf6b94c527a15da147eb24335281b6d (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/generic/ptr_ut.cpp
parent16747e4f77455cca4932df21eb76f12cb0a97a5c (diff)
downloadydb-a0c6d9ad0cf6b94c527a15da147eb24335281b6d.tar.gz
Restoring authorship annotation for <spacelord@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/ptr_ut.cpp')
-rw-r--r--util/generic/ptr_ut.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/generic/ptr_ut.cpp b/util/generic/ptr_ut.cpp
index 85eaf125a9..c2dcff23f6 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(...);