| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 "safe_browsing_api_handler_util.cc", | 114 "safe_browsing_api_handler_util.cc", |
| 115 "safe_browsing_api_handler_util.h", | 115 "safe_browsing_api_handler_util.h", |
| 116 ] | 116 ] |
| 117 deps = [ | 117 deps = [ |
| 118 ":metadata_proto", | 118 ":metadata_proto", |
| 119 ":util", | 119 ":util", |
| 120 "//base:base", | 120 "//base:base", |
| 121 ] | 121 ] |
| 122 } | 122 } |
| 123 | 123 |
| 124 source_set("test_database_manager") { |
| 125 sources = [ |
| 126 "test_database_manager.cc", |
| 127 "test_database_manager.h", |
| 128 ] |
| 129 deps = [ |
| 130 ":database_manager", |
| 131 "//base:base", |
| 132 ] |
| 133 } |
| 134 |
| 124 source_set("util") { | 135 source_set("util") { |
| 125 sources = [ | 136 sources = [ |
| 126 "util.cc", | 137 "util.cc", |
| 127 "util.h", | 138 "util.h", |
| 128 ] | 139 ] |
| 129 deps = [ | 140 deps = [ |
| 130 "//base", | 141 "//base", |
| 142 "//base:base", |
| 131 "//crypto", | 143 "//crypto", |
| 132 "//net", | 144 "//net", |
| 145 "//url:url", |
| 133 ] | 146 ] |
| 134 if (is_win) { | 147 if (is_win) { |
| 135 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 148 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 136 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 149 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
| 137 } | 150 } |
| 138 } | 151 } |
| 139 | 152 |
| 140 source_set("test_database_manager") { | |
| 141 sources = [ | |
| 142 "test_database_manager.cc", | |
| 143 "test_database_manager.h", | |
| 144 ] | |
| 145 deps = [ | |
| 146 ":database_manager", | |
| 147 "//base:base", | |
| 148 ] | |
| 149 } | |
| 150 | |
| 151 source_set("v4_get_hash_protocol_manager") { | 153 source_set("v4_get_hash_protocol_manager") { |
| 152 sources = [ | 154 sources = [ |
| 153 "v4_get_hash_protocol_manager.cc", | 155 "v4_get_hash_protocol_manager.cc", |
| 154 "v4_get_hash_protocol_manager.h", | 156 "v4_get_hash_protocol_manager.h", |
| 155 ] | 157 ] |
| 156 public_deps = [ | 158 public_deps = [ |
| 157 ":proto", | 159 ":proto", |
| 158 ] | 160 ] |
| 159 deps = [ | 161 deps = [ |
| 160 ":util", | 162 ":util", |
| 161 ":v4_protocol_manager_util", | 163 ":v4_protocol_manager_util", |
| 162 "//base", | 164 "//base", |
| 163 "//net", | 165 "//net", |
| 164 "//url:url", | 166 "//url:url", |
| 165 ] | 167 ] |
| 166 } | 168 } |
| 167 | 169 |
| 168 source_set("v4_protocol_manager_util") { | 170 source_set("v4_protocol_manager_util") { |
| 169 sources = [ | 171 sources = [ |
| 170 "v4_protocol_manager_util.cc", | 172 "v4_protocol_manager_util.cc", |
| 171 "v4_protocol_manager_util.h", | 173 "v4_protocol_manager_util.h", |
| 172 ] | 174 ] |
| 175 public_deps = [ |
| 176 ":proto", |
| 177 ] |
| 173 deps = [ | 178 deps = [ |
| 179 ":proto", |
| 174 "//base", | 180 "//base", |
| 175 "//net", | 181 "//net", |
| 176 "//url:url", | 182 "//url:url", |
| 183 ] |
| 184 } |
| 185 |
| 186 source_set("v4_update_protocol_manager") { |
| 187 sources = [ |
| 188 "v4_update_protocol_manager.cc", |
| 189 "v4_update_protocol_manager.h", |
| 190 ] |
| 191 deps = [ |
| 192 ":proto", |
| 193 ":util", |
| 194 ":v4_protocol_manager_util", |
| 195 "//base", |
| 196 "//net", |
| 197 "//url:url", |
| 177 ] | 198 ] |
| 178 } | 199 } |
| 179 | 200 |
| 180 source_set("unit_tests") { | 201 source_set("unit_tests") { |
| 181 testonly = true | 202 testonly = true |
| 182 sources = [ | 203 sources = [ |
| 183 "prefix_set_unittest.cc", | 204 "prefix_set_unittest.cc", |
| 184 "util_unittest.cc", | 205 "util_unittest.cc", |
| 185 "v4_get_hash_protocol_manager_unittest.cc", | 206 "v4_get_hash_protocol_manager_unittest.cc", |
| 186 "v4_protocol_manager_util_unittest.cc", | 207 "v4_protocol_manager_util_unittest.cc", |
| 187 ] | 208 ] |
| 188 deps = [ | 209 deps = [ |
| 189 ":prefix_set", | 210 ":prefix_set", |
| 190 ":proto", | 211 ":proto", |
| 191 ":util", | 212 ":util", |
| 192 ":v4_get_hash_protocol_manager", | 213 ":v4_get_hash_protocol_manager", |
| 193 ":v4_protocol_manager_util", | 214 ":v4_protocol_manager_util", |
| 215 ":v4_update_protocol_manager", |
| 194 "//base", | 216 "//base", |
| 195 "//net", | 217 "//net", |
| 196 "//net:test_support", | 218 "//net:test_support", |
| 197 "//testing/gtest", | 219 "//testing/gtest", |
| 198 "//url", | 220 "//url", |
| 199 ] | 221 ] |
| 200 if (is_win) { | 222 if (is_win) { |
| 201 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 223 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 202 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 224 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
| 203 } | 225 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 218 "//base", | 240 "//base", |
| 219 "//components/variations", | 241 "//components/variations", |
| 220 "//testing/gtest", | 242 "//testing/gtest", |
| 221 "//url", | 243 "//url", |
| 222 ] | 244 ] |
| 223 if (is_win) { | 245 if (is_win) { |
| 224 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 246 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 225 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 247 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
| 226 } | 248 } |
| 227 } | 249 } |
| OLD | NEW |