Clean up extension confirmation prompts and make them consistent between Views and...
[chromium-blink-merge.git] / components / omnibox / BUILD.gn
blobb5c3a3216b8a2a27136044a003214a3c6cb862db
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 static_library("omnibox") {
6   sources = [
7     "answers_cache.cc",
8     "answers_cache.h",
9     "autocomplete_input.cc",
10     "autocomplete_input.h",
11     "autocomplete_match.cc",
12     "autocomplete_match.h",
13     "autocomplete_match_type.cc",
14     "autocomplete_match_type.h",
15     "autocomplete_provider.cc",
16     "autocomplete_provider.h",
17     "autocomplete_result.cc",
18     "autocomplete_result.h",
19     "autocomplete_scheme_classifier.h",
20     "base_search_provider.cc",
21     "base_search_provider.h",
22     "in_memory_url_index_types.cc",
23     "in_memory_url_index_types.h",
24     "keyword_extensions_delegate.cc",
25     "keyword_extensions_delegate.h",
26     "keyword_provider.cc",
27     "keyword_provider.h",
28     "omnibox_field_trial.cc",
29     "omnibox_field_trial.h",
30     "omnibox_log.cc",
31     "omnibox_log.h",
32     "omnibox_switches.cc",
33     "omnibox_switches.h",
34     "search_provider.cc",
35     "search_provider.h",
36     "search_suggestion_parser.cc",
37     "search_suggestion_parser.h",
38     "suggestion_answer.cc",
39     "suggestion_answer.h",
40     "url_prefix.cc",
41     "url_prefix.h",
42   ]
44   public_deps = [
45     "//components/metrics/proto",
46   ]
47   deps = [
48     "//base",
49     "//base:i18n",
50     "//components/history/core/browser",
51     "//components/resources",
52     "//components/search",
53     "//components/search_engines",
54     "//components/strings",
55     "//components/url_fixer",
56     "//components/variations",
57     "//components/variations/net",
58     "//net",
59     "//ui/base",
60     "//url",
61   ]
64 static_library("test_support") {
65   sources = [
66     "test_scheme_classifier.cc",
67     "test_scheme_classifier.h",
68   ]
70   deps = [
71     ":omnibox",
72     "//base",
73     "//components/metrics/proto",
74   ]
77 source_set("unit_tests") {
78   testonly = true
79   sources = [
80     "answers_cache_unittest.cc",
81     "autocomplete_input_unittest.cc",
82     "autocomplete_match_unittest.cc",
83     "autocomplete_result_unittest.cc",
84     "base_search_provider_unittest.cc",
85     "in_memory_url_index_types_unittest.cc",
86     "keyword_provider_unittest.cc",
87     "omnibox_field_trial_unittest.cc",
88     "suggestion_answer_unittest.cc",
89   ]
91   deps = [
92     ":omnibox",
93     ":test_support",
94     "//testing/gmock",
95     "//testing/gtest",
96   ]