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

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

Issue 11414303: Make Google Search autocomplete provider cursor aware. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years 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/extension_app_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/extension_app_provider_unittest.cc b/chrome/browser/autocomplete/extension_app_provider_unittest.cc
index ba9cf09537c0fc4a2b69a7f21e667857df1241cd..e03d4f2b12369a2fd5812fd7bc480f6bdeb762bb 100644
--- a/chrome/browser/autocomplete/extension_app_provider_unittest.cc
+++ b/chrome/browser/autocomplete/extension_app_provider_unittest.cc
@@ -86,8 +86,8 @@ void ExtensionAppProviderTest::RunTest(
int num_cases) {
ACMatches matches;
for (int i = 0; i < num_cases; ++i) {
- AutocompleteInput input(keyword_cases[i].input, string16(), true,
- false, true, AutocompleteInput::ALL_MATCHES);
+ AutocompleteInput input(keyword_cases[i].input, string16::npos, string16(),
+ true, false, true, AutocompleteInput::ALL_MATCHES);
app_provider_->Start(input, false);
EXPECT_TRUE(app_provider_->done());
matches = app_provider_->matches();
@@ -135,7 +135,7 @@ TEST_F(ExtensionAppProviderTest, CreateMatchSanitize) {
{ "Test\r\t\nTest", "TestTest" },
};
- AutocompleteInput input(ASCIIToUTF16("Test"), string16(),
+ AutocompleteInput input(ASCIIToUTF16("Test"), string16::npos, string16(),
true, true, true, AutocompleteInput::BEST_MATCH);
string16 url(ASCIIToUTF16("http://example.com"));
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
@@ -149,4 +149,3 @@ TEST_F(ExtensionAppProviderTest, CreateMatchSanitize) {
EXPECT_EQ(ASCIIToUTF16(cases[i].match_contents), match.contents);
}
}
-

Powered by Google App Engine
This is Rietveld 408576698