aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/ut
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/protobuf/json/ut
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/ut')
-rw-r--r--library/cpp/protobuf/json/ut/inline_ut.cpp2
-rw-r--r--library/cpp/protobuf/json/ut/json.h2
-rw-r--r--library/cpp/protobuf/json/ut/json2proto_ut.cpp2
-rw-r--r--library/cpp/protobuf/json/ut/proto.h2
-rw-r--r--library/cpp/protobuf/json/ut/proto2json_ut.cpp2
-rw-r--r--library/cpp/protobuf/json/ut/repeated_fields.incl8
-rw-r--r--library/cpp/protobuf/json/ut/string_transform_ut.cpp18
-rw-r--r--library/cpp/protobuf/json/ut/test.proto2
8 files changed, 19 insertions, 19 deletions
diff --git a/library/cpp/protobuf/json/ut/inline_ut.cpp b/library/cpp/protobuf/json/ut/inline_ut.cpp
index c29ad32e7d..2f2efacf45 100644
--- a/library/cpp/protobuf/json/ut/inline_ut.cpp
+++ b/library/cpp/protobuf/json/ut/inline_ut.cpp
@@ -5,7 +5,7 @@
#include <library/cpp/protobuf/json/proto2json.h>
#include <library/cpp/testing/unittest/registar.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
using namespace NProtobufJson;
diff --git a/library/cpp/protobuf/json/ut/json.h b/library/cpp/protobuf/json/ut/json.h
index c1f108e6e4..b36d848b58 100644
--- a/library/cpp/protobuf/json/ut/json.h
+++ b/library/cpp/protobuf/json/ut/json.h
@@ -7,7 +7,7 @@
#include <cstdarg>
#include <util/generic/hash_set.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/system/defaults.h>
diff --git a/library/cpp/protobuf/json/ut/json2proto_ut.cpp b/library/cpp/protobuf/json/ut/json2proto_ut.cpp
index 0dfe57bc7a..ce9d28222a 100644
--- a/library/cpp/protobuf/json/ut/json2proto_ut.cpp
+++ b/library/cpp/protobuf/json/ut/json2proto_ut.cpp
@@ -13,7 +13,7 @@
#include <library/cpp/testing/unittest/registar.h>
#include <util/generic/hash_set.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/ylimits.h>
#include <util/stream/str.h>
#include <util/string/cast.h>
diff --git a/library/cpp/protobuf/json/ut/proto.h b/library/cpp/protobuf/json/ut/proto.h
index 8183bfc8e1..53454cd950 100644
--- a/library/cpp/protobuf/json/ut/proto.h
+++ b/library/cpp/protobuf/json/ut/proto.h
@@ -1,7 +1,7 @@
#pragma once
#include <util/generic/hash_set.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/system/defaults.h>
diff --git a/library/cpp/protobuf/json/ut/proto2json_ut.cpp b/library/cpp/protobuf/json/ut/proto2json_ut.cpp
index 07e52d7f2f..ed5a414b20 100644
--- a/library/cpp/protobuf/json/ut/proto2json_ut.cpp
+++ b/library/cpp/protobuf/json/ut/proto2json_ut.cpp
@@ -12,7 +12,7 @@
#include <library/cpp/testing/unittest/registar.h>
#include <util/generic/hash_set.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/ylimits.h>
#include <util/stream/str.h>
diff --git a/library/cpp/protobuf/json/ut/repeated_fields.incl b/library/cpp/protobuf/json/ut/repeated_fields.incl
index e9548917d8..332482450f 100644
--- a/library/cpp/protobuf/json/ut/repeated_fields.incl
+++ b/library/cpp/protobuf/json/ut/repeated_fields.incl
@@ -12,10 +12,10 @@ DEFINE_REPEATED_FIELD(FI64, ui64, 0ull, 1ull, Max<ui64>())
DEFINE_REPEATED_FIELD(SFI32, i32, Min<i32>(), -1, 0, 1, Max<i32>())
DEFINE_REPEATED_FIELD(SFI64, i64, Min<i64>(), -1ll, 0ll, 1ll, Max<i64>())
DEFINE_REPEATED_FIELD(Bool, bool, false, true)
-DEFINE_REPEATED_FIELD(String, TString, "", "Lorem ipsum", "123123")
-DEFINE_REPEATED_FIELD(Bytes, TString, "", "מחשב", "\x1")
+DEFINE_REPEATED_FIELD(String, TString, "", "Lorem ipsum", "123123")
+DEFINE_REPEATED_FIELD(Bytes, TString, "", "מחשב", "\x1")
DEFINE_REPEATED_FIELD(Enum, EEnum, E_1, E_2, E_3)
DEFINE_REPEATED_FIELD(Float, float, 0.0f, 1.0f, 1.123f)
DEFINE_REPEATED_FIELD(Double, double, 0.0, 1.0, 1.123456789012)
-DEFINE_REPEATED_FIELD(OneString, TString, "", "Lorem ipsum dolor", "1231231")
-DEFINE_REPEATED_FIELD(OneTwoString, TString, "", "Lorem ipsum dolor sit", "12312312")
+DEFINE_REPEATED_FIELD(OneString, TString, "", "Lorem ipsum dolor", "1231231")
+DEFINE_REPEATED_FIELD(OneTwoString, TString, "", "Lorem ipsum dolor sit", "12312312")
diff --git a/library/cpp/protobuf/json/ut/string_transform_ut.cpp b/library/cpp/protobuf/json/ut/string_transform_ut.cpp
index a31dabcb0f..f5a0011b77 100644
--- a/library/cpp/protobuf/json/ut/string_transform_ut.cpp
+++ b/library/cpp/protobuf/json/ut/string_transform_ut.cpp
@@ -6,7 +6,7 @@
Y_UNIT_TEST_SUITE(TDoubleEscapeTransform) {
Y_UNIT_TEST(TestEmptyString) {
const NProtobufJson::IStringTransform& transform = NProtobufJson::TDoubleEscapeTransform();
- TString s;
+ TString s;
s = "";
transform.Transform(s);
UNIT_ASSERT_EQUAL(s, "");
@@ -14,7 +14,7 @@ Y_UNIT_TEST_SUITE(TDoubleEscapeTransform) {
Y_UNIT_TEST(TestAlphabeticString) {
const NProtobufJson::IStringTransform& transform = NProtobufJson::TDoubleEscapeTransform();
- TString s;
+ TString s;
s = "abacaba";
transform.Transform(s);
UNIT_ASSERT_EQUAL(s, "abacaba");
@@ -22,7 +22,7 @@ Y_UNIT_TEST_SUITE(TDoubleEscapeTransform) {
Y_UNIT_TEST(TestRussianSymbols) {
const NProtobufJson::IStringTransform& transform = NProtobufJson::TDoubleEscapeTransform();
- TString s;
+ TString s;
s = "тест";
transform.Transform(s);
UNIT_ASSERT_EQUAL(s, "\\\\321\\\\202\\\\320\\\\265\\\\321\\\\201\\\\321\\\\202");
@@ -30,7 +30,7 @@ Y_UNIT_TEST_SUITE(TDoubleEscapeTransform) {
Y_UNIT_TEST(TestEscapeSpecialSymbols) {
const NProtobufJson::IStringTransform& transform = NProtobufJson::TDoubleEscapeTransform();
- TString s;
+ TString s;
s = "aba\\ca\"ba";
transform.Transform(s);
Cerr << "###" << s << Endl;
@@ -41,7 +41,7 @@ Y_UNIT_TEST_SUITE(TDoubleEscapeTransform) {
Y_UNIT_TEST_SUITE(TDoubleUnescapeTransform) {
Y_UNIT_TEST(TestEmptyString) {
const NProtobufJson::IStringTransform& transform = NProtobufJson::TDoubleUnescapeTransform();
- TString s;
+ TString s;
s = "";
transform.Transform(s);
UNIT_ASSERT_EQUAL("", s);
@@ -49,7 +49,7 @@ Y_UNIT_TEST_SUITE(TDoubleUnescapeTransform) {
Y_UNIT_TEST(TestAlphabeticString) {
const NProtobufJson::IStringTransform& transform = NProtobufJson::TDoubleUnescapeTransform();
- TString s;
+ TString s;
s = "abacaba";
transform.Transform(s);
Cerr << "###" << s << Endl;
@@ -58,7 +58,7 @@ Y_UNIT_TEST_SUITE(TDoubleUnescapeTransform) {
Y_UNIT_TEST(TestRussianSymbols) {
const NProtobufJson::IStringTransform& transform = NProtobufJson::TDoubleUnescapeTransform();
- TString s;
+ TString s;
s = "\\\\321\\\\202\\\\320\\\\265\\\\321\\\\201\\\\321\\\\202";
transform.Transform(s);
UNIT_ASSERT_EQUAL("тест", s);
@@ -66,7 +66,7 @@ Y_UNIT_TEST_SUITE(TDoubleUnescapeTransform) {
Y_UNIT_TEST(TestEscapeSpecialSymbols) {
const NProtobufJson::IStringTransform& transform = NProtobufJson::TDoubleUnescapeTransform();
- TString s;
+ TString s;
s = "aba\\\\\\\\ca\\\\\\\"ba";
transform.Transform(s);
UNIT_ASSERT_EQUAL("aba\\ca\"ba", s);
@@ -74,7 +74,7 @@ Y_UNIT_TEST_SUITE(TDoubleUnescapeTransform) {
Y_UNIT_TEST(TestEscapeSpecialSymbolsDifficultCases) {
const NProtobufJson::IStringTransform& transform = NProtobufJson::TDoubleUnescapeTransform();
- TString s;
+ TString s;
s = "\\\\\\\\\\\\\\\\";
transform.Transform(s);
UNIT_ASSERT_EQUAL("\\\\", s);
diff --git a/library/cpp/protobuf/json/ut/test.proto b/library/cpp/protobuf/json/ut/test.proto
index 0fa996fd41..32ff53cd0b 100644
--- a/library/cpp/protobuf/json/ut/test.proto
+++ b/library/cpp/protobuf/json/ut/test.proto
@@ -131,7 +131,7 @@ message TCompositeRepeated {
repeated TFlatOptional Part = 1;
};
-message TMapType {
+message TMapType {
map<string, string> Items = 1;
};