summaryrefslogtreecommitdiffstats
path: root/chrome/browser/internal_auth_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/internal_auth_unittest.cc')
-rw-r--r--chrome/browser/internal_auth_unittest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/internal_auth_unittest.cc b/chrome/browser/internal_auth_unittest.cc
index 42080cd..da8954e 100644
--- a/chrome/browser/internal_auth_unittest.cc
+++ b/chrome/browser/internal_auth_unittest.cc
@@ -69,9 +69,10 @@ TEST_F(InternalAuthTest, BadGeneration) {
token, long_string_, map));
// Trying empty domain.
- token = InternalAuthGeneration::GeneratePassport("", map);
+ token = InternalAuthGeneration::GeneratePassport(std::string(), map);
ASSERT_TRUE(token.empty());
- ASSERT_FALSE(InternalAuthVerification::VerifyPassport(token, "", map));
+ ASSERT_FALSE(
+ InternalAuthVerification::VerifyPassport(token, std::string(), map));
std::string dummy("abcdefghij");
for (size_t i = 1000; i--;) {
@@ -87,7 +88,7 @@ TEST_F(InternalAuthTest, BadGeneration) {
ASSERT_FALSE(InternalAuthVerification::VerifyPassport(token, "zapata", map));
map.clear();
- map[""] = "value";
+ map[std::string()] = "value";
// Trying empty key.
token = InternalAuthGeneration::GeneratePassport("zapata", map);
ASSERT_TRUE(token.empty());