11 #include <unordered_map> 25 item.
tag = StructuredHeaderItem::Type::INT64;
38 item.
tag = StructuredHeaderItem::Type::INT64;
50 double val = 3.1415926535;
51 item.
tag = StructuredHeaderItem::Type::DOUBLE;
64 double val = 100000.8392758372647;
65 item.
tag = StructuredHeaderItem::Type::DOUBLE;
77 item.
tag = StructuredHeaderItem::Type::DOUBLE;
122 EXPECT_EQ(encoder.
get(),
"\"seattle \\\\is the best\"");
135 EXPECT_EQ(encoder.
get(),
"\"seattle \\\"is the best\"");
141 item.
tag = StructuredHeaderItem::Type::BINARYCONTENT;
175 item.
tag = StructuredHeaderItem::Type::INT64;
185 std::vector<StructuredHeaderItem>
vec;
188 item.
tag = StructuredHeaderItem::Type::DOUBLE;
193 item.
tag = StructuredHeaderItem::Type::BINARYCONTENT;
198 item.
tag = StructuredHeaderItem::Type::INT64;
211 std::vector<StructuredHeaderItem>
vec;
227 std::vector<StructuredHeaderItem>
vec;
236 std::vector<StructuredHeaderItem>
vec;
254 item1.
tag = StructuredHeaderItem::Type::DOUBLE;
271 item.
tag = StructuredHeaderItem::Type::INT64;
281 item.
tag = StructuredHeaderItem::Type::BINARYCONTENT;
284 dict[
"password"] = item;
294 Eq(
"age=87, name=\"John Doe\", password=*cGFzc3dvcmQ=*"),
295 Eq(
"age=87, password=*cGFzc3dvcmQ=*, name=\"John Doe\""),
296 Eq(
"name=\"John Doe\", age=87, password=*cGFzc3dvcmQ=*"),
297 Eq(
"name=\"John Doe\", password=*cGFzc3dvcmQ=*, age=87"),
298 Eq(
"password=*cGFzc3dvcmQ=*, name=\"John Doe\", age=87"),
299 Eq(
"password=*cGFzc3dvcmQ=*, age=87, name=\"John Doe\"")
336 dict[
"_bad_identifier"] = item1;
346 std::unordered_map<std::string, StructuredHeaderItem>
m;
350 item.
tag = StructuredHeaderItem::Type::INT64;
357 pl.emplace_back(pident);
369 std::unordered_map<std::string, StructuredHeaderItem>
m;
373 item.
tag = StructuredHeaderItem::Type::NONE;
379 pl.emplace_back(pident);
394 std::unordered_map<std::string, StructuredHeaderItem> m1;
398 item.
tag = StructuredHeaderItem::Type::DOUBLE;
399 double val1 = 4234.234;
403 item.
tag = StructuredHeaderItem::Type::BINARYCONTENT;
410 pl.emplace_back(pident1);
412 std::unordered_map<std::string, StructuredHeaderItem> m2;
414 item.
tag = StructuredHeaderItem::Type::NONE;
417 item.
tag = StructuredHeaderItem::Type::INT64;
424 pl.emplace_back(pident2);
434 Eq(
"bar; foo=4234.234; goo=*KysrIQ==*, far; foo; goo=100"),
435 Eq(
"bar; foo=4234.234; goo=*KysrIQ==*, far; goo=100; foo"),
436 Eq(
"bar; goo=*KysrIQ==*; foo=4234.234, far; foo; goo=100"),
437 Eq(
"bar; goo=*KysrIQ==*; foo=4234.234, far; goo=100; foo"),
438 Eq(
"far; foo; goo=100, bar; foo=4234.234; goo=*KysrIQ==*"),
439 Eq(
"far; foo; goo=100, bar; goo=*KysrIQ==*; foo=4234.234"),
440 Eq(
"far; goo=100; foo, bar; foo=4234.234; goo=*KysrIQ==*"),
441 Eq(
"far; goo=100; foo, bar; goo=*KysrIQ==*; foo=4234.234")
455 std::unordered_map<std::string, StructuredHeaderItem>
m;
466 pl.emplace_back(pident);
476 std::unordered_map<std::string, StructuredHeaderItem>
m;
480 item.
tag = StructuredHeaderItem::Type::INT64;
487 pl.emplace_back(pident);
497 std::unordered_map<std::string, StructuredHeaderItem>
m;
508 pl.emplace_back(pident);
internal::EqMatcher< T > Eq(T x)
TEST_F(TestInfoTest, Names)
#define EXPECT_EQ(val1, val2)
internal::AnyOfResult2< M1, M2 >::type AnyOf(M1 m1, M2 m2)
static map< string, int > m
#define EXPECT_THAT(value, matcher)
#define EXPECT_NE(val1, val2)