aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest/tests_data.h
diff options
context:
space:
mode:
authorAleksandr <ivansduck@gmail.com>2022-02-10 16:47:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:52 +0300
commitb05913d1c3c02a773578bceb7285084d2933ae86 (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/testing/unittest/tests_data.h
parentea6c5b7f172becca389cacaff7d5f45f6adccbe6 (diff)
downloadydb-b05913d1c3c02a773578bceb7285084d2933ae86.tar.gz
Restoring authorship annotation for Aleksandr <ivansduck@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/tests_data.h')
-rw-r--r--library/cpp/testing/unittest/tests_data.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/testing/unittest/tests_data.h b/library/cpp/testing/unittest/tests_data.h
index dac65dfc72..6536bc1ae6 100644
--- a/library/cpp/testing/unittest/tests_data.h
+++ b/library/cpp/testing/unittest/tests_data.h
@@ -2,8 +2,8 @@
#include <library/cpp/testing/common/env.h>
-#include <util/generic/noncopyable.h>
-#include <util/generic/ptr.h>
+#include <util/generic/noncopyable.h>
+#include <util/generic/ptr.h>
#include <util/generic/string.h>
#include <util/network/sock.h>
@@ -28,12 +28,12 @@ void SetReuseAddressAndPort(const TSocketType& sock) {
}
class TPortManager: public TNonCopyable {
-public:
+public:
TPortManager(bool reservePortsForCurrentTest = true);
- ~TPortManager();
+ ~TPortManager();
// Gets free TCP port
- ui16 GetPort(ui16 port = 0);
+ ui16 GetPort(ui16 port = 0);
// Gets free TCP port
ui16 GetTcpPort(ui16 port = 0);
@@ -44,11 +44,11 @@ public:
// Gets one free port for use in both TCP and UDP protocols
ui16 GetTcpAndUdpPort(ui16 port = 0);
- ui16 GetPortsRange(const ui16 startPort, const ui16 range);
-
-private:
- class TPortManagerImpl;
- THolder<TPortManagerImpl> Impl_;
+ ui16 GetPortsRange(const ui16 startPort, const ui16 range);
+
+private:
+ class TPortManagerImpl;
+ THolder<TPortManagerImpl> Impl_;
};
ui16 GetRandomPort();