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

Unified Diff: components/autofill/core/browser/region_combobox_model_unittest.cc

Issue 2803443003: [Payments] Added region load failure tolerance and tests to PR editor. (Closed)
Patch Set: Rename function post-rebase Created 3 years, 8 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: components/autofill/core/browser/region_combobox_model_unittest.cc
diff --git a/components/autofill/core/browser/region_combobox_model_unittest.cc b/components/autofill/core/browser/region_combobox_model_unittest.cc
index f749e6593f833d13e79e8d52021bcd544840e690..df4c946974781fc2b420c61137af82a35bc5fa49 100644
--- a/components/autofill/core/browser/region_combobox_model_unittest.cc
+++ b/components/autofill/core/browser/region_combobox_model_unittest.cc
@@ -94,12 +94,14 @@ TEST_F(RegionComboboxModelTest, QuebecOntarioRegions) {
EXPECT_EQ(2, model()->GetItemCount());
EXPECT_EQ(base::ASCIIToUTF16(kQuebec), model()->GetItemAt(0));
EXPECT_EQ(base::ASCIIToUTF16(kOntario), model()->GetItemAt(1));
+ EXPECT_FALSE(model()->failed_to_load_data());
}
// Make sure the combo box properly support source failures.
TEST_F(RegionComboboxModelTest, FailingSource) {
SetupCombobox(true);
- EXPECT_EQ(0, model()->GetItemCount());
+ EXPECT_EQ(1, model()->GetItemCount());
+ EXPECT_TRUE(model()->failed_to_load_data());
}
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698