Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: chrome/browser/autofill/autofill_popup_unittest.cc

Issue 10408070: Upgrade Seperator in New Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_popup_unittest.cc
diff --git a/chrome/browser/autofill/autofill_popup_unittest.cc b/chrome/browser/autofill/autofill_popup_unittest.cc
index 5c3d731a36b82e951ef316310487a48e5c2f1392..ea3a97281570a22b9a69102b1096ddcf1cf90822 100644
--- a/chrome/browser/autofill/autofill_popup_unittest.cc
+++ b/chrome/browser/autofill/autofill_popup_unittest.cc
@@ -52,9 +52,6 @@ class TestAutofillPopupView : public AutofillPopupView {
bool RemoveSelectedLine() {
return AutofillPopupView::RemoveSelectedLine();
}
- bool IsSeparatorIndex(int index) {
- return AutofillPopupView::IsSeparatorIndex(index);
- }
MOCK_METHOD1(InvalidateRow, void(size_t));
MOCK_METHOD0(HideInternal, void());
@@ -156,19 +153,3 @@ TEST_F(AutofillPopupViewUnitTest, RemoveLine) {
autofill_popup_view_->SetSelectedLine(0);
EXPECT_TRUE(autofill_popup_view_->RemoveSelectedLine());
}
-
-TEST_F(AutofillPopupViewUnitTest, IsSeparatorIndex) {
- // Set up the popup.
- std::vector<string16> autofill_values(3, string16());
- std::vector<int> autofill_ids;
- autofill_ids.push_back(3);
- autofill_ids.push_back(WebAutofillClient::MenuItemIDClearForm);
- autofill_ids.push_back(WebAutofillClient::MenuItemIDAutofillOptions);
-
- autofill_popup_view_->Show(autofill_values, autofill_values, autofill_values,
- autofill_ids);
-
- EXPECT_FALSE(autofill_popup_view_->IsSeparatorIndex(0));
- EXPECT_TRUE(autofill_popup_view_->IsSeparatorIndex(1));
- EXPECT_FALSE(autofill_popup_view_->IsSeparatorIndex(2));
-}
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate.cc ('k') | chrome/browser/autofill/autofill_popup_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698