| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/omnibox/browser/autocomplete_result.h" | 5 #include "components/omnibox/browser/autocomplete_result.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 11 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/metrics/field_trial.h" | 13 #include "base/metrics/field_trial.h" |
| 11 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 14 #include "components/metrics/proto/omnibox_event.pb.h" | 17 #include "components/metrics/proto/omnibox_event.pb.h" |
| 15 #include "components/omnibox/browser/autocomplete_input.h" | 18 #include "components/omnibox/browser/autocomplete_input.h" |
| 16 #include "components/omnibox/browser/autocomplete_match.h" | 19 #include "components/omnibox/browser/autocomplete_match.h" |
| 17 #include "components/omnibox/browser/autocomplete_match_type.h" | 20 #include "components/omnibox/browser/autocomplete_match_type.h" |
| 18 #include "components/omnibox/browser/autocomplete_provider.h" | 21 #include "components/omnibox/browser/autocomplete_provider.h" |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 matches.clear(); | 659 matches.clear(); |
| 657 | 660 |
| 658 // Case 4: Standalone verbatim match found in AutocompleteResult. | 661 // Case 4: Standalone verbatim match found in AutocompleteResult. |
| 659 PopulateAutocompleteMatchesFromTestData(kVerbatimMatches, 1, &matches); | 662 PopulateAutocompleteMatchesFromTestData(kVerbatimMatches, 1, &matches); |
| 660 PopulateAutocompleteMatchesFromTestData(kNonVerbatimMatches, 1, &matches); | 663 PopulateAutocompleteMatchesFromTestData(kNonVerbatimMatches, 1, &matches); |
| 661 result.AppendMatches(AutocompleteInput(), matches); | 664 result.AppendMatches(AutocompleteInput(), matches); |
| 662 EXPECT_TRUE(result.TopMatchIsStandaloneVerbatimMatch()); | 665 EXPECT_TRUE(result.TopMatchIsStandaloneVerbatimMatch()); |
| 663 result.Reset(); | 666 result.Reset(); |
| 664 matches.clear(); | 667 matches.clear(); |
| 665 } | 668 } |
| OLD | NEW |