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

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

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « content/child/web_url_loader_impl.cc ('k') | content/common/android/address_parser.cc » ('j') | 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 23a842dda3d93e1fcdfa4644e55d4d179813da85..0526d6efbc6199f29fed8377ca28eeb9ce5db829 100644
--- a/content/child/webcrypto/shared_crypto_unittest.cc
+++ b/content/child/webcrypto/shared_crypto_unittest.cc
@@ -669,8 +669,9 @@ scoped_ptr<base::DictionaryValue> GetJwkDictionary(
std::string k_value;
if (!webcrypto::Base64DecodeUrlSafe(value_string, &k_value))
return ::testing::AssertionFailure() << "Base64DecodeUrlSafe(k) failed";
- if (!LowerCaseEqualsASCII(base::HexEncode(k_value.data(), k_value.size()),
- k_expected_hex.c_str())) {
+ if (!base::LowerCaseEqualsASCII(
+ base::HexEncode(k_value.data(), k_value.size()),
+ k_expected_hex.c_str())) {
return ::testing::AssertionFailure() << "Expected 'k' to be "
<< k_expected_hex
<< " but found something different";
@@ -710,8 +711,9 @@ scoped_ptr<base::DictionaryValue> GetJwkDictionary(
std::string e_value;
if (!webcrypto::Base64DecodeUrlSafe(value_string, &e_value))
return ::testing::AssertionFailure() << "Base64DecodeUrlSafe(e) failed";
- if (!LowerCaseEqualsASCII(base::HexEncode(e_value.data(), e_value.size()),
- e_expected_hex.c_str())) {
+ if (!base::LowerCaseEqualsASCII(
+ base::HexEncode(e_value.data(), e_value.size()),
+ e_expected_hex.c_str())) {
return ::testing::AssertionFailure() << "Expected 'e' to be "
<< e_expected_hex
<< " but found something different";
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/common/android/address_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698