Home
last modified time | relevance | path

Searched refs:GetCanonicalHeaderName (Results 1 – 3 of 3) sorted by relevance

/external/libbrillo/brillo/http/
Dhttp_utils_test.cc488 TEST(HttpUtils, GetCanonicalHeaderName) { in TEST() argument
489 EXPECT_EQ("Foo", GetCanonicalHeaderName("foo")); in TEST()
490 EXPECT_EQ("Bar", GetCanonicalHeaderName("BaR")); in TEST()
491 EXPECT_EQ("Baz", GetCanonicalHeaderName("BAZ")); in TEST()
492 EXPECT_EQ("Foo-Bar", GetCanonicalHeaderName("foo-bar")); in TEST()
493 EXPECT_EQ("Foo-Bar-Baz", GetCanonicalHeaderName("foo-Bar-BAZ")); in TEST()
494 EXPECT_EQ("Foo-Bar-Baz", GetCanonicalHeaderName("FOO-BAR-BAZ")); in TEST()
495 EXPECT_EQ("Foo-Bar-", GetCanonicalHeaderName("fOO-bAR-")); in TEST()
496 EXPECT_EQ("-Bar", GetCanonicalHeaderName("-bAR")); in TEST()
497 EXPECT_EQ("", GetCanonicalHeaderName("")); in TEST()
[all …]
Dhttp_utils.h315 BRILLO_EXPORT std::string GetCanonicalHeaderName(const std::string& name);
Dhttp_utils.cc418 std::string GetCanonicalHeaderName(const std::string& name) { in GetCanonicalHeaderName() function