OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 proto_library("proto") { | 7 proto_library("proto") { |
8 sources = [ | 8 sources = [ |
9 "safebrowsing.proto", | 9 "safebrowsing.proto", |
10 ] | 10 ] |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 sources = [ | 75 sources = [ |
76 "prefix_set.cc", | 76 "prefix_set.cc", |
77 "prefix_set.h", | 77 "prefix_set.h", |
78 ] | 78 ] |
79 deps = [ | 79 deps = [ |
80 ":util", | 80 ":util", |
81 "//base", | 81 "//base", |
82 ] | 82 ] |
83 } | 83 } |
84 | 84 |
85 source_set("v4_get_hash_protocol_manager") { | |
86 sources = [ | |
87 "v4_get_hash_protocol_manager.cc", | |
88 "v4_get_hash_protocol_manager.h", | |
89 ] | |
90 deps = [ | |
91 ":proto", | |
92 ":util", | |
93 "//base", | |
94 "//net", | |
95 "//url:url", | |
96 ] | |
97 } | |
98 | |
99 source_set("remote_database_manager") { | 85 source_set("remote_database_manager") { |
100 sources = [ | 86 sources = [ |
101 "remote_database_manager.cc", | 87 "remote_database_manager.cc", |
102 "remote_database_manager.h", | 88 "remote_database_manager.h", |
103 ] | 89 ] |
104 deps = [ | 90 deps = [ |
105 ":database_manager", | 91 ":database_manager", |
106 ":proto", | 92 ":proto", |
107 ":safe_browsing_api_handler", | 93 ":safe_browsing_api_handler", |
108 ":v4_get_hash_protocol_manager", | 94 ":v4_get_hash_protocol_manager", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 sources = [ | 143 sources = [ |
158 "test_database_manager.cc", | 144 "test_database_manager.cc", |
159 "test_database_manager.h", | 145 "test_database_manager.h", |
160 ] | 146 ] |
161 deps = [ | 147 deps = [ |
162 ":database_manager", | 148 ":database_manager", |
163 "//base:base", | 149 "//base:base", |
164 ] | 150 ] |
165 } | 151 } |
166 | 152 |
| 153 source_set("v4_get_hash_protocol_manager") { |
| 154 sources = [ |
| 155 "v4_get_hash_protocol_manager.cc", |
| 156 "v4_get_hash_protocol_manager.h", |
| 157 ] |
| 158 deps = [ |
| 159 ":proto", |
| 160 ":util", |
| 161 ":v4_protocol_manager_util", |
| 162 "//base", |
| 163 "//net", |
| 164 "//url:url", |
| 165 ] |
| 166 } |
| 167 |
| 168 source_set("v4_protocol_manager_util") { |
| 169 sources = [ |
| 170 "v4_protocol_manager_util.cc", |
| 171 "v4_protocol_manager_util.h", |
| 172 ] |
| 173 deps = [ |
| 174 "//base", |
| 175 "//net", |
| 176 "//url:url", |
| 177 ] |
| 178 } |
| 179 |
167 source_set("unit_tests") { | 180 source_set("unit_tests") { |
168 testonly = true | 181 testonly = true |
169 sources = [ | 182 sources = [ |
170 "prefix_set_unittest.cc", | 183 "prefix_set_unittest.cc", |
171 "util_unittest.cc", | 184 "util_unittest.cc", |
172 "v4_get_hash_protocol_manager_unittest.cc", | 185 "v4_get_hash_protocol_manager_unittest.cc", |
| 186 "v4_protocol_manager_util_unittest.cc", |
173 ] | 187 ] |
174 deps = [ | 188 deps = [ |
175 ":prefix_set", | 189 ":prefix_set", |
176 ":proto", | 190 ":proto", |
177 ":util", | 191 ":util", |
178 ":v4_get_hash_protocol_manager", | 192 ":v4_get_hash_protocol_manager", |
| 193 ":v4_protocol_manager_util", |
179 "//base", | 194 "//base", |
180 "//net", | 195 "//net", |
181 "//net:test_support", | 196 "//net:test_support", |
182 "//testing/gtest", | 197 "//testing/gtest", |
183 "//url", | 198 "//url", |
184 ] | 199 ] |
185 if (is_win) { | 200 if (is_win) { |
186 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 201 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
187 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 202 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
188 } | 203 } |
(...skipping 14 matching lines...) Expand all Loading... |
203 "//base", | 218 "//base", |
204 "//components/variations", | 219 "//components/variations", |
205 "//testing/gtest", | 220 "//testing/gtest", |
206 "//url", | 221 "//url", |
207 ] | 222 ] |
208 if (is_win) { | 223 if (is_win) { |
209 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 224 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
210 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 225 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
211 } | 226 } |
212 } | 227 } |
OLD | NEW |