Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / omnibox / BUILD.gn
blob611089ca24e565214ed0540a65de12922731fdd5
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.h",
8     "answers_cache.cc",
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     "keyword_extensions_delegate.cc",
23     "keyword_extensions_delegate.h",
24     "keyword_provider.cc",
25     "keyword_provider.h",
26     "omnibox_field_trial.cc",
27     "omnibox_field_trial.h",
28     "omnibox_switches.cc",
29     "omnibox_switches.h",
30     "search_provider.cc",
31     "search_provider.h",
32     "search_suggestion_parser.cc",
33     "search_suggestion_parser.h",
34     "url_prefix.cc",
35     "url_prefix.h",
36   ]
38   deps = [
39     "//base",
40     "//components/metrics/proto",
41     "//components/resources",
42     "//components/search_engines",
43     "//components/strings",
44     "//components/url_fixer",
45     "//components/variations",
46     "//net",
47     "//ui/base",
48     "//url",
49   ]
51   forward_dependent_configs_from = [
52     "//components/metrics/proto",
53   ]
56 static_library("test_support") {
57   sources = [
58     "test_scheme_classifier.cc",
59     "test_scheme_classifier.h",
60   ]
62   deps = [
63     ":omnibox",
64     "//base",
65     "//components/metrics/proto",
66   ]
69 source_set("unit_tests") {
70   sources = [
71     "answers_cache_unittest.cc",
72     "autocomplete_input_unittest.cc",
73     "autocomplete_match_unittest.cc",
74     "autocomplete_result_unittest.cc",
75     "keyword_provider_unittest.cc",
76     "omnibox_field_trial_unittest.cc",
77   ]
79   deps = [
80     ":omnibox",
81     ":test_support",
82     "//testing/gtest",
83   ]