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 "chrome/browser/autocomplete/builtin_provider.h" | 5 #include "chrome/browser/autocomplete/builtin_provider.h" |
6 | 6 |
7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
12 #include "components/autocomplete/autocomplete_input.h" | |
13 #include "components/autocomplete/autocomplete_match.h" | |
14 #include "components/autocomplete/autocomplete_provider.h" | |
15 #include "components/metrics/proto/omnibox_event.pb.h" | 12 #include "components/metrics/proto/omnibox_event.pb.h" |
| 13 #include "components/omnibox/autocomplete_input.h" |
| 14 #include "components/omnibox/autocomplete_match.h" |
| 15 #include "components/omnibox/autocomplete_provider.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
18 | 18 |
19 using base::ASCIIToUTF16; | 19 using base::ASCIIToUTF16; |
20 | 20 |
21 class BuiltinProviderTest : public testing::Test { | 21 class BuiltinProviderTest : public testing::Test { |
22 protected: | 22 protected: |
23 struct TestData { | 23 struct TestData { |
24 const base::string16 input; | 24 const base::string16 input; |
25 const size_t num_results; | 25 const size_t num_results; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 {kSettings + kPage1.substr(0, 1), 2, {kURL1, kURL2}}, | 306 {kSettings + kPage1.substr(0, 1), 2, {kURL1, kURL2}}, |
307 {kSettings + kPage1.substr(0, 2), 1, {kURL1}}, | 307 {kSettings + kPage1.substr(0, 2), 1, {kURL1}}, |
308 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}}, | 308 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}}, |
309 {kSettings + kPage1, 1, {kURL1}}, | 309 {kSettings + kPage1, 1, {kURL1}}, |
310 {kSettings + kPage2, 1, {kURL2}}, | 310 {kSettings + kPage2, 1, {kURL2}}, |
311 }; | 311 }; |
312 | 312 |
313 RunTest(settings_subpage_cases, arraysize(settings_subpage_cases)); | 313 RunTest(settings_subpage_cases, arraysize(settings_subpage_cases)); |
314 } | 314 } |
315 #endif | 315 #endif |
OLD | NEW |