blob: 8c4a637a96a4f46d4eb231412bfc881beeb753dc [file] [log] [blame]
[email protected]5dce66d12014-07-15 19:20:061# 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
brettw77617612016-07-13 22:40:065static_library("leveldb_proto") {
[email protected]5dce66d12014-07-15 19:20:066 sources = [
7 "leveldb_database.cc",
8 "leveldb_database.h",
treibd0124d402016-11-24 21:54:359 "options.h",
[email protected]5dce66d12014-07-15 19:20:0610 "proto_database.h",
11 "proto_database_impl.h",
12 ]
13
brettw2629c442015-11-26 02:42:1914 public_deps = [
[email protected]5dce66d12014-07-15 19:20:0615 "//base",
16 "//third_party/leveldatabase",
17 ]
18}
19
20source_set("test_support") {
brettw2629c442015-11-26 02:42:1921 testonly = true
[email protected]5dce66d12014-07-15 19:20:0622 sources = [
23 "testing/fake_db.h",
24 ]
25
Brett Wilson817fec02015-08-22 20:36:4926 public_deps = [
[email protected]5dce66d12014-07-15 19:20:0627 ":leveldb_proto",
brettw2629c442015-11-26 02:42:1928 "//base",
[email protected]5dce66d12014-07-15 19:20:0629 "//components/leveldb_proto/testing/proto",
30 ]
31}
Brett Wilson817fec02015-08-22 20:36:4932
33source_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}