src/net/cookies/parsed_cookie_unittest.cc
TEST(ParsedCookieTest, InvalidTooLong) {
  std::string maxstr;
  maxstr.resize(ParsedCookie::kMaxCookieSize, 'a');

  ParsedCookie pc1(maxstr);
  EXPECT_TRUE(pc1.IsValid());

  ParsedCookie pc2(maxstr + "A");
  EXPECT_FALSE(pc2.IsValid());
}
// TODO(erikwright): some better test cases for invalid cookies.
some better test cases for invalid cookies.
some better test cases for invalid cookies .
TEST(ParsedCookieTest, InvalidTooLong) {
  std::string maxstr;
  maxstr.resize(ParsedCookie::kMaxCookieSize, 'a');
  ParsedCookie pc1(maxstr);
  EXPECT_TRUE(pc1.IsValid());
  ParsedCookie pc2(maxstr + "A");
  EXPECT_FALSE(pc2.IsValid());
}
TEST ( ParsedCookieTest , InvalidTooLong ) { std :: string maxstr ; maxstr . resize ( ParsedCookie :: kMaxCookieSize , ' ' ) ; ParsedCookie pc1 ( maxstr ) ; EXPECT_TRUE ( pc1 . IsValid ( ) ) ; ParsedCookie pc2 ( maxstr + " " ) ; EXPECT_FALSE ( pc2 . IsValid ( ) ) ; }
TODO(erikwright): some better test cases for invalid cookies.
TODO ( erikwright ) : some better test cases for invalid cookies .