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

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

Issue 12623029: Upstreaming mechanism to add query refinement to omnibox searches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed ChromeOS. Created 7 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/history_url_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/history_url_provider_unittest.cc b/chrome/browser/autocomplete/history_url_provider_unittest.cc
index 130a9f1702495c7622b1b8ea6b4f9fb6433108df..647f8c403d56c1e2f7b5820a95bb633e960a946e 100644
--- a/chrome/browser/autocomplete/history_url_provider_unittest.cc
+++ b/chrome/browser/autocomplete/history_url_provider_unittest.cc
@@ -245,7 +245,7 @@ void HistoryURLProviderTest::RunTest(const string16 text,
bool prevent_inline_autocomplete,
const std::string* expected_urls,
size_t num_results) {
- AutocompleteInput input(text, string16::npos, desired_tld,
+ AutocompleteInput input(text, string16::npos, desired_tld, GURL(),
prevent_inline_autocomplete, false, true,
AutocompleteInput::ALL_MATCHES);
autocomplete_->Start(input, false);
@@ -272,8 +272,8 @@ void HistoryURLProviderTest::RunTest(const string16 text,
void HistoryURLProviderTest::RunAdjustOffsetTest(const string16 text,
size_t expected_offset) {
- AutocompleteInput input(text, string16::npos, string16(), false, false, true,
- AutocompleteInput::ALL_MATCHES);
+ AutocompleteInput input(text, string16::npos, string16(), GURL(), false,
+ false, true, AutocompleteInput::ALL_MATCHES);
autocomplete_->Start(input, false);
if (!autocomplete_->done())
MessageLoop::current()->Run();
@@ -518,8 +518,8 @@ TEST_F(HistoryURLProviderTest, EmptyVisits) {
// Wait for history to create the in memory DB.
profile_->BlockUntilHistoryProcessesPendingRequests();
- AutocompleteInput input(ASCIIToUTF16("p"), string16::npos, string16(), false,
- false, true, AutocompleteInput::ALL_MATCHES);
+ AutocompleteInput input(ASCIIToUTF16("p"), string16::npos, string16(), GURL(),
+ false, false, true, AutocompleteInput::ALL_MATCHES);
autocomplete_->Start(input, false);
// HistoryURLProvider shouldn't be done (waiting on async results).
EXPECT_FALSE(autocomplete_->done());
@@ -555,7 +555,8 @@ TEST_F(HistoryURLProviderTestNoDB, NavigateWithoutDB) {
TEST_F(HistoryURLProviderTest, DontAutocompleteOnTrailingWhitespace) {
AutocompleteInput input(ASCIIToUTF16("slash "), string16::npos, string16(),
- false, false, true, AutocompleteInput::ALL_MATCHES);
+ GURL(), false, false, true,
+ AutocompleteInput::ALL_MATCHES);
autocomplete_->Start(input, false);
if (!autocomplete_->done())
MessageLoop::current()->Run();
@@ -684,7 +685,7 @@ TEST_F(HistoryURLProviderTest, CrashDueToFixup) {
};
for (size_t i = 0; i < arraysize(test_cases); ++i) {
AutocompleteInput input(ASCIIToUTF16(test_cases[i]), string16::npos,
- string16(), false, false, true,
+ string16(), GURL(), false, false, true,
AutocompleteInput::ALL_MATCHES);
autocomplete_->Start(input, false);
if (!autocomplete_->done())

Powered by Google App Engine
This is Rietveld 408576698