Index: chrome/browser/autocomplete/autocomplete_edit_unittest.cc |
diff --git a/chrome/browser/autocomplete/autocomplete_edit_unittest.cc b/chrome/browser/autocomplete/autocomplete_edit_unittest.cc |
index 18171a616af7b7613f472717fdbe03b30eac3de0..3bb737541e0063b83acee8e6697952decd918182 100644 |
--- a/chrome/browser/autocomplete/autocomplete_edit_unittest.cc |
+++ b/chrome/browser/autocomplete/autocomplete_edit_unittest.cc |
@@ -134,11 +134,16 @@ TEST(AutocompleteEditTest, AdjustTextForCopy) { |
// Tests that we don't get double http if the user manually inserts http. |
{ "a.de/", 0, false, "http://a.de/", "http://a.de/", true, "http://a.de/" }, |
+ |
+ // Makes sure intranet urls get 'http://' prefixed to them. |
+ { "b/foo", 0, true, "b/foo", "http://b/foo", true, "http://b/foo" }, |
Peter Kasting
2011/08/30 23:04:05
Will this test actually work? I'd think the class
|
}; |
TestingOmniboxView view; |
TestingAutocompleteEditController controller; |
TestingProfile profile; |
AutocompleteEditModel model(&view, &controller, &profile); |
+ profile.CreateAutocompleteClassifier(); |
+ profile.CreateTemplateURLService(); |
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(input); ++i) { |
model.UpdatePermanentText(ASCIIToUTF16(input[i].perm_text)); |