Index: components/webcrypto/algorithms/test_helpers.cc |
diff --git a/components/webcrypto/algorithms/test_helpers.cc b/components/webcrypto/algorithms/test_helpers.cc |
index 8138f0d5493d9739a7c0508306a4c4b870794860..64e0cf7b0e05753827eca48bb896a356f55ac219 100644 |
--- a/components/webcrypto/algorithms/test_helpers.cc |
+++ b/components/webcrypto/algorithms/test_helpers.cc |
@@ -464,8 +464,7 @@ std::unique_ptr<base::DictionaryValue> GetJwkDictionary( |
if (!Base64DecodeUrlSafe(value_string, &k_value)) |
return ::testing::AssertionFailure() << "Base64DecodeUrlSafe(k) failed"; |
if (!base::LowerCaseEqualsASCII( |
- base::HexEncode(k_value.data(), k_value.size()), |
- k_expected_hex.c_str())) { |
+ base::HexEncode(k_value.data(), k_value.size()), k_expected_hex)) { |
return ::testing::AssertionFailure() << "Expected 'k' to be " |
<< k_expected_hex |
<< " but found something different"; |
@@ -504,8 +503,7 @@ std::unique_ptr<base::DictionaryValue> GetJwkDictionary( |
if (!Base64DecodeUrlSafe(value_string, &e_value)) |
return ::testing::AssertionFailure() << "Base64DecodeUrlSafe(e) failed"; |
if (!base::LowerCaseEqualsASCII( |
- base::HexEncode(e_value.data(), e_value.size()), |
- e_expected_hex.c_str())) { |
+ base::HexEncode(e_value.data(), e_value.size()), e_expected_hex)) { |
return ::testing::AssertionFailure() << "Expected 'e' to be " |
<< e_expected_hex |
<< " but found something different"; |