summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_unittest.cc')
-rw-r--r--chrome/browser/autocomplete/autocomplete_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_unittest.cc b/chrome/browser/autocomplete/autocomplete_unittest.cc
index 1316eeb..eb15f2a 100644
--- a/chrome/browser/autocomplete/autocomplete_unittest.cc
+++ b/chrome/browser/autocomplete/autocomplete_unittest.cc
@@ -244,6 +244,12 @@ TEST(AutocompleteTest, InputType) {
}
}
+// This tests for a regression where certain input in the omnibox caused us to
+// crash. As long as the test completes without crashing, we're fine.
+TEST(AutocompleteTest, InputCrash) {
+ AutocompleteInput input(L"\uff65@s", std::wstring(), true, false, false);
+}
+
// Test that we can properly compare matches' relevance when at least one is
// negative.
TEST(AutocompleteMatch, MoreRelevant) {