Home | History | Annotate | Download | only in http

Lines Matching refs:max_age

54   base::TimeDelta max_age;
58 ParseHSTSHeader(std::string(), &max_age, &include_subdomains));
59 EXPECT_FALSE(ParseHSTSHeader(" ", &max_age, &include_subdomains));
60 EXPECT_FALSE(ParseHSTSHeader("abc", &max_age, &include_subdomains));
61 EXPECT_FALSE(ParseHSTSHeader(" abc", &max_age, &include_subdomains));
62 EXPECT_FALSE(ParseHSTSHeader(" abc ", &max_age, &include_subdomains));
63 EXPECT_FALSE(ParseHSTSHeader("max-age", &max_age, &include_subdomains));
64 EXPECT_FALSE(ParseHSTSHeader(" max-age", &max_age,
66 EXPECT_FALSE(ParseHSTSHeader(" max-age ", &max_age,
68 EXPECT_FALSE(ParseHSTSHeader("max-age=", &max_age, &include_subdomains));
69 EXPECT_FALSE(ParseHSTSHeader(" max-age=", &max_age,
71 EXPECT_FALSE(ParseHSTSHeader(" max-age =", &max_age,
73 EXPECT_FALSE(ParseHSTSHeader(" max-age= ", &max_age,
75 EXPECT_FALSE(ParseHSTSHeader(" max-age = ", &max_age,
77 EXPECT_FALSE(ParseHSTSHeader(" max-age = xy", &max_age,
79 EXPECT_FALSE(ParseHSTSHeader(" max-age = 3488a923", &max_age,
81 EXPECT_FALSE(ParseHSTSHeader("max-age=3488a923 ", &max_age,
83 EXPECT_FALSE(ParseHSTSHeader("max-ag=3488923", &max_age,
85 EXPECT_FALSE(ParseHSTSHeader("max-aged=3488923", &max_age,
87 EXPECT_FALSE(ParseHSTSHeader("max-age==3488923", &max_age,
89 EXPECT_FALSE(ParseHSTSHeader("amax-age=3488923", &max_age,
91 EXPECT_FALSE(ParseHSTSHeader("max-age=-3488923", &max_age,
93 EXPECT_FALSE(ParseHSTSHeader("max-age=3488923 e", &max_age,
96 &max_age, &include_subdomains));
98 &max_age, &include_subdomains));
100 &max_age, &include_subdomains));
102 &max_age, &include_subdomains));
104 &max_age, &include_subdomains));
106 &max_age, &include_subdomains));
108 &max_age, &include_subdomains));
110 &max_age, &include_subdomains));
112 &max_age, &include_subdomains));
114 &max_age, &include_subdomains));
116 &max_age, &include_subdomains));
118 &max_age, &include_subdomains));
120 &max_age, &include_subdomains));
122 &max_age, &include_subdomains));
124 &max_age, &include_subdomains));
128 EXPECT_EQ(0, max_age.InSeconds());
133 base::TimeDelta max_age;
147 EXPECT_FALSE(ParseHPKPHeader(std::string(), chain_hashes, &max_age,
149 EXPECT_FALSE(ParseHPKPHeader(" ", chain_hashes, &max_age,
151 EXPECT_FALSE(ParseHPKPHeader("abc", chain_hashes, &max_age,
153 EXPECT_FALSE(ParseHPKPHeader(" abc", chain_hashes, &max_age,
155 EXPECT_FALSE(ParseHPKPHeader(" abc ", chain_hashes, &max_age,
157 EXPECT_FALSE(ParseHPKPHeader("max-age", chain_hashes, &max_age,
159 EXPECT_FALSE(ParseHPKPHeader(" max-age", chain_hashes, &max_age,
161 EXPECT_FALSE(ParseHPKPHeader(" max-age ", chain_hashes, &max_age,
163 EXPECT_FALSE(ParseHPKPHeader("max-age=", chain_hashes, &max_age,
165 EXPECT_FALSE(ParseHPKPHeader(" max-age=", chain_hashes, &max_age,
167 EXPECT_FALSE(ParseHPKPHeader(" max-age =", chain_hashes, &max_age,
169 EXPECT_FALSE(ParseHPKPHeader(" max-age= ", chain_hashes, &max_age,
172 &max_age, &include_subdomains, &hashes));
174 &max_age, &include_subdomains, &hashes));
176 chain_hashes, &max_age, &include_subdomains,
179 &max_age, &include_subdomains, &hashes));
182 chain_hashes, &max_age, &include_subdomains,
185 chain_hashes, &max_age, &include_subdomains,
188 chain_hashes, &max_age, &include_subdomains,
192 chain_hashes, &max_age, &include_subdomains,
196 chain_hashes, &max_age, &include_subdomains,
199 chain_hashes, &max_age, &include_subdomains,
201 EXPECT_FALSE(ParseHPKPHeader("max-age==3488923", chain_hashes, &max_age,
203 EXPECT_FALSE(ParseHPKPHeader("amax-age=3488923", chain_hashes, &max_age,
205 EXPECT_FALSE(ParseHPKPHeader("max-age=-3488923", chain_hashes, &max_age,
207 EXPECT_FALSE(ParseHPKPHeader("max-age=3488923;", chain_hashes, &max_age,
210 &max_age, &include_subdomains, &hashes));
212 chain_hashes, &max_age, &include_subdomains,
214 EXPECT_FALSE(ParseHPKPHeader("max-age=34889.23", chain_hashes, &max_age,
219 EXPECT_EQ(0, max_age.InSeconds());
224 base::TimeDelta max_age;
228 EXPECT_TRUE(ParseHSTSHeader("max-age=243", &max_age,
231 EXPECT_EQ(expect_max_age, max_age);
234 EXPECT_TRUE(ParseHSTSHeader("max-age=3488923;", &max_age,
237 EXPECT_TRUE(ParseHSTSHeader(" Max-agE = 567", &max_age,
240 EXPECT_EQ(expect_max_age, max_age);
243 EXPECT_TRUE(ParseHSTSHeader(" mAx-aGe = 890 ", &max_age,
246 EXPECT_EQ(expect_max_age, max_age);
249 EXPECT_TRUE(ParseHSTSHeader("max-age=123;incLudesUbdOmains", &max_age,
252 EXPECT_EQ(expect_max_age, max_age);
255 EXPECT_TRUE(ParseHSTSHeader("incLudesUbdOmains; max-age=123", &max_age,
258 EXPECT_EQ(expect_max_age, max_age);
262 &max_age, &include_subdomains));
264 EXPECT_EQ(expect_max_age, max_age);
268 " incLudesUbdOmains; max-age=123; pumpkin=kitten", &max_age,
271 EXPECT_EQ(expect_max_age, max_age);
275 " pumpkin=894; incLudesUbdOmains; max-age=123 ", &max_age,
278 EXPECT_EQ(expect_max_age, max_age);
282 " pumpkin; incLudesUbdOmains; max-age=123 ", &max_age,
285 EXPECT_EQ(expect_max_age, max_age);
289 " pumpkin; incLudesUbdOmains; max-age=\"123\" ", &max_age,
292 EXPECT_EQ(expect_max_age, max_age);
297 &max_age, &include_subdomains));
299 EXPECT_EQ(expect_max_age, max_age);
303 &max_age, &include_subdomains));
305 EXPECT_EQ(expect_max_age, max_age);
309 "max-age=39408299 ;incLudesUbdOmains", &max_age,
313 EXPECT_EQ(expect_max_age, max_age);
317 "max-age=394082038 ; incLudesUbdOmains", &max_age,
321 EXPECT_EQ(expect_max_age, max_age);
325 "max-age=394082038 ; incLudesUbdOmains;", &max_age,
329 EXPECT_EQ(expect_max_age, max_age);
333 ";; max-age=394082038 ; incLudesUbdOmains; ;", &max_age,
337 EXPECT_EQ(expect_max_age, max_age);
341 ";; max-age=394082038 ;", &max_age,
345 EXPECT_EQ(expect_max_age, max_age);
349 ";; ; ; max-age=394082038;;; includeSubdomains ;; ;", &max_age,
353 EXPECT_EQ(expect_max_age, max_age);
357 "incLudesUbdOmains ; max-age=394082038 ;;", &max_age,
361 EXPECT_EQ(expect_max_age, max_age);
365 " max-age=0 ; incLudesUbdOmains ", &max_age,
368 EXPECT_EQ(expect_max_age, max_age);
373 " incLudesUbdOmains ", &max_age, &include_subdomains));
376 EXPECT_EQ(expect_max_age, max_age);
381 base::TimeDelta max_age;
398 chain_hashes, &max_age, &include_subdomains, &hashes));
400 EXPECT_EQ(expect_max_age, max_age);
405 chain_hashes, &max_age, &include_subdomains, &hashes));
407 EXPECT_EQ(expect_max_age, max_age);
413 chain_hashes, &max_age, &include_subdomains, &hashes));
415 EXPECT_EQ(expect_max_age, max_age);
420 chain_hashes, &max_age, &include_subdomains, &hashes));
422 EXPECT_EQ(expect_max_age, max_age);
427 chain_hashes, &max_age, &include_subdomains, &hashes));
429 EXPECT_EQ(expect_max_age, max_age);
434 chain_hashes, &max_age, &include_subdomains, &hashes));
437 EXPECT_EQ(expect_max_age, max_age);
443 chain_hashes, &max_age, &include_subdomains, &hashes));
446 EXPECT_EQ(expect_max_age, max_age);
451 chain_hashes, &max_age, &include_subdomains, &hashes));
453 EXPECT_EQ(expect_max_age, max_age);
458 chain_hashes, &max_age, &include_subdomains, &hashes));
460 EXPECT_EQ(expect_max_age, max_age);
466 chain_hashes, &max_age, &include_subdomains, &hashes));
468 EXPECT_EQ(expect_max_age, max_age);
477 chain_hashes, &max_age, &include_subdomains, &hashes));
482 chain_hashes, &max_age, &include_subdomains, &hashes));