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 group("safe_browsing_db") { | 5 group("safe_browsing_db") { |
6 deps = [ | 6 deps = [ |
7 ":prefix_set", | 7 ":prefix_set", |
8 ":safe_browsing_db_util", | 8 ":util", |
9 ] | 9 ] |
10 } | 10 } |
11 | 11 |
12 source_set("prefix_set") { | 12 source_set("prefix_set") { |
13 sources = [ | 13 sources = [ |
14 "prefix_set.cc", | 14 "prefix_set.cc", |
15 "prefix_set.h", | 15 "prefix_set.h", |
16 ] | 16 ] |
17 deps = [ | 17 deps = [ |
18 "//base", | 18 "//base", |
19 ] | 19 ] |
20 } | 20 } |
21 | 21 |
22 source_set("safe_browsing_db_util") { | 22 source_set("util") { |
23 sources = [ | 23 sources = [ |
24 "safe_browsing_db_util.cc", | 24 "util.cc", |
25 "safe_browsing_db_util.h", | 25 "util.h", |
26 ] | 26 ] |
27 deps = [ | 27 deps = [ |
28 "//base", | 28 "//base", |
29 "//crypto", | 29 "//crypto", |
30 ] | 30 ] |
31 } | 31 } |
32 | 32 |
33 source_set("unit_tests") { | 33 source_set("unit_tests") { |
34 testonly = true | 34 testonly = true |
35 sources = [ | 35 sources = [ |
36 "prefix_set_unittest.cc", | 36 "prefix_set_unittest.cc", |
37 "safe_browsing_db_util_unittest.cc", | 37 "util_unittest.cc", |
38 ] | 38 ] |
39 deps = [ | 39 deps = [ |
40 ":prefix_set", | 40 ":prefix_set", |
41 ":safe_browsing_db_util", | 41 ":util", |
42 "//base", | 42 "//base", |
43 "//testing/gtest", | 43 "//testing/gtest", |
44 ] | 44 ] |
45 if (is_win) { | 45 if (is_win) { |
46 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 46 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
47 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 47 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
48 } | 48 } |
49 } | 49 } |
OLD | NEW |