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 ":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 ":util", |
18 "//base", | 19 "//base", |
19 ] | 20 ] |
20 } | 21 } |
21 | 22 |
22 source_set("util") { | 23 source_set("util") { |
23 sources = [ | 24 sources = [ |
24 "util.cc", | 25 "util.cc", |
25 "util.h", | 26 "util.h", |
26 ] | 27 ] |
27 deps = [ | 28 deps = [ |
28 "//base", | 29 "//base", |
29 "//crypto", | 30 "//crypto", |
| 31 "//net", |
30 ] | 32 ] |
31 if (is_win) { | 33 if (is_win) { |
32 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 34 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
33 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 35 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
34 } | 36 } |
35 } | 37 } |
36 | 38 |
37 source_set("unit_tests") { | 39 source_set("unit_tests") { |
38 testonly = true | 40 testonly = true |
39 sources = [ | 41 sources = [ |
40 "prefix_set_unittest.cc", | 42 "prefix_set_unittest.cc", |
41 "util_unittest.cc", | 43 "util_unittest.cc", |
42 ] | 44 ] |
43 deps = [ | 45 deps = [ |
44 ":prefix_set", | 46 ":prefix_set", |
45 ":util", | 47 ":util", |
46 "//base", | 48 "//base", |
47 "//testing/gtest", | 49 "//testing/gtest", |
| 50 "//url", |
48 ] | 51 ] |
49 if (is_win) { | 52 if (is_win) { |
50 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 53 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
51 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 54 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
52 } | 55 } |
53 } | 56 } |
OLD | NEW |