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/builtin_provider.h" | 5 #include "components/omnibox/browser/builtin_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/macros.h" |
8 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
9 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "build/build_config.h" |
10 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" | 14 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |
11 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 15 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
12 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
13 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
14 #include "components/metrics/proto/omnibox_event.pb.h" | 18 #include "components/metrics/proto/omnibox_event.pb.h" |
15 #include "components/omnibox/browser/autocomplete_input.h" | 19 #include "components/omnibox/browser/autocomplete_input.h" |
16 #include "components/omnibox/browser/autocomplete_match.h" | 20 #include "components/omnibox/browser/autocomplete_match.h" |
17 #include "components/omnibox/browser/autocomplete_provider.h" | 21 #include "components/omnibox/browser/autocomplete_provider.h" |
18 #include "content/public/test/test_browser_thread_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 {kSettings + kPage1.substr(0, 1), 2, {kURL1, kURL2}}, | 329 {kSettings + kPage1.substr(0, 1), 2, {kURL1, kURL2}}, |
326 {kSettings + kPage1.substr(0, 2), 1, {kURL1}}, | 330 {kSettings + kPage1.substr(0, 2), 1, {kURL1}}, |
327 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}}, | 331 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}}, |
328 {kSettings + kPage1, 1, {kURL1}}, | 332 {kSettings + kPage1, 1, {kURL1}}, |
329 {kSettings + kPage2, 1, {kURL2}}, | 333 {kSettings + kPage2, 1, {kURL2}}, |
330 }; | 334 }; |
331 | 335 |
332 RunTest(settings_subpage_cases, arraysize(settings_subpage_cases)); | 336 RunTest(settings_subpage_cases, arraysize(settings_subpage_cases)); |
333 } | 337 } |
334 #endif | 338 #endif |
OLD | NEW |