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

Unified Diff: chrome/browser/autocomplete/autocomplete_browsertest.cc

Issue 6758031: Implement a simple Extension App Omnibox provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/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);

Powered by Google App Engine
This is Rietveld 408576698