• Home
  • Raw
  • Download

Lines Matching refs:mime

12   std::string mime_string = mime::Combine(mime::types::kText, "xml");  in TEST()
13 EXPECT_EQ(mime::text::kXml, mime_string); in TEST()
16 mime::Combine(mime::types::kApplication, "json", {{"charset", "utf-8"}})); in TEST()
21 EXPECT_TRUE(mime::Split(mime::image::kJpeg, &s1, &s2)); in TEST()
22 EXPECT_EQ(mime::types::kImage, s1); in TEST()
25 mime::Parameters parameters; in TEST()
27 mime::Split("application/json;charset=utf-8", &s1, &s2, &parameters)); in TEST()
28 EXPECT_EQ(mime::types::kApplication, s1); in TEST()
30 EXPECT_EQ(mime::application::kJson, mime::Combine(s1, s2)); in TEST()
32 EXPECT_EQ(mime::parameters::kCharset, parameters.front().first); in TEST()
35 mime::Combine(s1, s2, parameters)); in TEST()
39 mime::Parameters parameters; in TEST()
41 EXPECT_EQ(mime::types::kText, mime::GetType(mime::text::kPlain)); in TEST()
42 EXPECT_EQ("plain", mime::GetSubtype(mime::text::kPlain)); in TEST()
44 parameters = mime::GetParameters("text/plain; charset=iso-8859-1;foo=bar"); in TEST()
46 EXPECT_EQ(mime::parameters::kCharset, parameters[0].first); in TEST()
53 std::string mime_string = mime::AppendParameter( in TEST()
54 mime::text::kXml, mime::parameters::kCharset, "utf-8"); in TEST()
56 mime_string = mime::AppendParameter(mime_string, "foo", "bar"); in TEST()
59 mime::GetParameterValue(mime_string, mime::parameters::kCharset)); in TEST()
60 EXPECT_EQ("bar", mime::GetParameterValue(mime_string, "foo")); in TEST()
61 EXPECT_EQ("", mime::GetParameterValue(mime_string, "baz")); in TEST()
62 mime_string = mime::RemoveParameters(mime_string); in TEST()
63 EXPECT_EQ(mime::text::kXml, mime_string); in TEST()