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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_popup_model_unittest.cc

Issue 8329008: Merge 102688 - Omnibox enters keyword search mode incorrectly (Closed) Base URL: svn://svn.chromium.org/chrome/branches/874/src/
Patch Set: Created 9 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_model.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_model.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698