aboutsummaryrefslogtreecommitdiffstats
path: root/util/thread/singleton_ut.cpp
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commitc2a1af049e9deca890e9923abe64fe6c59060348 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/thread/singleton_ut.cpp
parent1f553f46fb4f3c5eec631352cdd900a0709016af (diff)
downloadydb-c2a1af049e9deca890e9923abe64fe6c59060348.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/thread/singleton_ut.cpp')
-rw-r--r--util/thread/singleton_ut.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/util/thread/singleton_ut.cpp b/util/thread/singleton_ut.cpp
index f02316e6ba..164b1cc184 100644
--- a/util/thread/singleton_ut.cpp
+++ b/util/thread/singleton_ut.cpp
@@ -1,21 +1,21 @@
#include <library/cpp/testing/unittest/registar.h>
-
-#include "singleton.h"
-
-namespace {
- struct TFoo {
- int i;
- TFoo()
- : i(0)
+
+#include "singleton.h"
+
+namespace {
+ struct TFoo {
+ int i;
+ TFoo()
+ : i(0)
{
}
- };
-}
-
+ };
+}
+
Y_UNIT_TEST_SUITE(Tls) {
Y_UNIT_TEST(FastThread) {
- UNIT_ASSERT_VALUES_EQUAL(0, FastTlsSingleton<TFoo>()->i);
- FastTlsSingleton<TFoo>()->i += 3;
- UNIT_ASSERT_VALUES_EQUAL(3, FastTlsSingleton<TFoo>()->i);
- }
-}
+ UNIT_ASSERT_VALUES_EQUAL(0, FastTlsSingleton<TFoo>()->i);
+ FastTlsSingleton<TFoo>()->i += 3;
+ UNIT_ASSERT_VALUES_EQUAL(3, FastTlsSingleton<TFoo>()->i);
+ }
+}