OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_result.h" | 5 #include "components/omnibox/autocomplete_result.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "components/metrics/proto/omnibox_event.pb.h" | 14 #include "components/metrics/proto/omnibox_event.pb.h" |
15 #include "components/omnibox/autocomplete_input.h" | 15 #include "components/omnibox/autocomplete_input.h" |
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 result.Reset(); | 834 result.Reset(); |
835 matches.clear(); | 835 matches.clear(); |
836 | 836 |
837 // Case 5: Multiple verbatim matches found in AutocompleteResult. | 837 // Case 5: Multiple verbatim matches found in AutocompleteResult. |
838 PopulateAutocompleteMatchesFromTestData(kVerbatimMatches, | 838 PopulateAutocompleteMatchesFromTestData(kVerbatimMatches, |
839 arraysize(kVerbatimMatches), | 839 arraysize(kVerbatimMatches), |
840 &matches); | 840 &matches); |
841 result.AppendMatches(matches); | 841 result.AppendMatches(matches); |
842 EXPECT_FALSE(result.ShouldHideTopMatch()); | 842 EXPECT_FALSE(result.ShouldHideTopMatch()); |
843 } | 843 } |
OLD | NEW |