Chromium Code Reviews| Index: chrome/browser/autocomplete/history_url_provider_unittest.cc |
| =================================================================== |
| --- chrome/browser/autocomplete/history_url_provider_unittest.cc (revision 97032) |
| +++ chrome/browser/autocomplete/history_url_provider_unittest.cc (working copy) |
| @@ -8,6 +8,7 @@ |
| #include "base/string_util.h" |
| #include "base/utf_string_conversions.h" |
| #include "chrome/browser/autocomplete/autocomplete_match.h" |
| +#include "chrome/browser/autocomplete/history_quick_provider.h" |
| #include "chrome/browser/autocomplete/history_url_provider.h" |
| #include "chrome/browser/history/history.h" |
| #include "chrome/test/base/testing_browser_process.h" |
| @@ -35,7 +36,7 @@ |
| {"http://kerneltrap.org/not_very_popular.html", "Less popular", 4, 0}, |
| // Unpopular pages should not appear in the results at all. |
| - {"http://freshmeat.net/unpopular.html", "Unpopular", 1, 1}, |
| + {"http://freshmeat.net/unpopular.html", "Unpopular", 1, 0}, |
| // If a host has a match, we should pick it up during host synthesis. |
| {"http://news.google.com/?ned=us&topic=n", "Google News - U.S.", 2, 2}, |
| @@ -151,6 +152,7 @@ |
| } |
| void HistoryURLProviderTest::SetUpImpl(bool no_db) { |
| + HistoryQuickProvider::set_disabled(); |
|
GeorgeY
2011/08/18 21:34:37
That is a problem. HistoryQuickProvider's unit-tes
|
| profile_.reset(new TestingProfile()); |
| profile_->CreateHistoryService(true, no_db); |
| history_service_ = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS); |
| @@ -297,6 +299,7 @@ |
| const std::string short_5a[] = { |
| "http://gooey/", |
| "http://www.google.com/", |
| + "http://go/", |
| }; |
| const std::string short_5b[] = { |
| "http://go/", |