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/history_url_provider.h" | 5 #include "chrome/browser/autocomplete/history_url_provider.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.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 "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" | 15 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 // Test the experiment (scoring enabled). | 1063 // Test the experiment (scoring enabled). |
1064 autocomplete_->scoring_params_.experimental_scoring_enabled = true; | 1064 autocomplete_->scoring_params_.experimental_scoring_enabled = true; |
1065 ASSERT_NO_FATAL_FAILURE(RunTest(ASCIIToUTF16(test_cases[i].input), | 1065 ASSERT_NO_FATAL_FAILURE(RunTest(ASCIIToUTF16(test_cases[i].input), |
1066 std::string(), false, output, max_matches)); | 1066 std::string(), false, output, max_matches)); |
1067 for (int j = 0; j < max_matches; ++j) { | 1067 for (int j = 0; j < max_matches; ++j) { |
1068 EXPECT_EQ(test_cases[i].matches[j].experiment_relevance, | 1068 EXPECT_EQ(test_cases[i].matches[j].experiment_relevance, |
1069 matches_[j].relevance); | 1069 matches_[j].relevance); |
1070 } | 1070 } |
1071 } | 1071 } |
1072 } | 1072 } |
OLD | NEW |