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

Unified Diff: chrome/browser/autocomplete/autocomplete_input_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/autocomplete_input_unittest.cc
diff --git a/chrome/browser/autocomplete/autocomplete_input_unittest.cc b/chrome/browser/autocomplete/autocomplete_input_unittest.cc
index b9a54d5d6ecc6008a3a4cef160f979c9a6687705..066af4a5c4b248f38e5a3e77ee3f2a0330da5b20 100644
--- a/chrome/browser/autocomplete/autocomplete_input_unittest.cc
+++ b/chrome/browser/autocomplete/autocomplete_input_unittest.cc
@@ -122,7 +122,8 @@ TEST(AutocompleteInputTest, InputType) {
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(input_cases); ++i) {
SCOPED_TRACE(input_cases[i].input);
AutocompleteInput input(input_cases[i].input, string16::npos, string16(),
- true, false, true, AutocompleteInput::ALL_MATCHES);
+ GURL(), true, false, true,
+ AutocompleteInput::ALL_MATCHES);
EXPECT_EQ(input_cases[i].type, input.type());
}
}
@@ -149,7 +150,7 @@ TEST(AutocompleteInputTest, InputTypeWithDesiredTLD) {
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(input_cases); ++i) {
SCOPED_TRACE(input_cases[i].input);
AutocompleteInput input(input_cases[i].input, string16::npos,
- ASCIIToUTF16("com"), true, false, true,
+ ASCIIToUTF16("com"), GURL(), true, false, true,
AutocompleteInput::ALL_MATCHES);
EXPECT_EQ(input_cases[i].type, input.type());
if (input_cases[i].type == AutocompleteInput::URL)
@@ -161,7 +162,8 @@ TEST(AutocompleteInputTest, InputTypeWithDesiredTLD) {
// crash. As long as the test completes without crashing, we're fine.
TEST(AutocompleteInputTest, InputCrash) {
AutocompleteInput input(WideToUTF16(L"\uff65@s"), string16::npos, string16(),
- true, false, true, AutocompleteInput::ALL_MATCHES);
+ GURL(), true, false, true,
+ AutocompleteInput::ALL_MATCHES);
}
TEST(AutocompleteInputTest, ParseForEmphasizeComponent) {
@@ -203,7 +205,8 @@ TEST(AutocompleteInputTest, ParseForEmphasizeComponent) {
&scheme,
&host);
AutocompleteInput input(input_cases[i].input, string16::npos, string16(),
- true, false, true, AutocompleteInput::ALL_MATCHES);
+ GURL(), true, false, true,
+ AutocompleteInput::ALL_MATCHES);
EXPECT_EQ(input_cases[i].scheme.begin, scheme.begin);
EXPECT_EQ(input_cases[i].scheme.len, scheme.len);
EXPECT_EQ(input_cases[i].host.begin, host.begin);
@@ -240,7 +243,7 @@ TEST(AutocompleteInputTest, InputTypeWithCursorPosition) {
SCOPED_TRACE(input_cases[i].input);
AutocompleteInput input(input_cases[i].input,
input_cases[i].cursor_position,
- string16(), true, false, true,
+ string16(), GURL(), true, false, true,
AutocompleteInput::ALL_MATCHES);
EXPECT_EQ(input_cases[i].normalized_input, input.text());
EXPECT_EQ(input_cases[i].normalized_cursor_position,

Powered by Google App Engine
This is Rietveld 408576698