Lines Matching full:application

17     EXPECT_TRUE(isContentTypeAllowed("application/octet-stream",  in TEST()
21 isContentTypeAllowed("application/json", ContentType::JSON, false)); in TEST()
23 isContentTypeAllowed("application/cbor", ContentType::CBOR, false)); in TEST()
24 EXPECT_TRUE(isContentTypeAllowed("application/json, text/html", in TEST()
30 EXPECT_FALSE(isContentTypeAllowed("application/octet-stream", in TEST()
33 isContentTypeAllowed("application/html", ContentType::JSON, false)); in TEST()
35 isContentTypeAllowed("application/json", ContentType::CBOR, false)); in TEST()
37 isContentTypeAllowed("application/cbor", ContentType::HTML, false)); in TEST()
38 EXPECT_FALSE(isContentTypeAllowed("application/json, text/html", in TEST()
58 getPreferredContentType("text/html, application/json", contentType), in TEST()
62 EXPECT_EQ(getPreferredContentType("text/html, application/json", htmlJson), in TEST()
68 "application/xhtml+xml," in TEST()
69 "application/xml;q=0.9," in TEST()
73 "application/signed-exchange;v=b3;q=0.7", in TEST()
78 EXPECT_EQ(getPreferredContentType("text/html, application/json", jsonHtml), in TEST()
82 EXPECT_EQ(getPreferredContentType("application/cbor, application::json", in TEST()
87 getPreferredContentType("application/json;charset=UTF-8", htmlJson), in TEST()
95 EXPECT_EQ(getPreferredContentType("application/json", cborJson), in TEST()
99 // Application types with odd characters in TEST()
101 "application/prs.nprend, application/json", cborJson), in TEST()
104 EXPECT_EQ(getPreferredContentType("application/rdf+xml, application/json", in TEST()
110 "application/rdf+xml;q=0.9, application/json", cborJson), in TEST()
113 "application/rdf+xml;q=1, application/json", cborJson), in TEST()
115 EXPECT_EQ(getPreferredContentType("application/json;q=0.9", cborJson), in TEST()
117 EXPECT_EQ(getPreferredContentType("application/json;q=1", cborJson), in TEST()
125 getPreferredContentType("text/html, application/json", contentType), in TEST()