aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/misc/httpreqdata_ut.cpp
diff options
context:
space:
mode:
authorArslan Urtashev <urtashev@gmail.com>2022-02-10 16:48:55 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:55 +0300
commitb97740540e7302cec9efa181e106ae1990a0cc1c (patch)
tree1a2a0bfe523c3272d207e2d75254a41d3945a3bb /library/cpp/http/misc/httpreqdata_ut.cpp
parent31789673dc3562bc7540e00fe031ba84ae282c24 (diff)
downloadydb-b97740540e7302cec9efa181e106ae1990a0cc1c.tar.gz
Restoring authorship annotation for Arslan Urtashev <urtashev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/misc/httpreqdata_ut.cpp')
-rw-r--r--library/cpp/http/misc/httpreqdata_ut.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/http/misc/httpreqdata_ut.cpp b/library/cpp/http/misc/httpreqdata_ut.cpp
index e7f16ef27c..554a4c9645 100644
--- a/library/cpp/http/misc/httpreqdata_ut.cpp
+++ b/library/cpp/http/misc/httpreqdata_ut.cpp
@@ -135,20 +135,20 @@ Y_UNIT_TEST_SUITE(TRequestServerDataTest) {
}
Y_UNIT_TEST(SetRemoteAddrSimple) {
- static const TString TEST = "abacaba.search.yandex.net";
-
- TServerRequestData rd;
- rd.SetRemoteAddr(TEST);
- UNIT_ASSERT_STRINGS_EQUAL(TEST, rd.RemoteAddr());
- }
-
+ static const TString TEST = "abacaba.search.yandex.net";
+
+ TServerRequestData rd;
+ rd.SetRemoteAddr(TEST);
+ UNIT_ASSERT_STRINGS_EQUAL(TEST, rd.RemoteAddr());
+ }
+
Y_UNIT_TEST(SetRemoteAddrRandom) {
- for (size_t size = 0; size < 2 * INET6_ADDRSTRLEN; ++size) {
- const TString test = NUnitTest::RandomString(size, size);
- TServerRequestData rd;
- rd.SetRemoteAddr(test);
- UNIT_ASSERT_STRINGS_EQUAL(test.substr(0, INET6_ADDRSTRLEN - 1), rd.RemoteAddr());
- }
- }
-
+ for (size_t size = 0; size < 2 * INET6_ADDRSTRLEN; ++size) {
+ const TString test = NUnitTest::RandomString(size, size);
+ TServerRequestData rd;
+ rd.SetRemoteAddr(test);
+ UNIT_ASSERT_STRINGS_EQUAL(test.substr(0, INET6_ADDRSTRLEN - 1), rd.RemoteAddr());
+ }
+ }
+
} // TRequestServerDataTest