BUILD.gn 955 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 2019 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. import("//third_party/protobuf/proto_library.gni")
  5. proto_library("test_proto") {
  6. testonly = true
  7. sources = [ "test_proto.proto" ]
  8. }
  9. static_library("sqlite_proto") {
  10. sources = [
  11. "key_value_data.h",
  12. "key_value_table.cc",
  13. "key_value_table.h",
  14. "proto_table_manager.cc",
  15. "proto_table_manager.h",
  16. "table_manager.cc",
  17. "table_manager.h",
  18. ]
  19. deps = [
  20. "//base",
  21. "//sql",
  22. "//third_party/protobuf:protobuf_lite",
  23. ]
  24. }
  25. source_set("unit_tests") {
  26. testonly = true
  27. sources = [
  28. "key_value_data_unittest.cc",
  29. "key_value_table_unittest.cc",
  30. "proto_table_manager_unittest.cc",
  31. ]
  32. deps = [
  33. ":sqlite_proto",
  34. ":test_proto",
  35. "//base",
  36. "//base/test:test_support",
  37. "//sql",
  38. "//testing/gmock",
  39. "//testing/gtest",
  40. ]
  41. }