| 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/base_search_provider.h" | 5 #include "components/omnibox/browser/base_search_provider.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 9 #include "components/omnibox/browser/autocomplete_match.h" | 10 #include "components/omnibox/browser/autocomplete_match.h" |
| 10 #include "components/omnibox/browser/autocomplete_match_type.h" | 11 #include "components/omnibox/browser/autocomplete_match_type.h" |
| 11 #include "components/omnibox/browser/autocomplete_scheme_classifier.h" | 12 #include "components/omnibox/browser/autocomplete_scheme_classifier.h" |
| 12 #include "components/omnibox/browser/mock_autocomplete_provider_client.h" | 13 #include "components/omnibox/browser/mock_autocomplete_provider_client.h" |
| 13 #include "components/omnibox/browser/search_suggestion_parser.h" | 14 #include "components/omnibox/browser/search_suggestion_parser.h" |
| 14 #include "components/omnibox/browser/suggestion_answer.h" | 15 #include "components/omnibox/browser/suggestion_answer.h" |
| 15 #include "components/search_engines/search_terms_data.h" | 16 #include "components/search_engines/search_terms_data.h" |
| 16 #include "components/search_engines/template_url_service.h" | 17 #include "components/search_engines/template_url_service.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 EXPECT_TRUE(answer2->Equals(*match.answer)); | 159 EXPECT_TRUE(answer2->Equals(*match.answer)); |
| 159 EXPECT_EQ(AutocompleteMatchType::SEARCH_HISTORY, match.type); | 160 EXPECT_EQ(AutocompleteMatchType::SEARCH_HISTORY, match.type); |
| 160 EXPECT_EQ(1300, match.relevance); | 161 EXPECT_EQ(1300, match.relevance); |
| 161 | 162 |
| 162 EXPECT_EQ(answer_contents, duplicate.answer_contents); | 163 EXPECT_EQ(answer_contents, duplicate.answer_contents); |
| 163 EXPECT_EQ(answer_type, duplicate.answer_type); | 164 EXPECT_EQ(answer_type, duplicate.answer_type); |
| 164 EXPECT_TRUE(answer->Equals(*duplicate.answer)); | 165 EXPECT_TRUE(answer->Equals(*duplicate.answer)); |
| 165 EXPECT_EQ(AutocompleteMatchType::SEARCH_SUGGEST, duplicate.type); | 166 EXPECT_EQ(AutocompleteMatchType::SEARCH_SUGGEST, duplicate.type); |
| 166 EXPECT_EQ(850, duplicate.relevance); | 167 EXPECT_EQ(850, duplicate.relevance); |
| 167 } | 168 } |
| OLD | NEW |