src/net/http/structured_headers_unittest.cc
TEST(StructuredHeaderTest, SerializeItem) {
  for (const auto& c : item_test_cases) {
    SCOPED_TRACE(c.name);
    if (c.expected) {
      base::Optional<std::string> result = SerializeItem(*c.expected);
      EXPECT_TRUE(result.has_value());
      EXPECT_EQ(result.value(), std::string(c.canonical ? c.canonical : c.raw));
    }
  }
}
// Serializer tests are all exclusively for Structured Headers Draft 15
Serializer tests are all exclusively for Structured Headers Draft 15
Serializer tests are all exclusively for Structured Headers Draft 15
TEST(StructuredHeaderTest, SerializeItem) {
  for (const auto& c : item_test_cases) {
    SCOPED_TRACE(c.name);
    if (c.expected) {
      base::Optional<std::string> result = SerializeItem(*c.expected);
      EXPECT_TRUE(result.has_value());
      EXPECT_EQ(result.value(), std::string(c.canonical ? c.canonical : c.raw));
    }
  }
}
TEST ( StructuredHeaderTest , SerializeItem ) { for ( const auto & c : item_test_cases ) { SCOPED_TRACE ( c . name ) ; if ( c . expected ) { base :: Optional < std :: string > result = SerializeItem ( * c . expected ) ; EXPECT_TRUE ( result . has_value ( ) ) ; EXPECT_EQ ( result . value ( ) , std :: string ( c . canonical ? c . canonical : c . raw ) ) ; } } }
Serializer tests are all exclusively for Structured Headers Draft 15
Serializer tests are all exclusively for Structured Headers Draft 15