Lines Matching refs:EXPECT_TRUE
69 EXPECT_TRUE(IsUnsupportedTextMimeType("text/vcard"));
71 EXPECT_TRUE(IsSupportedImageMimeType("image/jpeg"));
73 EXPECT_TRUE(IsSupportedNonImageMimeType("text/html"));
74 EXPECT_TRUE(IsSupportedNonImageMimeType("text/css"));
75 EXPECT_TRUE(IsSupportedNonImageMimeType("text/"));
76 EXPECT_TRUE(IsSupportedNonImageMimeType("text/banana"));
79 EXPECT_TRUE(IsSupportedNonImageMimeType("application/x-x509-user-cert"));
80 EXPECT_TRUE(IsSupportedNonImageMimeType("application/json"));
81 EXPECT_TRUE(IsSupportedNonImageMimeType("application/+json"));
82 EXPECT_TRUE(IsSupportedNonImageMimeType("application/x-suggestions+json"));
83 EXPECT_TRUE(IsSupportedNonImageMimeType("application/x-s+json;x=2"));
85 EXPECT_TRUE(IsSupportedNonImageMimeType("application/x-x509-ca-cert"));
86 EXPECT_TRUE(IsSupportedNonImageMimeType("application/x-pkcs12"));
87 EXPECT_TRUE(IsSupportedMediaMimeType("application/vnd.apple.mpegurl"));
88 EXPECT_TRUE(IsSupportedMediaMimeType("application/x-mpegurl"));
91 EXPECT_TRUE(IsSupportedMimeType("image/jpeg"));
93 EXPECT_TRUE(IsSupportedMimeType("text/html"));
94 EXPECT_TRUE(IsSupportedMimeType("text/banana"));
102 EXPECT_TRUE(IsStrictMediaMimeType("video/webm"));
103 EXPECT_TRUE(IsStrictMediaMimeType("audio/webm"));
105 EXPECT_TRUE(IsStrictMediaMimeType("audio/wav"));
106 EXPECT_TRUE(IsStrictMediaMimeType("audio/x-wav"));
108 EXPECT_TRUE(IsStrictMediaMimeType("video/ogg"));
109 EXPECT_TRUE(IsStrictMediaMimeType("audio/ogg"));
110 EXPECT_TRUE(IsStrictMediaMimeType("application/ogg"));
112 EXPECT_TRUE(IsStrictMediaMimeType("audio/mpeg"));
113 EXPECT_TRUE(IsStrictMediaMimeType("audio/mp3"));
114 EXPECT_TRUE(IsStrictMediaMimeType("audio/x-mp3"));
133 EXPECT_TRUE(MatchesMimeType("*", "video/x-mpeg"));
134 EXPECT_TRUE(MatchesMimeType("video/*", "video/x-mpeg"));
135 EXPECT_TRUE(MatchesMimeType("video/*", "video/*"));
136 EXPECT_TRUE(MatchesMimeType("video/x-mpeg", "video/x-mpeg"));
137 EXPECT_TRUE(MatchesMimeType("application/*+xml",
139 EXPECT_TRUE(MatchesMimeType("application/*+xml", "application/+xml"));
140 EXPECT_TRUE(MatchesMimeType("application/*+json",
142 EXPECT_TRUE(MatchesMimeType("aaa*aaa", "aaaaaa"));
143 EXPECT_TRUE(MatchesMimeType("*", std::string()));
155 EXPECT_TRUE(MatchesMimeType("*", "video/x-mpeg;param=val"));
156 EXPECT_TRUE(MatchesMimeType("video/*", "video/x-mpeg;param=val"));
159 EXPECT_TRUE(MatchesMimeType("video/*;param=val", "video/mpeg;param=val"));
160 EXPECT_TRUE(MatchesMimeType("video/x-mpeg", "video/x-mpeg;param=val"));
161 EXPECT_TRUE(MatchesMimeType("video/x-mpeg;param=val",
167 EXPECT_TRUE(MatchesMimeType("video/x-mpeg;param=val",
169 EXPECT_TRUE(MatchesMimeType("video/x-mpeg;param=val;param2=val2",
171 EXPECT_TRUE(MatchesMimeType("video/x-mpeg;param2=val2;param=val",
175 EXPECT_TRUE(MatchesMimeType("video/x-mpeg;param=val ;param2=val2 ",
178 EXPECT_TRUE(MatchesMimeType("*/*;param=val", "video/x-mpeg;param=val"));
181 EXPECT_TRUE(MatchesMimeType("*", "*"));
182 EXPECT_TRUE(MatchesMimeType("*", "*/*"));
183 EXPECT_TRUE(MatchesMimeType("*/*", "*/*"));
184 EXPECT_TRUE(MatchesMimeType("*/*", "*"));
185 EXPECT_TRUE(MatchesMimeType("video/*", "video/*"));
188 EXPECT_TRUE(MatchesMimeType("video/*;param=val", "video/*;param=val"));
191 EXPECT_TRUE(MatchesMimeType("ab*cd", "abxxxcd"));
192 EXPECT_TRUE(MatchesMimeType("ab*cd", "abx/xcd"));
193 EXPECT_TRUE(MatchesMimeType("ab/*cd", "ab/xxxcd"));
205 EXPECT_TRUE(IsSupportedMediaMimeType("audio/webm"));
206 EXPECT_TRUE(IsSupportedMediaMimeType("video/webm"));
208 EXPECT_TRUE(IsSupportedMediaMimeType("audio/wav"));
209 EXPECT_TRUE(IsSupportedMediaMimeType("audio/x-wav"));
211 EXPECT_TRUE(IsSupportedMediaMimeType("audio/ogg"));
212 EXPECT_TRUE(IsSupportedMediaMimeType("application/ogg"));
219 EXPECT_TRUE(IsSupportedMediaMimeType("video/ogg"));
225 EXPECT_TRUE(IsSupportedMediaMimeType("audio/mp4"));
226 EXPECT_TRUE(IsSupportedMediaMimeType("audio/x-m4a"));
227 EXPECT_TRUE(IsSupportedMediaMimeType("video/mp4"));
228 EXPECT_TRUE(IsSupportedMediaMimeType("video/x-m4v"));
230 EXPECT_TRUE(IsSupportedMediaMimeType("audio/mp3"));
231 EXPECT_TRUE(IsSupportedMediaMimeType("audio/x-mp3"));
232 EXPECT_TRUE(IsSupportedMediaMimeType("audio/mpeg"));
288 EXPECT_TRUE(ParseMimeTypeWithoutParameter(nonAscii, NULL, NULL));
298 EXPECT_TRUE(ParseMimeTypeWithoutParameter(
304 EXPECT_TRUE(ParseMimeTypeWithoutParameter("application/json", NULL, NULL));
305 EXPECT_TRUE(ParseMimeTypeWithoutParameter(
307 EXPECT_TRUE(ParseMimeTypeWithoutParameter("application/+json", NULL, NULL));
310 EXPECT_TRUE(ParseMimeTypeWithoutParameter("text/mime", NULL, NULL));
311 EXPECT_TRUE(ParseMimeTypeWithoutParameter("TEXT/mime", NULL, NULL));
312 EXPECT_TRUE(ParseMimeTypeWithoutParameter("Text/mime", NULL, NULL));
313 EXPECT_TRUE(ParseMimeTypeWithoutParameter("TeXt/mime", NULL, NULL));
316 EXPECT_TRUE(ParseMimeTypeWithoutParameter("x-video/mime", NULL, NULL));
317 EXPECT_TRUE(ParseMimeTypeWithoutParameter("X-Video/mime", NULL, NULL));
330 //EXPECT_TRUE(ParseMimeTypeWithoutParameter("video/mime;parameter"));
334 EXPECT_TRUE(IsValidTopLevelMimeType("application"));
335 EXPECT_TRUE(IsValidTopLevelMimeType("audio"));
336 EXPECT_TRUE(IsValidTopLevelMimeType("example"));
337 EXPECT_TRUE(IsValidTopLevelMimeType("image"));
338 EXPECT_TRUE(IsValidTopLevelMimeType("message"));
339 EXPECT_TRUE(IsValidTopLevelMimeType("model"));
340 EXPECT_TRUE(IsValidTopLevelMimeType("multipart"));
341 EXPECT_TRUE(IsValidTopLevelMimeType("text"));
342 EXPECT_TRUE(IsValidTopLevelMimeType("video"));
344 EXPECT_TRUE(IsValidTopLevelMimeType("TEXT"));
345 EXPECT_TRUE(IsValidTopLevelMimeType("Text"));
346 EXPECT_TRUE(IsValidTopLevelMimeType("TeXt"));
353 EXPECT_TRUE(IsValidTopLevelMimeType("x-video"));
354 EXPECT_TRUE(IsValidTopLevelMimeType("X-video"));