Chromium Code Reviews| Index: chrome/browser/autocomplete/autocomplete_browsertest.cc |
| =================================================================== |
| --- chrome/browser/autocomplete/autocomplete_browsertest.cc (revision 79981) |
| +++ chrome/browser/autocomplete/autocomplete_browsertest.cc (working copy) |
| @@ -114,7 +114,10 @@ |
| EXPECT_TRUE(location_bar->location_entry()->GetText().empty()); |
| EXPECT_TRUE(location_bar->location_entry()->IsSelectAll()); |
| const AutocompleteResult& result = autocomplete_controller->result(); |
| - ASSERT_EQ(1U, result.size()) << AutocompleteResultAsString(result); |
| + // We get two matches because we have a provider for extension apps and the |
| + // Chrome Web Store is a built-in Extension app. For this test, we only care |
| + // about the other match. |
| + ASSERT_EQ(2U, result.size()) << AutocompleteResultAsString(result); |
|
Peter Kasting
2011/04/04 19:35:32
Nit: Maybe ASSERT_GE(result.size(), 1U)?
Finnur
2011/04/05 15:50:24
Done.
|
| AutocompleteMatch match = result.match_at(0); |
| EXPECT_EQ(AutocompleteMatch::SEARCH_WHAT_YOU_TYPED, match.type); |
| EXPECT_FALSE(match.deletable); |