| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 sources = [ | 72 sources = [ |
| 73 "prefix_set.cc", | 73 "prefix_set.cc", |
| 74 "prefix_set.h", | 74 "prefix_set.h", |
| 75 ] | 75 ] |
| 76 deps = [ | 76 deps = [ |
| 77 ":util", | 77 ":util", |
| 78 "//base", | 78 "//base", |
| 79 ] | 79 ] |
| 80 } | 80 } |
| 81 | 81 |
| 82 source_set("v4_protocol_manager") { |
| 83 sources = [ |
| 84 "v4_protocol_manager.cc", |
| 85 "v4_protocol_manager.h", |
| 86 ] |
| 87 deps = [ |
| 88 ":proto", |
| 89 ":util", |
| 90 "//base", |
| 91 "//net", |
| 92 "//url:url", |
| 93 ] |
| 94 } |
| 95 |
| 82 source_set("remote_database_manager") { | 96 source_set("remote_database_manager") { |
| 83 sources = [ | 97 sources = [ |
| 84 "remote_database_manager.cc", | 98 "remote_database_manager.cc", |
| 85 "remote_database_manager.h", | 99 "remote_database_manager.h", |
| 86 ] | 100 ] |
| 87 deps = [ | 101 deps = [ |
| 88 ":database_manager", | 102 ":database_manager", |
| 89 ":safe_browsing_api_handler", | 103 ":safe_browsing_api_handler", |
| 90 "//base:base", | 104 "//base:base", |
| 91 "//components/variations", | 105 "//components/variations", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 ":database_manager", | 157 ":database_manager", |
| 144 "//base:base", | 158 "//base:base", |
| 145 ] | 159 ] |
| 146 } | 160 } |
| 147 | 161 |
| 148 source_set("unit_tests") { | 162 source_set("unit_tests") { |
| 149 testonly = true | 163 testonly = true |
| 150 sources = [ | 164 sources = [ |
| 151 "prefix_set_unittest.cc", | 165 "prefix_set_unittest.cc", |
| 152 "util_unittest.cc", | 166 "util_unittest.cc", |
| 167 "v4_protocol_manager_unittest.cc", |
| 153 ] | 168 ] |
| 154 deps = [ | 169 deps = [ |
| 155 ":prefix_set", | 170 ":prefix_set", |
| 171 ":proto", |
| 156 ":util", | 172 ":util", |
| 173 ":v4_protocol_manager", |
| 157 "//base", | 174 "//base", |
| 175 "//net", |
| 176 "//net:test_support", |
| 158 "//testing/gtest", | 177 "//testing/gtest", |
| 159 "//url", | 178 "//url", |
| 160 ] | 179 ] |
| 161 if (is_win) { | 180 if (is_win) { |
| 162 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 181 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 163 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 182 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
| 164 } | 183 } |
| 165 } | 184 } |
| 166 | 185 |
| 167 source_set("unit_tests_mobile") { | 186 source_set("unit_tests_mobile") { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 179 "//base", | 198 "//base", |
| 180 "//components/variations", | 199 "//components/variations", |
| 181 "//testing/gtest", | 200 "//testing/gtest", |
| 182 "//url", | 201 "//url", |
| 183 ] | 202 ] |
| 184 if (is_win) { | 203 if (is_win) { |
| 185 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 204 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 186 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 205 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
| 187 } | 206 } |
| 188 } | 207 } |
| OLD | NEW |