summaryrefslogtreecommitdiff
path: root/chromium/components/sqlite_proto/BUILD.gn
blob: 070da6904b8ab80e905438fd9b1ee7a416bc9745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//third_party/protobuf/proto_library.gni")

proto_library("test_proto") {
  testonly = true
  sources = [ "test_proto.proto" ]
}

static_library("sqlite_proto") {
  sources = [
    "key_value_data.h",
    "key_value_table.cc",
    "key_value_table.h",
    "proto_table_manager.cc",
    "proto_table_manager.h",
    "table_manager.cc",
    "table_manager.h",
  ]
  deps = [
    "//base",
    "//sql",
    "//third_party/protobuf:protobuf_lite",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "key_value_data_unittest.cc",
    "key_value_table_unittest.cc",
    "proto_table_manager_unittest.cc",
  ]
  deps = [
    ":sqlite_proto",
    ":test_proto",
    "//base",
    "//base/test:test_support",
    "//sql",
    "//testing/gmock",
    "//testing/gtest",
  ]
}