Index: chrome/renderer/autofill/password_autofill_agent_browsertest.cc |
diff --git a/chrome/renderer/autofill/password_autofill_agent_browsertest.cc b/chrome/renderer/autofill/password_autofill_agent_browsertest.cc |
index 36e0496ef05e4ac048bd74d3734bc7453b53a02e..572db2e7e211fa93b3ef5a5f8752fb6f150d531a 100644 |
--- a/chrome/renderer/autofill/password_autofill_agent_browsertest.cc |
+++ b/chrome/renderer/autofill/password_autofill_agent_browsertest.cc |
@@ -10,6 +10,7 @@ |
#include "components/autofill/content/renderer/form_autofill_util.h" |
#include "components/autofill/content/renderer/password_autofill_agent.h" |
#include "components/autofill/content/renderer/test_password_autofill_agent.h" |
+#include "components/autofill/core/common/autofill_constants.h" |
#include "components/autofill/core/common/form_data.h" |
#include "components/autofill/core/common/form_field_data.h" |
#include "content/public/renderer/render_frame.h" |
@@ -410,12 +411,13 @@ class PasswordAutofillAgentTest : public ChromeRenderViewTest { |
render_thread_->sink().GetFirstMessageMatching( |
AutofillHostMsg_ShowPasswordSuggestions::ID); |
EXPECT_TRUE(message); |
- Tuple5<int, base::i18n::TextDirection, base::string16, bool, gfx::RectF> |
+ Tuple5<int, base::i18n::TextDirection, base::string16, int, gfx::RectF> |
args; |
AutofillHostMsg_ShowPasswordSuggestions::Read(message, &args); |
EXPECT_EQ(kPasswordFillFormDataId, args.a); |
EXPECT_EQ(ASCIIToUTF16(username), args.c); |
- EXPECT_EQ(show_all, args.d); |
+ int options = args.d; |
+ EXPECT_EQ(show_all, static_cast<bool>(options & autofill::SHOW_ALL)); |
render_thread_->sink().ClearMessages(); |
} |