| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 source_set("database_manager") { | 45 source_set("database_manager") { |
| 46 sources = [ | 46 sources = [ |
| 47 "database_manager.cc", | 47 "database_manager.cc", |
| 48 "database_manager.h", | 48 "database_manager.h", |
| 49 ] | 49 ] |
| 50 deps = [ | 50 deps = [ |
| 51 ":hit_report", | 51 ":hit_report", |
| 52 ":util", | 52 ":util", |
| 53 ":v4_get_hash_protocol_manager", | 53 ":v4_get_hash_protocol_manager", |
| 54 ":v4_update_protocol_manager", |
| 54 "//base:base", | 55 "//base:base", |
| 55 "//content/public/browser", | 56 "//content/public/browser", |
| 56 "//content/public/common", | 57 "//content/public/common", |
| 57 "//net", | 58 "//net", |
| 58 "//url:url", | 59 "//url:url", |
| 59 ] | 60 ] |
| 60 } | 61 } |
| 61 | 62 |
| 62 source_set("hit_report") { | 63 source_set("hit_report") { |
| 63 sources = [ | 64 sources = [ |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 "safe_browsing_api_handler_util.cc", | 117 "safe_browsing_api_handler_util.cc", |
| 117 "safe_browsing_api_handler_util.h", | 118 "safe_browsing_api_handler_util.h", |
| 118 ] | 119 ] |
| 119 deps = [ | 120 deps = [ |
| 120 ":metadata_proto", | 121 ":metadata_proto", |
| 121 ":util", | 122 ":util", |
| 122 "//base:base", | 123 "//base:base", |
| 123 ] | 124 ] |
| 124 } | 125 } |
| 125 | 126 |
| 127 source_set("test_database_manager") { |
| 128 sources = [ |
| 129 "test_database_manager.cc", |
| 130 "test_database_manager.h", |
| 131 ] |
| 132 deps = [ |
| 133 ":database_manager", |
| 134 "//base:base", |
| 135 ] |
| 136 } |
| 137 |
| 126 source_set("util") { | 138 source_set("util") { |
| 127 sources = [ | 139 sources = [ |
| 128 "util.cc", | 140 "util.cc", |
| 129 "util.h", | 141 "util.h", |
| 130 ] | 142 ] |
| 131 deps = [ | 143 deps = [ |
| 132 "//base", | 144 "//base", |
| 145 "//base:base", |
| 133 "//crypto", | 146 "//crypto", |
| 134 "//net", | 147 "//net", |
| 148 "//url:url", |
| 135 ] | 149 ] |
| 136 if (is_win) { | 150 if (is_win) { |
| 137 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 151 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 138 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 152 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
| 139 } | 153 } |
| 140 } | 154 } |
| 141 | 155 |
| 142 source_set("test_database_manager") { | |
| 143 sources = [ | |
| 144 "test_database_manager.cc", | |
| 145 "test_database_manager.h", | |
| 146 ] | |
| 147 deps = [ | |
| 148 ":database_manager", | |
| 149 "//base:base", | |
| 150 "//net", | |
| 151 ] | |
| 152 } | |
| 153 | |
| 154 source_set("v4_get_hash_protocol_manager") { | 156 source_set("v4_get_hash_protocol_manager") { |
| 155 sources = [ | 157 sources = [ |
| 156 "v4_get_hash_protocol_manager.cc", | 158 "v4_get_hash_protocol_manager.cc", |
| 157 "v4_get_hash_protocol_manager.h", | 159 "v4_get_hash_protocol_manager.h", |
| 158 ] | 160 ] |
| 159 public_deps = [ | 161 public_deps = [ |
| 160 ":proto", | 162 ":proto", |
| 161 ] | 163 ] |
| 162 deps = [ | 164 deps = [ |
| 163 ":util", | 165 ":util", |
| 164 ":v4_protocol_manager_util", | 166 ":v4_protocol_manager_util", |
| 165 "//base", | 167 "//base", |
| 166 "//net", | 168 "//net", |
| 167 "//url:url", | 169 "//url:url", |
| 168 ] | 170 ] |
| 169 } | 171 } |
| 170 | 172 |
| 171 source_set("v4_protocol_manager_util") { | 173 source_set("v4_protocol_manager_util") { |
| 172 sources = [ | 174 sources = [ |
| 173 "v4_protocol_manager_util.cc", | 175 "v4_protocol_manager_util.cc", |
| 174 "v4_protocol_manager_util.h", | 176 "v4_protocol_manager_util.h", |
| 175 ] | 177 ] |
| 178 public_deps = [ |
| 179 ":proto", |
| 180 ] |
| 176 deps = [ | 181 deps = [ |
| 182 ":proto", |
| 177 "//base", | 183 "//base", |
| 178 "//net", | 184 "//net", |
| 179 "//url:url", | 185 "//url:url", |
| 180 ] | 186 ] |
| 181 } | 187 } |
| 182 | 188 |
| 183 source_set("v4_get_hash_protocol_manager") { | 189 source_set("v4_update_protocol_manager") { |
| 184 sources = [ | 190 sources = [ |
| 185 "v4_get_hash_protocol_manager.cc", | 191 "v4_update_protocol_manager.cc", |
| 186 "v4_get_hash_protocol_manager.h", | 192 "v4_update_protocol_manager.h", |
| 187 ] | |
| 188 public_deps = [ | |
| 189 ":proto", | |
| 190 ] | 193 ] |
| 191 deps = [ | 194 deps = [ |
| 195 ":proto", |
| 192 ":util", | 196 ":util", |
| 193 ":v4_protocol_manager_util", | 197 ":v4_protocol_manager_util", |
| 194 "//base", | 198 "//base", |
| 195 "//net", | 199 "//net", |
| 196 "//url:url", | 200 "//url:url", |
| 197 ] | |
| 198 } | |
| 199 | |
| 200 source_set("v4_protocol_manager_util") { | |
| 201 sources = [ | |
| 202 "v4_protocol_manager_util.cc", | |
| 203 "v4_protocol_manager_util.h", | |
| 204 ] | |
| 205 deps = [ | |
| 206 "//base", | |
| 207 "//net", | |
| 208 "//url:url", | |
| 209 ] | 201 ] |
| 210 } | 202 } |
| 211 | 203 |
| 212 source_set("unit_tests") { | 204 source_set("unit_tests") { |
| 213 testonly = true | 205 testonly = true |
| 214 sources = [ | 206 sources = [ |
| 215 "prefix_set_unittest.cc", | 207 "prefix_set_unittest.cc", |
| 216 "util_unittest.cc", | 208 "util_unittest.cc", |
| 217 "v4_get_hash_protocol_manager_unittest.cc", | 209 "v4_get_hash_protocol_manager_unittest.cc", |
| 218 "v4_protocol_manager_util_unittest.cc", | 210 "v4_protocol_manager_util_unittest.cc", |
| 211 "v4_update_protocol_manager_unittest.cc", |
| 219 ] | 212 ] |
| 220 deps = [ | 213 deps = [ |
| 221 ":prefix_set", | 214 ":prefix_set", |
| 222 ":proto", | 215 ":proto", |
| 223 ":util", | 216 ":util", |
| 224 ":v4_get_hash_protocol_manager", | 217 ":v4_get_hash_protocol_manager", |
| 225 ":v4_protocol_manager_util", | 218 ":v4_protocol_manager_util", |
| 219 ":v4_update_protocol_manager", |
| 226 "//base", | 220 "//base", |
| 227 "//net", | 221 "//net", |
| 228 "//net:test_support", | 222 "//net:test_support", |
| 229 "//testing/gtest", | 223 "//testing/gtest", |
| 230 "//url", | 224 "//url", |
| 231 ] | 225 ] |
| 232 if (is_win) { | 226 if (is_win) { |
| 233 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 227 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 234 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 228 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
| 235 } | 229 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 250 "//base", | 244 "//base", |
| 251 "//components/variations", | 245 "//components/variations", |
| 252 "//testing/gtest", | 246 "//testing/gtest", |
| 253 "//url", | 247 "//url", |
| 254 ] | 248 ] |
| 255 if (is_win) { | 249 if (is_win) { |
| 256 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 250 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 257 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 251 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
| 258 } | 252 } |
| 259 } | 253 } |
| OLD | NEW |