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

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

Issue 7618028: Tweak typed-count Usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « chrome/browser/autocomplete/history_quick_provider.cc ('k') | chrome/browser/history/history_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/",
« no previous file with comments | « chrome/browser/autocomplete/history_quick_provider.cc ('k') | chrome/browser/history/history_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698