Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: content/child/webcrypto/shared_crypto_unittest.cc

Issue 206613004: Test case for apparent LowerCaseEqualsASCII failure. Base URL: https://chromium.googlesource.com/chromium/src.git@exportJwkRsaPublicKey
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698