OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 static_library("omnibox") { | 7 static_library("omnibox") { |
8 sources = [ | 8 sources = [ |
9 "answers_cache.cc", | 9 "answers_cache.cc", |
10 "answers_cache.h", | 10 "answers_cache.h", |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 ] | 91 ] |
92 } | 92 } |
93 | 93 |
94 proto_library("in_memory_url_index_cache_proto") { | 94 proto_library("in_memory_url_index_cache_proto") { |
95 sources = [ | 95 sources = [ |
96 "in_memory_url_index_cache.proto", | 96 "in_memory_url_index_cache.proto", |
97 ] | 97 ] |
98 } | 98 } |
99 | 99 |
100 static_library("test_support") { | 100 static_library("test_support") { |
| 101 testonly = true |
101 sources = [ | 102 sources = [ |
| 103 "mock_autocomplete_provider_client.cc", |
| 104 "mock_autocomplete_provider_client.h", |
102 "test_scheme_classifier.cc", | 105 "test_scheme_classifier.cc", |
103 "test_scheme_classifier.h", | 106 "test_scheme_classifier.h", |
104 ] | 107 ] |
105 | 108 |
106 deps = [ | 109 deps = [ |
107 ":omnibox", | 110 ":omnibox", |
108 "//base", | 111 "//base", |
109 "//components/metrics/proto", | 112 "//components/metrics/proto", |
| 113 "//testing/gmock", |
110 ] | 114 ] |
111 } | 115 } |
112 | 116 |
113 source_set("unit_tests") { | 117 source_set("unit_tests") { |
114 testonly = true | 118 testonly = true |
115 sources = [ | 119 sources = [ |
116 "answers_cache_unittest.cc", | 120 "answers_cache_unittest.cc", |
117 "autocomplete_input_unittest.cc", | 121 "autocomplete_input_unittest.cc", |
118 "autocomplete_match_unittest.cc", | 122 "autocomplete_match_unittest.cc", |
119 "autocomplete_result_unittest.cc", | 123 "autocomplete_result_unittest.cc", |
120 "base_search_provider_unittest.cc", | 124 "base_search_provider_unittest.cc", |
121 "in_memory_url_index_types_unittest.cc", | 125 "in_memory_url_index_types_unittest.cc", |
122 "keyword_provider_unittest.cc", | 126 "keyword_provider_unittest.cc", |
123 "omnibox_field_trial_unittest.cc", | 127 "omnibox_field_trial_unittest.cc", |
124 "suggestion_answer_unittest.cc", | 128 "suggestion_answer_unittest.cc", |
125 ] | 129 ] |
126 | 130 |
127 deps = [ | 131 deps = [ |
128 ":omnibox", | 132 ":omnibox", |
129 ":test_support", | 133 ":test_support", |
130 "//testing/gmock", | 134 "//testing/gmock", |
131 "//testing/gtest", | 135 "//testing/gtest", |
132 ] | 136 ] |
133 } | 137 } |
OLD | NEW |