OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 source_set("leveldb_proto") { | 5 source_set("leveldb_proto") { |
6 sources = [ | 6 sources = [ |
7 "leveldb_database.cc", | 7 "leveldb_database.cc", |
8 "leveldb_database.h", | 8 "leveldb_database.h", |
9 "proto_database.h", | 9 "proto_database.h", |
10 "proto_database_impl.h", | 10 "proto_database_impl.h", |
11 ] | 11 ] |
12 | 12 |
13 deps = [ | 13 deps = [ |
14 "//base", | 14 "//base", |
15 "//third_party/leveldatabase", | 15 "//third_party/leveldatabase", |
16 ] | 16 ] |
17 } | 17 } |
18 | 18 |
19 source_set("test_support") { | 19 source_set("test_support") { |
20 sources = [ | 20 sources = [ |
21 "testing/fake_db.h", | 21 "testing/fake_db.h", |
22 ] | 22 ] |
23 | 23 |
24 deps = [ | 24 public_deps = [ |
25 ":leveldb_proto", | 25 ":leveldb_proto", |
26 "//components/leveldb_proto/testing/proto", | 26 "//components/leveldb_proto/testing/proto", |
27 ] | 27 ] |
28 } | 28 } |
| 29 |
| 30 source_set("unit_tests") { |
| 31 testonly = true |
| 32 sources = [ |
| 33 "proto_database_impl_unittest.cc", |
| 34 ] |
| 35 deps = [ |
| 36 ":test_support", |
| 37 "//testing/gmock", |
| 38 "//testing/gtest", |
| 39 ] |
| 40 } |
OLD | NEW |