Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / components / autofill / core / common / save_password_progress_logger_unittest.cc
index 805cc5f..0de91ac 100644 (file)
@@ -69,7 +69,7 @@ TEST(SavePasswordProgressLoggerTest, LogPasswordFormElementID) {
   const std::string kSpecialCharsInsideExpected("x  a  b  c  d  e  x");
   form.username_element = UTF8ToUTF16(kHTMLInside);
   form.password_element = UTF8ToUTF16(kIPAddressInside);
-  form.old_password_element = UTF8ToUTF16(kSpecialCharsInside);
+  form.new_password_element = UTF8ToUTF16(kSpecialCharsInside);
   logger.LogPasswordForm(SavePasswordProgressLogger::STRING_MESSAGE, form);
   SCOPED_TRACE(testing::Message() << "Log string = ["
                                   << logger.accumulated_log() << "]");
@@ -86,13 +86,11 @@ TEST(SavePasswordProgressLoggerTest, LogHTMLForm) {
   TestLogger logger;
   logger.LogHTMLForm(SavePasswordProgressLogger::STRING_MESSAGE,
                      "form_name",
-                     "post",
                      GURL("http://example.org/verysecret?verysecret"));
   SCOPED_TRACE(testing::Message() << "Log string = ["
                                   << logger.accumulated_log() << "]");
   EXPECT_TRUE(logger.LogsContainSubstring(kTestString));
   EXPECT_TRUE(logger.LogsContainSubstring("form_name"));
-  EXPECT_TRUE(logger.LogsContainSubstring("POST"));
   EXPECT_TRUE(logger.LogsContainSubstring("http://example.org"));
   EXPECT_FALSE(logger.LogsContainSubstring("verysecret"));
 }