Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / components / autofill / content / browser / content_autofill_driver_unittest.cc
index c116cfc..24e54f1 100644 (file)
@@ -170,11 +170,6 @@ class ContentAutofillDriverTest : public content::RenderViewHostTestHarness {
                                                         &autofill_param))
           return false;
         break;
-      case AutofillMsg_AcceptPasswordAutofillSuggestion::ID:
-        if (!AutofillMsg_AcceptPasswordAutofillSuggestion::Read(
-                message, &autofill_param))
-          return false;
-        break;
       default:
         NOTREACHED();
     }
@@ -295,15 +290,6 @@ TEST_F(ContentAutofillDriverTest, AcceptDataListSuggestion) {
   EXPECT_EQ(input_value, output_value);
 }
 
-TEST_F(ContentAutofillDriverTest, AcceptPasswordAutofillSuggestion) {
-  base::string16 input_value(base::ASCIIToUTF16("barbaz"));
-  base::string16 output_value;
-  driver_->RendererShouldAcceptPasswordAutofillSuggestion(input_value);
-  EXPECT_TRUE(GetString16FromMessageWithID(
-      AutofillMsg_AcceptPasswordAutofillSuggestion::ID, &output_value));
-  EXPECT_EQ(input_value, output_value);
-}
-
 TEST_F(ContentAutofillDriverTest, ClearFilledFormSentToRenderer) {
   driver_->RendererShouldClearFilledForm();
   EXPECT_TRUE(HasMessageMatchingID(AutofillMsg_ClearForm::ID));