| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/search_provider.h" | 5 #include "chrome/browser/autocomplete/search_provider.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "chrome/browser/search_engines/template_url_service.h" | 31 #include "chrome/browser/search_engines/template_url_service.h" |
| 32 #include "chrome/browser/search_engines/template_url_service_factory.h" | 32 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 33 #include "chrome/browser/signin/signin_manager_factory.h" | 33 #include "chrome/browser/signin/signin_manager_factory.h" |
| 34 #include "chrome/browser/sync/profile_sync_service.h" | 34 #include "chrome/browser/sync/profile_sync_service.h" |
| 35 #include "chrome/browser/sync/profile_sync_service_factory.h" | 35 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 36 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
| 37 #include "chrome/common/metrics/variations/variations_util.h" | 37 #include "chrome/common/metrics/variations/variations_util.h" |
| 38 #include "chrome/common/pref_names.h" | 38 #include "chrome/common/pref_names.h" |
| 39 #include "chrome/test/base/testing_browser_process.h" | 39 #include "chrome/test/base/testing_browser_process.h" |
| 40 #include "chrome/test/base/testing_profile.h" | 40 #include "chrome/test/base/testing_profile.h" |
| 41 #include "components/bookmarks/bookmark_pref_names.h" |
| 41 #include "components/signin/core/browser/signin_manager.h" | 42 #include "components/signin/core/browser/signin_manager.h" |
| 42 #include "components/sync_driver/pref_names.h" | 43 #include "components/sync_driver/pref_names.h" |
| 43 #include "components/variations/entropy_provider.h" | 44 #include "components/variations/entropy_provider.h" |
| 44 #include "content/public/test/test_browser_thread_bundle.h" | 45 #include "content/public/test/test_browser_thread_bundle.h" |
| 45 #include "net/url_request/test_url_fetcher_factory.h" | 46 #include "net/url_request/test_url_fetcher_factory.h" |
| 46 #include "net/url_request/url_request_status.h" | 47 #include "net/url_request/url_request_status.h" |
| 47 #include "testing/gtest/include/gtest/gtest.h" | 48 #include "testing/gtest/include/gtest/gtest.h" |
| 48 | 49 |
| 49 using base::ASCIIToUTF16; | 50 using base::ASCIIToUTF16; |
| 50 | 51 |
| (...skipping 4093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4144 // Verbatim match duplicates are added such that each one has a higher | 4145 // Verbatim match duplicates are added such that each one has a higher |
| 4145 // relevance than the previous one. | 4146 // relevance than the previous one. |
| 4146 EXPECT_EQ(2U, verbatim.duplicate_matches.size()); | 4147 EXPECT_EQ(2U, verbatim.duplicate_matches.size()); |
| 4147 | 4148 |
| 4148 // Other match duplicates are added in descending relevance order. | 4149 // Other match duplicates are added in descending relevance order. |
| 4149 EXPECT_EQ(1U, match_alpha.duplicate_matches.size()); | 4150 EXPECT_EQ(1U, match_alpha.duplicate_matches.size()); |
| 4150 EXPECT_EQ(1U, match_avid.duplicate_matches.size()); | 4151 EXPECT_EQ(1U, match_avid.duplicate_matches.size()); |
| 4151 | 4152 |
| 4152 EXPECT_EQ(0U, match_apricot.duplicate_matches.size()); | 4153 EXPECT_EQ(0U, match_apricot.duplicate_matches.size()); |
| 4153 } | 4154 } |
| OLD | NEW |