| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 5 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/autocomplete/autocomplete_match.h" | 8 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 9 #include "chrome/browser/search_engines/template_url.h" | 9 #include "chrome/browser/search_engines/template_url.h" |
| 10 #include "chrome/browser/search_engines/template_url_service.h" | 10 #include "chrome/browser/search_engines/template_url_service.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 RunTest("tfoo", AutocompleteMatch::SEARCH_SUGGEST, ""); | 109 RunTest("tfoo", AutocompleteMatch::SEARCH_SUGGEST, ""); |
| 110 | 110 |
| 111 // Possible matches when the input is "t foo" | 111 // Possible matches when the input is "t foo" |
| 112 RunTest("foo", AutocompleteMatch::SEARCH_HISTORY, "t"); | 112 RunTest("foo", AutocompleteMatch::SEARCH_HISTORY, "t"); |
| 113 RunTest("foo", AutocompleteMatch::SEARCH_OTHER_ENGINE, "t"); | 113 RunTest("foo", AutocompleteMatch::SEARCH_OTHER_ENGINE, "t"); |
| 114 | 114 |
| 115 // Possible matches when the input is "k foo" | 115 // Possible matches when the input is "k foo" |
| 116 RunTest("foo", AutocompleteMatch::SEARCH_HISTORY, "k"); | 116 RunTest("foo", AutocompleteMatch::SEARCH_HISTORY, "k"); |
| 117 RunTest("foo", AutocompleteMatch::SEARCH_OTHER_ENGINE, "k"); | 117 RunTest("foo", AutocompleteMatch::SEARCH_OTHER_ENGINE, "k"); |
| 118 } | 118 } |
| OLD | NEW |