Index: content/child/webcrypto/shared_crypto_unittest.cc |
diff --git a/content/child/webcrypto/shared_crypto_unittest.cc b/content/child/webcrypto/shared_crypto_unittest.cc |
index f7acd6da5189407e8351292372715a2d2877523a..9124e667e4a28d3c88ae14e995b64aa293d4268b 100644 |
--- a/content/child/webcrypto/shared_crypto_unittest.cc |
+++ b/content/child/webcrypto/shared_crypto_unittest.cc |
@@ -637,7 +637,10 @@ scoped_ptr<base::DictionaryValue> GetJwkDictionary( |
std::string n_value; |
if (!webcrypto::Base64DecodeUrlSafe(value_string, &n_value)) |
return ::testing::AssertionFailure() << "Base64DecodeUrlSafe(n) failed"; |
- if (base::HexEncode(n_value.data(), n_value.size()) != n_expected_hex) { |
+ DLOG(INFO) << base::HexEncode(n_value.data(), n_value.size()); |
+ DLOG(INFO) << n_expected_hex; |
+ if (!LowerCaseEqualsASCII(base::HexEncode(n_value.data(), n_value.size()), |
+ n_expected_hex.c_str())) { |
return ::testing::AssertionFailure() << "'n' does not match the expected " |
"value"; |
} |