src/net/cert/internal/verify_name_match_unittest.cc
TEST(VerifyNameMatchRDNSorting, Simple) {
  std::string a;
  ASSERT_TRUE(LoadTestData("ascii", "PRINTABLESTRING", "rdn_sorting_1", &a));
  std::string b;
  ASSERT_TRUE(LoadTestData("ascii", "PRINTABLESTRING", "rdn_sorting_2", &b));
  EXPECT_TRUE(VerifyNameMatch(SequenceValueFromString(&a),
                              SequenceValueFromString(&b)));
  EXPECT_TRUE(VerifyNameMatch(SequenceValueFromString(&b),
                              SequenceValueFromString(&a)));
}
// Matching should succeed when the RDNs are sorted differently but are still
// equal after normalizing.
Matching should succeed when the RDNs are sorted differently but are still
equal after normalizing.
Matching should succeed when the RDNs are sorted differently but are still equal after normalizing .
TEST(VerifyNameMatchRDNSorting, Simple) {
  std::string a;
  ASSERT_TRUE(LoadTestData("ascii", "PRINTABLESTRING", "rdn_sorting_1", &a));
  std::string b;
  ASSERT_TRUE(LoadTestData("ascii", "PRINTABLESTRING", "rdn_sorting_2", &b));
  EXPECT_TRUE(VerifyNameMatch(SequenceValueFromString(&a),
                              SequenceValueFromString(&b)));
  EXPECT_TRUE(VerifyNameMatch(SequenceValueFromString(&b),
                              SequenceValueFromString(&a)));
}
TEST ( VerifyNameMatchRDNSorting , Simple ) { std :: string a ; ASSERT_TRUE ( LoadTestData ( " " , " " , " " , & a ) ) ; std :: string b ; ASSERT_TRUE ( LoadTestData ( " " , " " , " " , & b ) ) ; EXPECT_TRUE ( VerifyNameMatch ( SequenceValueFromString ( & a ) , SequenceValueFromString ( & b ) ) ) ; EXPECT_TRUE ( VerifyNameMatch ( SequenceValueFromString ( & b ) , SequenceValueFromString ( & a ) ) ) ; }
Matching should succeed when the RDNs are sorted differently but are still
equal after normalizing.
Matching should succeed when the RDNs are sorted differently but are still equal after normalizing .