[email protected] | 5dce66d1 | 2014-07-15 19:20:06 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
brettw | 7761761 | 2016-07-13 22:40:06 | [diff] [blame] | 5 | static_library("leveldb_proto") { |
[email protected] | 5dce66d1 | 2014-07-15 19:20:06 | [diff] [blame] | 6 | sources = [ |
| 7 | "leveldb_database.cc", |
| 8 | "leveldb_database.h", |
treib | d0124d40 | 2016-11-24 21:54:35 | [diff] [blame] | 9 | "options.h", |
[email protected] | 5dce66d1 | 2014-07-15 19:20:06 | [diff] [blame] | 10 | "proto_database.h", |
| 11 | "proto_database_impl.h", |
| 12 | ] |
| 13 | |
brettw | 2629c44 | 2015-11-26 02:42:19 | [diff] [blame] | 14 | public_deps = [ |
[email protected] | 5dce66d1 | 2014-07-15 19:20:06 | [diff] [blame] | 15 | "//base", |
| 16 | "//third_party/leveldatabase", |
| 17 | ] |
| 18 | } |
| 19 | |
| 20 | source_set("test_support") { |
brettw | 2629c44 | 2015-11-26 02:42:19 | [diff] [blame] | 21 | testonly = true |
[email protected] | 5dce66d1 | 2014-07-15 19:20:06 | [diff] [blame] | 22 | sources = [ |
| 23 | "testing/fake_db.h", |
| 24 | ] |
| 25 | |
Brett Wilson | 817fec0 | 2015-08-22 20:36:49 | [diff] [blame] | 26 | public_deps = [ |
[email protected] | 5dce66d1 | 2014-07-15 19:20:06 | [diff] [blame] | 27 | ":leveldb_proto", |
brettw | 2629c44 | 2015-11-26 02:42:19 | [diff] [blame] | 28 | "//base", |
[email protected] | 5dce66d1 | 2014-07-15 19:20:06 | [diff] [blame] | 29 | "//components/leveldb_proto/testing/proto", |
| 30 | ] |
| 31 | } |
Brett Wilson | 817fec0 | 2015-08-22 20:36:49 | [diff] [blame] | 32 | |
| 33 | source_set("unit_tests") { |
| 34 | testonly = true |
| 35 | sources = [ |
| 36 | "proto_database_impl_unittest.cc", |
| 37 | ] |
| 38 | deps = [ |
| 39 | ":test_support", |
| 40 | "//testing/gmock", |
| 41 | "//testing/gtest", |
| 42 | ] |
| 43 | } |