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 "components/omnibox/browser/history_url_provider.h" | 5 #include "components/omnibox/browser/history_url_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
| 11 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
11 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.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 "base/time/time.h" | 17 #include "base/time/time.h" |
15 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" | 18 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |
16 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 19 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
17 #include "chrome/browser/history/history_service_factory.h" | 20 #include "chrome/browser/history/history_service_factory.h" |
18 #include "chrome/browser/search_engines/chrome_template_url_service_client.h" | 21 #include "chrome/browser/search_engines/chrome_template_url_service_client.h" |
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 // the default experimental scoring. | 1109 // the default experimental scoring. |
1107 autocomplete_->scoring_params_.experimental_scoring_enabled = true; | 1110 autocomplete_->scoring_params_.experimental_scoring_enabled = true; |
1108 ASSERT_NO_FATAL_FAILURE(RunTest(ASCIIToUTF16(test_cases[i].input), | 1111 ASSERT_NO_FATAL_FAILURE(RunTest(ASCIIToUTF16(test_cases[i].input), |
1109 std::string(), false, output, max_matches)); | 1112 std::string(), false, output, max_matches)); |
1110 for (int j = 0; j < max_matches; ++j) { | 1113 for (int j = 0; j < max_matches; ++j) { |
1111 EXPECT_EQ(test_cases[i].matches[j].experiment_relevance, | 1114 EXPECT_EQ(test_cases[i].matches[j].experiment_relevance, |
1112 matches_[j].relevance); | 1115 matches_[j].relevance); |
1113 } | 1116 } |
1114 } | 1117 } |
1115 } | 1118 } |
OLD | NEW |