Home
last modified time | relevance | path

Searched refs:getPreferredEncoding (Results 1 – 2 of 2) sorted by relevance

/openbmc/bmcweb/test/include/
H A Dhttp_utility_test.cpp129 TEST(getPreferredEncoding, PositiveTest) in TEST() argument
132 EXPECT_EQ(getPreferredEncoding("gzip", encodingsGzip), Encoding::GZIP); in TEST()
135 EXPECT_EQ(getPreferredEncoding("gzip", encodingsGzipZstd), Encoding::GZIP); in TEST()
136 EXPECT_EQ(getPreferredEncoding("zstd", encodingsGzipZstd), Encoding::ZSTD); in TEST()
138 EXPECT_EQ(getPreferredEncoding("*", encodingsGzipZstd), Encoding::GZIP); in TEST()
140 EXPECT_EQ(getPreferredEncoding("zstd, gzip;q=1.0", encodingsGzipZstd), in TEST()
144 TEST(getPreferredEncoding, NegativeTest) in TEST() argument
148 EXPECT_EQ(getPreferredEncoding("noexist", contentType), in TEST()
152 EXPECT_EQ(getPreferredEncoding("zstd", contentType2), Encoding::NoMatch); in TEST()
/openbmc/bmcweb/include/
H A Dhttp_utility.hpp142 getPreferredEncoding(std::string_view acceptEncoding, in getPreferredEncoding() function