Chromium Code Reviews| Index: chrome/browser/autocomplete/history_quick_provider_unittest.cc |
| =================================================================== |
| --- chrome/browser/autocomplete/history_quick_provider_unittest.cc (revision 85919) |
| +++ chrome/browser/autocomplete/history_quick_provider_unittest.cc (working copy) |
| @@ -222,6 +222,14 @@ |
| RunTest(text, expected_urls, expected_url); |
| } |
| +TEST_F(HistoryQuickProviderTest, NonWordLastCharacterMatch) { |
| + string16 text(ASCIIToUTF16("slashdot.org/")); |
| + std::string expected_url("http://slashdot.org/favorite_page.html"); |
|
Peter Kasting
2011/05/20 22:06:41
Remind me why this catches the bug?
|
| + std::vector<std::string> expected_urls; |
| + expected_urls.push_back(expected_url); |
| + RunTest(text, expected_urls, expected_url); |
| +} |
| + |
| TEST_F(HistoryQuickProviderTest, MultiMatch) { |
| string16 text(ASCIIToUTF16("foo")); |
| std::vector<std::string> expected_urls; |