diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/object_factory | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/object_factory')
-rw-r--r-- | library/cpp/object_factory/object_factory_ut.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/object_factory/object_factory_ut.cpp b/library/cpp/object_factory/object_factory_ut.cpp index 06fb0739ff..841ffcc64d 100644 --- a/library/cpp/object_factory/object_factory_ut.cpp +++ b/library/cpp/object_factory/object_factory_ut.cpp @@ -2,13 +2,13 @@ #include <library/cpp/testing/unittest/registar.h> #include <util/generic/noncopyable.h> -#include <util/generic/string.h> +#include <util/generic/string.h> #include <util/generic/ptr.h> using namespace NObjectFactory; struct TArgument { - TString Name; + TString Name; void* Discarded; }; @@ -17,43 +17,43 @@ public: virtual ~ICommonInterface() { } - virtual TString GetValue() const = 0; + virtual TString GetValue() const = 0; }; class TDirectOrder: public ICommonInterface { public: - TDirectOrder(const TString& provider, float factor, TArgument& argument) + TDirectOrder(const TString& provider, float factor, TArgument& argument) : Provider(provider) , Factor(factor) , Argument(argument) { } - TString GetValue() const override { + TString GetValue() const override { return Provider + ToString(Factor) + Argument.Name; } private: - const TString Provider; + const TString Provider; const float Factor; const TArgument Argument; }; class TInverseOrder: public ICommonInterface { public: - TInverseOrder(const TString& provider, float factor, TArgument& argument) + TInverseOrder(const TString& provider, float factor, TArgument& argument) : Provider(provider) , Factor(factor) , Argument(argument) { } - TString GetValue() const override { + TString GetValue() const override { return Argument.Name + ToString(Factor) + Provider; } private: - const TString Provider; + const TString Provider; const float Factor; const TArgument Argument; }; |