| 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},
|
| @@ -101,8 +102,14 @@
|
| public:
|
| HistoryURLProviderTest()
|
| : ui_thread_(BrowserThread::UI, &message_loop_),
|
| - file_thread_(BrowserThread::FILE, &message_loop_) {}
|
| + file_thread_(BrowserThread::FILE, &message_loop_) {
|
| + HistoryQuickProvider::set_disabled(true);
|
| + }
|
|
|
| + virtual ~HistoryURLProviderTest() {
|
| + HistoryQuickProvider::set_disabled(false);
|
| + }
|
| +
|
| // ACProviderListener
|
| virtual void OnProviderUpdate(bool updated_matches);
|
|
|
| @@ -297,6 +304,7 @@
|
| const std::string short_5a[] = {
|
| "http://gooey/",
|
| "http://www.google.com/",
|
| + "http://go/",
|
| };
|
| const std::string short_5b[] = {
|
| "http://go/",
|
|
|