aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/future/legacy_future_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/threading/future/legacy_future_ut.cpp
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading/future/legacy_future_ut.cpp')
-rw-r--r--library/cpp/threading/future/legacy_future_ut.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/threading/future/legacy_future_ut.cpp b/library/cpp/threading/future/legacy_future_ut.cpp
index b0c9dc21aa..ff63db1725 100644
--- a/library/cpp/threading/future/legacy_future_ut.cpp
+++ b/library/cpp/threading/future/legacy_future_ut.cpp
@@ -3,12 +3,12 @@
#include <library/cpp/testing/unittest/registar.h>
namespace NThreading {
- Y_UNIT_TEST_SUITE(TLegacyFutureTest) {
+ Y_UNIT_TEST_SUITE(TLegacyFutureTest) {
int intf() {
return 17;
}
- Y_UNIT_TEST(TestIntFunction) {
+ Y_UNIT_TEST(TestIntFunction) {
TLegacyFuture<int> f((&intf));
UNIT_ASSERT_VALUES_EQUAL(17, f.Get());
}
@@ -19,7 +19,7 @@ namespace NThreading {
r = 18;
}
- Y_UNIT_TEST(TestVoidFunction) {
+ Y_UNIT_TEST(TestVoidFunction) {
r = 0;
TLegacyFuture<> f((&voidf));
f.Get();
@@ -39,7 +39,7 @@ namespace NThreading {
}
};
- Y_UNIT_TEST(TestMethod) {
+ Y_UNIT_TEST(TestMethod) {
TLegacyFuture<int> f11(std::bind(&TSampleClass::Calc, TSampleClass(3)));
UNIT_ASSERT_VALUES_EQUAL(4, f11.Get());
@@ -57,7 +57,7 @@ namespace NThreading {
struct TSomeThreadPool: public IThreadFactory {};
- Y_UNIT_TEST(TestFunction) {
+ Y_UNIT_TEST(TestFunction) {
std::function<int()> f((&intf));
UNIT_ASSERT_VALUES_EQUAL(17, TLegacyFuture<int>(f).Get());