src/net/dns/esni_content_unittest.cc
// Make sure we can add keys.
Make sure we can add keys.
Make sure we can add keys .
TEST(EsniContentTest, AddKey) {
  EsniContent c1;
  c1.AddKey("a");
  EXPECT_THAT(c1.keys(), ::testing::UnorderedElementsAre("a"));
  c1.AddKey("a");
  EXPECT_THAT(c1.keys(), ::testing::UnorderedElementsAre("a"));
  c1.AddKey("b");
  EXPECT_THAT(c1.keys(), ::testing::UnorderedElementsAre("a", "b"));
}
TEST ( EsniContentTest , AddKey ) { EsniContent c1 ; c1 . AddKey ( " " ) ; EXPECT_THAT ( c1 . keys ( ) , :: testing :: UnorderedElementsAre ( " " ) ) ; c1 . AddKey ( " " ) ; EXPECT_THAT ( c1 . keys ( ) , :: testing :: UnorderedElementsAre ( " " ) ) ; c1 . AddKey ( " " ) ; EXPECT_THAT ( c1 . keys ( ) , :: testing :: UnorderedElementsAre ( " " , " " ) ) ; }
Make sure we can add keys.
Make sure we can add keys .