• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15load(
16    "//pw_build:pigweed.bzl",
17    "pw_cc_library",
18    "pw_cc_test",
19)
20
21package(default_visibility = ["//visibility:public"])
22
23licenses(["notice"])  # Apache License 2.0
24
25pw_cc_library(
26    name = "pw_blob_store",
27    srcs = [ "blob_store.cc" ],
28    hdrs = [
29        "public/pw_blob_store/blob_store.h",
30    ],
31    includes = ["public"],
32    deps = [
33        "//pw_checksum",
34        "//pw_containers",
35        "//pw_log",
36        "//pw_span",
37        "//pw_status",
38    ],
39)
40
41pw_cc_test(
42    name = "blob_store_test",
43    srcs = [
44        "blob_store_test.cc",
45    ],
46    deps = [
47        ":pw_blob_store",
48        "//pw_kvs:crc16",
49        "//pw_kvs:fake_flash",
50        "//pw_kvs:fake_flash_test_key_value_store",
51        "//pw_log",
52        "//pw_random",
53        "//pw_unit_test",
54    ],
55)
56
57pw_cc_test(
58    name = "blob_store_chunk_write_test",
59    srcs = [
60        "blob_store_chunk_write_test.cc",
61    ],
62    deps = [
63        ":pw_blob_store",
64        "//pw_kvs:crc16",
65        "//pw_kvs:fake_flash",
66        "//pw_kvs:fake_flash_test_key_value_store",
67        "//pw_log",
68        "//pw_random",
69        "//pw_unit_test",
70    ],
71)
72pw_cc_test(
73    name = "blob_store_deferred_write_test",
74    srcs = [
75        "blob_store_deferred_write_test.cc",
76    ],
77    deps = [
78        ":pw_blob_store",
79        "//pw_kvs:crc16",
80        "//pw_kvs:fake_flash",
81        "//pw_kvs:fake_flash_test_key_value_store",
82        "//pw_log",
83        "//pw_random",
84        "//pw_unit_test",
85    ],
86)
87