blob: 0efcade1610143938cfe248d4a624e326b49691c [file] [log] [blame]
Wyatt Hepler2ad60672020-01-21 08:00:16 -08001# 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
Rob Mohr5fc25412021-06-23 09:35:23 -070023licenses(["notice"])
Wyatt Hepler2ad60672020-01-21 08:00:16 -080024
25pw_cc_library(
26 name = "pw_kvs",
27 srcs = [
Wyatt Hepler1927c282020-02-11 16:45:02 -080028 "alignment.cc",
Wyatt Hepler4da1fcb2020-01-30 17:32:18 -080029 "checksum.cc",
Wyatt Heplerd31d9702020-02-14 08:46:36 -080030 "entry.cc",
Wyatt Hepler7ded6da2020-03-11 18:24:43 -070031 "entry_cache.cc",
Wyatt Hepler4da1fcb2020-01-30 17:32:18 -080032 "flash_memory.cc",
Wyatt Hepler22d0d9f2020-03-05 14:57:11 -080033 "format.cc",
Wyatt Hepler2ad60672020-01-21 08:00:16 -080034 "key_value_store.cc",
Wyatt Heplerbdd8e5a2020-02-20 19:27:26 -080035 "public/pw_kvs/internal/entry.h",
Wyatt Hepler7ded6da2020-03-11 18:24:43 -070036 "public/pw_kvs/internal/entry_cache.h",
Wyatt Hepler1fc11042020-02-19 17:17:51 -080037 "public/pw_kvs/internal/hash.h",
38 "public/pw_kvs/internal/key_descriptor.h",
Wyatt Hepler2454f2d2020-03-20 12:54:35 -070039 "public/pw_kvs/internal/sectors.h",
Keir Mierle0dd24a82020-02-21 16:08:59 -080040 "public/pw_kvs/internal/span_traits.h",
David Rogersca592962020-07-01 09:21:54 -070041 "pw_kvs_private/config.h",
Wyatt Heplerc84393f2020-03-20 11:23:24 -070042 "sectors.cc",
Wyatt Hepler2ad60672020-01-21 08:00:16 -080043 ],
44 hdrs = [
Wyatt Hepler1927c282020-02-11 16:45:02 -080045 "public/pw_kvs/alignment.h",
Wyatt Hepler4da1fcb2020-01-30 17:32:18 -080046 "public/pw_kvs/checksum.h",
Wyatt Heplerec4b9352020-01-31 15:51:50 -080047 "public/pw_kvs/crc16_checksum.h",
Wyatt Hepler2ad60672020-01-21 08:00:16 -080048 "public/pw_kvs/flash_memory.h",
Wyatt Hepler88adfe82020-02-20 19:33:27 -080049 "public/pw_kvs/format.h",
Wyatt Hepler06b1b0b2020-03-09 08:26:34 -070050 "public/pw_kvs/io.h",
Rob Olivere64daf42020-11-24 11:50:03 -050051 "public/pw_kvs/key.h",
Wyatt Hepler2ad60672020-01-21 08:00:16 -080052 "public/pw_kvs/key_value_store.h",
Wyatt Hepler2ad60672020-01-21 08:00:16 -080053 ],
54 includes = ["public"],
55 deps = [
David Rogersc0104462020-05-08 15:50:23 -070056 "//pw_assert",
Nathaniel Broughf91e7632021-07-26 17:12:14 +080057 "//pw_bytes",
Wyatt Hepler2ad60672020-01-21 08:00:16 -080058 "//pw_checksum",
Wyatt Hepler1c329ca2020-02-07 18:07:23 -080059 "//pw_containers",
Wyatt Hepler2ad60672020-01-21 08:00:16 -080060 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -070061 "//pw_log:facade",
62 "//pw_span",
Wyatt Hepler2ad60672020-01-21 08:00:16 -080063 "//pw_status",
Wyatt Hepler2ad60672020-01-21 08:00:16 -080064 ],
65)
66
Wyatt Heplerec4b9352020-01-31 15:51:50 -080067pw_cc_library(
68 name = "crc16",
69 hdrs = [
70 "public/pw_kvs/crc16_checksum.h",
71 ],
72 deps = [
73 ":pw_kvs",
74 "//pw_checksum",
Rob Mohr06819482020-04-06 13:25:43 -070075 "//pw_span",
Wyatt Heplerec4b9352020-01-31 15:51:50 -080076 ],
77)
78
Wyatt Heplerad684a12020-02-04 17:17:29 -080079pw_cc_library(
David Rogersd64cc012020-05-26 12:37:37 -070080 name = "fake_flash",
Wyatt Heplercdd6dfc2020-02-18 12:04:04 -080081 srcs = [
David Rogersd64cc012020-05-26 12:37:37 -070082 "fake_flash_memory.cc",
Wyatt Heplercdd6dfc2020-02-18 12:04:04 -080083 ],
Wyatt Heplerad684a12020-02-04 17:17:29 -080084 hdrs = [
David Rogersd64cc012020-05-26 12:37:37 -070085 "public/pw_kvs/fake_flash_memory.h",
Wyatt Heplerad684a12020-02-04 17:17:29 -080086 ],
Nathaniel Broughf91e7632021-07-26 17:12:14 +080087 includes = ["public"],
Wyatt Heplerad684a12020-02-04 17:17:29 -080088 deps = [
David Rogersd64cc012020-05-26 12:37:37 -070089 ":pw_kvs",
Rob Mohr06819482020-04-06 13:25:43 -070090 "//pw_containers",
Wyatt Heplerad684a12020-02-04 17:17:29 -080091 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -070092 "//pw_log:facade",
93 "//pw_span",
Wyatt Heplerad684a12020-02-04 17:17:29 -080094 "//pw_status",
95 ],
96)
97
David Rogers5cc5ce82020-03-13 19:19:03 -070098pw_cc_library(
David Rogers2d4fa782021-07-08 21:07:28 -070099 name = "fake_flash_1_aligned_partition",
David Rogersca592962020-07-01 09:21:54 -0700100 srcs = [
David Rogers6a262b42020-07-09 03:27:41 -0700101 "fake_flash_test_partition.cc",
David Rogersca592962020-07-01 09:21:54 -0700102 ],
103 hdrs = [
David Rogers6a262b42020-07-09 03:27:41 -0700104 "public/pw_kvs/flash_test_partition.h",
David Rogersca592962020-07-01 09:21:54 -0700105 ],
David Rogers2d4fa782021-07-08 21:07:28 -0700106 defines = [
107 "PW_FLASH_TEST_SECTORS=6U",
108 "PW_FLASH_TEST_SECTOR_SIZE=4096U",
109 "PW_FLASH_TEST_ALIGNMENT=1U",
110 ],
111 deps = [
112 ":fake_flash",
113 ":pw_kvs",
114 ],
115)
116
117pw_cc_library(
118 name = "fake_flash_16_aligned_partition",
119 srcs = [
120 "fake_flash_test_partition.cc",
121 ],
122 hdrs = [
123 "public/pw_kvs/flash_test_partition.h",
124 ],
125 defines = [
126 "PW_FLASH_TEST_SECTORS=6U",
127 "PW_FLASH_TEST_SECTOR_SIZE=4096U",
128 "PW_FLASH_TEST_ALIGNMENT=16",
129 ],
David Rogersca592962020-07-01 09:21:54 -0700130 deps = [
David Rogers6a262b42020-07-09 03:27:41 -0700131 ":fake_flash",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800132 ":pw_kvs",
David Rogersca592962020-07-01 09:21:54 -0700133 ],
134)
135
136pw_cc_library(
David Rogers6a262b42020-07-09 03:27:41 -0700137 name = "fake_flash_64_aligned_partition",
138 srcs = [
139 "fake_flash_test_partition.cc",
140 ],
141 hdrs = [
142 "public/pw_kvs/flash_test_partition.h",
143 ],
David Rogers2d4fa782021-07-08 21:07:28 -0700144 defines = [
145 "PW_FLASH_TEST_SECTORS=6U",
146 "PW_FLASH_TEST_SECTOR_SIZE=4096U",
147 "PW_FLASH_TEST_ALIGNMENT=64U",
148 ],
David Rogers6a262b42020-07-09 03:27:41 -0700149 deps = [
David Rogers6a262b42020-07-09 03:27:41 -0700150 ":fake_flash",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800151 ":pw_kvs",
David Rogers6a262b42020-07-09 03:27:41 -0700152 ],
David Rogers6a262b42020-07-09 03:27:41 -0700153)
154
155pw_cc_library(
156 name = "fake_flash_256_aligned_partition",
157 srcs = [
158 "fake_flash_test_partition.cc",
159 ],
160 hdrs = [
161 "public/pw_kvs/flash_test_partition.h",
162 ],
David Rogers2d4fa782021-07-08 21:07:28 -0700163 defines = [
164 "PW_FLASH_TEST_SECTORS=6U",
165 "PW_FLASH_TEST_SECTOR_SIZE=4096U",
166 "PW_FLASH_TEST_ALIGNMENT=256U",
167 ],
David Rogers6a262b42020-07-09 03:27:41 -0700168 deps = [
David Rogers6a262b42020-07-09 03:27:41 -0700169 ":fake_flash",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800170 ":pw_kvs",
David Rogers6a262b42020-07-09 03:27:41 -0700171 ],
David Rogers6a262b42020-07-09 03:27:41 -0700172)
173
174pw_cc_library(
David Rogerseaa2a692020-08-07 00:48:16 -0700175 name = "fake_flash_test_key_value_store",
176 srcs = [
177 "fake_flash_test_key_value_store.cc",
178 ],
179 hdrs = [
180 "public/pw_kvs/test_key_value_store.h",
181 ],
182 deps = [
183 ":crc16",
David Rogerseaa2a692020-08-07 00:48:16 -0700184 ":fake_flash",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800185 ":pw_kvs",
David Rogerseaa2a692020-08-07 00:48:16 -0700186 ],
187)
188
189pw_cc_library(
David Rogers5cc5ce82020-03-13 19:19:03 -0700190 name = "test_partition",
191 srcs = [
192 "flash_partition_with_stats.cc",
193 ],
194 hdrs = [
195 "public/pw_kvs/flash_partition_with_stats.h",
196 ],
197 includes = ["public"],
198 visibility = ["//visibility:private"],
199 deps = [
Rob Mohr06819482020-04-06 13:25:43 -0700200 "//pw_containers",
David Rogers5cc5ce82020-03-13 19:19:03 -0700201 "//pw_kvs",
202 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -0700203 "//pw_log:facade",
David Rogers5cc5ce82020-03-13 19:19:03 -0700204 "//pw_status",
205 ],
206)
207
Wyatt Heplerec4b9352020-01-31 15:51:50 -0800208pw_cc_test(
Wyatt Hepler1927c282020-02-11 16:45:02 -0800209 name = "alignment_test",
210 srcs = [
211 "alignment_test.cc",
212 ],
213 deps = [
214 ":pw_kvs",
Rob Mohr06819482020-04-06 13:25:43 -0700215 "//pw_status",
216 "//pw_unit_test",
Wyatt Hepler1927c282020-02-11 16:45:02 -0800217 ],
218)
219
220pw_cc_test(
Wyatt Heplerec4b9352020-01-31 15:51:50 -0800221 name = "checksum_test",
222 srcs = ["checksum_test.cc"],
223 deps = [
224 ":crc16",
225 ":pw_kvs",
226 "//pw_checksum",
227 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -0700228 "//pw_unit_test",
Wyatt Heplerec4b9352020-01-31 15:51:50 -0800229 ],
230)
231
Wyatt Hepler2ad60672020-01-21 08:00:16 -0800232pw_cc_test(
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800233 name = "converts_to_span_test",
234 srcs = ["converts_to_span_test.cc"],
235 deps = [":pw_kvs"],
236)
237
238pw_cc_test(
Wyatt Hepler97fc7942020-02-06 15:55:45 -0800239 name = "entry_test",
240 srcs = [
241 "entry_test.cc",
242 ],
243 deps = [
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800244 ":fake_flash",
Wyatt Hepler97fc7942020-02-06 15:55:45 -0800245 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800246 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -0700247 "//pw_span",
248 "//pw_unit_test",
Wyatt Hepler97fc7942020-02-06 15:55:45 -0800249 ],
250)
251
252pw_cc_test(
Wyatt Hepler7ded6da2020-03-11 18:24:43 -0700253 name = "entry_cache_test",
254 srcs = ["entry_cache_test.cc"],
Wyatt Hepler02946272020-03-18 10:36:22 -0700255 deps = [
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800256 ":fake_flash",
Wyatt Hepler02946272020-03-18 10:36:22 -0700257 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800258 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -0700259 "//pw_unit_test",
Wyatt Hepler02946272020-03-18 10:36:22 -0700260 ],
Wyatt Hepler7ded6da2020-03-11 18:24:43 -0700261)
262
263pw_cc_test(
David Rogers2d4fa782021-07-08 21:07:28 -0700264 name = "flash_partition_1_alignment_test",
David Rogers6a262b42020-07-09 03:27:41 -0700265 srcs = ["flash_partition_test.cc"],
David Rogers2d4fa782021-07-08 21:07:28 -0700266 defines = [
267 "PW_FLASH_TEST_ITERATIONS=100",
268 "PW_FLASH_TEST_WRITE_SIZE=1",
269 ],
David Rogersca592962020-07-01 09:21:54 -0700270 deps = [
David Rogers2d4fa782021-07-08 21:07:28 -0700271 ":fake_flash_1_aligned_partition",
272 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800273 "//pw_log",
David Rogers2d4fa782021-07-08 21:07:28 -0700274 "//pw_unit_test",
275 ],
276)
277
278pw_cc_test(
279 name = "flash_partition_16_alignment_test",
280 srcs = ["flash_partition_test.cc"],
281 defines = [
282 "PW_FLASH_TEST_ITERATIONS=100",
283 "PW_FLASH_TEST_WRITE_SIZE=1",
284 ],
285 deps = [
286 ":fake_flash_16_aligned_partition",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800287 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800288 "//pw_log",
David Rogersca592962020-07-01 09:21:54 -0700289 "//pw_unit_test",
290 ],
David Rogers6a262b42020-07-09 03:27:41 -0700291)
292
293pw_cc_test(
294 name = "flash_partition_64_alignment_test",
295 srcs = ["flash_partition_test.cc"],
David Rogers2d4fa782021-07-08 21:07:28 -0700296 defines = [
297 "PW_FLASH_TEST_ITERATIONS=100",
298 "PW_FLASH_TEST_WRITE_SIZE=1",
299 ],
David Rogers6a262b42020-07-09 03:27:41 -0700300 deps = [
David Rogers6a262b42020-07-09 03:27:41 -0700301 ":fake_flash_64_aligned_partition",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800302 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800303 "//pw_log",
David Rogers6a262b42020-07-09 03:27:41 -0700304 "//pw_unit_test",
305 ],
David Rogers6a262b42020-07-09 03:27:41 -0700306)
307
308pw_cc_test(
309 name = "flash_partition_256_alignment_test",
310 srcs = ["flash_partition_test.cc"],
David Rogers2d4fa782021-07-08 21:07:28 -0700311 defines = [
312 "PW_FLASH_TEST_ITERATIONS=100",
313 "PW_FLASH_TEST_WRITE_SIZE=1",
314 ],
David Rogers6a262b42020-07-09 03:27:41 -0700315 deps = [
David Rogers6a262b42020-07-09 03:27:41 -0700316 ":fake_flash_256_aligned_partition",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800317 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800318 "//pw_log",
David Rogers6a262b42020-07-09 03:27:41 -0700319 "//pw_unit_test",
320 ],
David Rogersca592962020-07-01 09:21:54 -0700321)
322
323pw_cc_test(
David Rogers2d4fa782021-07-08 21:07:28 -0700324 name = "flash_partition_256_write_size_test",
325 srcs = ["flash_partition_test.cc"],
326 defines = [
327 "PW_FLASH_TEST_ITERATIONS=100",
328 "PW_FLASH_TEST_WRITE_SIZE=256",
329 ],
330 deps = [
331 ":fake_flash_1_aligned_partition",
332 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800333 "//pw_log",
David Rogers2d4fa782021-07-08 21:07:28 -0700334 "//pw_unit_test",
335 ],
336)
337
338pw_cc_test(
Rob Olivere64daf42020-11-24 11:50:03 -0500339 name = "key_test",
340 srcs = [
341 "key_test.cc",
342 ],
343 deps = [
344 ":pw_kvs",
345 "//pw_status",
346 "//pw_unit_test",
347 ],
348)
349
350pw_cc_test(
Wyatt Hepler495b6ee2020-02-12 18:58:01 -0800351 name = "key_value_store_test",
352 srcs = ["key_value_store_test.cc"],
353 deps = [
354 ":crc16",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800355 ":fake_flash",
Wyatt Hepler495b6ee2020-02-12 18:58:01 -0800356 ":pw_kvs",
Rob Mohr06819482020-04-06 13:25:43 -0700357 "//pw_checksum",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800358 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -0700359 "//pw_log:facade",
360 "//pw_span",
361 "//pw_status",
362 "//pw_string",
363 "//pw_unit_test",
Wyatt Hepler118fc3c2020-02-21 14:23:19 -0800364 ],
365)
366
367pw_cc_test(
David Rogers2d4fa782021-07-08 21:07:28 -0700368 name = "key_value_store_1_alignment_flash_test",
David Rogers6a262b42020-07-09 03:27:41 -0700369 srcs = ["key_value_store_initialized_test.cc"],
370 deps = [
371 ":crc16",
David Rogers2d4fa782021-07-08 21:07:28 -0700372 ":fake_flash_1_aligned_partition",
373 ":pw_kvs",
David Rogers2d4fa782021-07-08 21:07:28 -0700374 "//pw_checksum",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800375 "//pw_log",
David Rogers2d4fa782021-07-08 21:07:28 -0700376 "//pw_log:facade",
377 "//pw_span",
378 "//pw_status",
379 "//pw_string",
380 "//pw_unit_test",
381 ],
382)
383
384pw_cc_test(
385 name = "key_value_store_16_alignment_flash_test",
386 srcs = ["key_value_store_initialized_test.cc"],
387 deps = [
388 ":crc16",
389 ":fake_flash_16_aligned_partition",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800390 ":pw_kvs",
David Rogers6a262b42020-07-09 03:27:41 -0700391 "//pw_checksum",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800392 "//pw_log",
David Rogers6a262b42020-07-09 03:27:41 -0700393 "//pw_log:facade",
394 "//pw_span",
395 "//pw_status",
396 "//pw_string",
397 "//pw_unit_test",
398 ],
399)
400
401pw_cc_test(
402 name = "key_value_store_64_alignment_flash_test",
403 srcs = ["key_value_store_initialized_test.cc"],
404 deps = [
405 ":crc16",
David Rogers6a262b42020-07-09 03:27:41 -0700406 ":fake_flash_64_aligned_partition",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800407 ":pw_kvs",
David Rogers6a262b42020-07-09 03:27:41 -0700408 "//pw_checksum",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800409 "//pw_log",
David Rogers6a262b42020-07-09 03:27:41 -0700410 "//pw_log:facade",
411 "//pw_span",
412 "//pw_status",
413 "//pw_string",
414 "//pw_unit_test",
415 ],
416)
417
418pw_cc_test(
419 name = "key_value_store_256_alignment_flash_test",
420 srcs = ["key_value_store_initialized_test.cc"],
421 deps = [
422 ":crc16",
David Rogers6a262b42020-07-09 03:27:41 -0700423 ":fake_flash_256_aligned_partition",
Wyatt Hepler2debeb62020-12-03 08:19:57 -0800424 ":pw_kvs",
David Rogers6a262b42020-07-09 03:27:41 -0700425 "//pw_checksum",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800426 "//pw_log",
David Rogers6a262b42020-07-09 03:27:41 -0700427 "//pw_log:facade",
428 "//pw_span",
429 "//pw_status",
430 "//pw_string",
431 "//pw_unit_test",
432 ],
433)
434
435pw_cc_test(
David Rogerseaa2a692020-08-07 00:48:16 -0700436 name = "fake_flash_test_key_value_store_test",
437 srcs = ["test_key_value_store_test.cc"],
438 deps = [
439 ":crc16",
440 ":fake_flash_test_key_value_store",
441 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800442 "//pw_log",
David Rogerseaa2a692020-08-07 00:48:16 -0700443 "//pw_status",
444 "//pw_unit_test",
445 ],
446)
447
448pw_cc_test(
Wyatt Hepler8e94ed62020-03-05 16:45:32 -0800449 name = "key_value_store_binary_format_test",
Wyatt Hepler118fc3c2020-02-21 14:23:19 -0800450 srcs = [
Wyatt Hepler8e94ed62020-03-05 16:45:32 -0800451 "key_value_store_binary_format_test.cc",
Wyatt Hepler118fc3c2020-02-21 14:23:19 -0800452 ],
453 deps = [
454 ":crc16",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800455 ":fake_flash",
Wyatt Hepler118fc3c2020-02-21 14:23:19 -0800456 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800457 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -0700458 "//pw_unit_test",
Wyatt Hepler495b6ee2020-02-12 18:58:01 -0800459 ],
460)
461
462pw_cc_test(
David Rogers67cf06d2021-04-15 14:56:46 -0700463 name = "key_value_store_put_test",
464 srcs = ["key_value_store_put_test.cc"],
Wyatt Hepler16b04522020-02-07 16:00:14 -0800465 deps = [
466 ":crc16",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800467 ":fake_flash",
Wyatt Hepler16b04522020-02-07 16:00:14 -0800468 ":pw_kvs",
David Rogers5cc5ce82020-03-13 19:19:03 -0700469 ":test_partition",
Wyatt Hepler16b04522020-02-07 16:00:14 -0800470 "//pw_checksum",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800471 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -0700472 "//pw_unit_test",
Wyatt Hepler16b04522020-02-07 16:00:14 -0800473 ],
474)
475
476pw_cc_test(
Wyatt Hepler495b6ee2020-02-12 18:58:01 -0800477 name = "key_value_store_map_test",
478 srcs = ["key_value_store_map_test.cc"],
Wyatt Hepler2ad60672020-01-21 08:00:16 -0800479 deps = [
Wyatt Heplerec4b9352020-01-31 15:51:50 -0800480 ":crc16",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800481 ":fake_flash",
Wyatt Hepler2ad60672020-01-21 08:00:16 -0800482 ":pw_kvs",
David Rogers5cc5ce82020-03-13 19:19:03 -0700483 ":test_partition",
Wyatt Hepler2ad60672020-01-21 08:00:16 -0800484 "//pw_checksum",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800485 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -0700486 "//pw_log:facade",
487 "//pw_span",
488 "//pw_unit_test",
Wyatt Hepler2ad60672020-01-21 08:00:16 -0800489 ],
490)
Wyatt Heplerd6216822020-02-04 16:39:15 -0800491
Wyatt Heplerc84393f2020-03-20 11:23:24 -0700492pw_cc_test(
493 name = "sectors_test",
494 srcs = ["sectors_test.cc"],
495 deps = [
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800496 ":fake_flash",
Wyatt Heplerc84393f2020-03-20 11:23:24 -0700497 ":pw_kvs",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800498 "//pw_log",
Rob Mohr06819482020-04-06 13:25:43 -0700499 "//pw_unit_test",
Wyatt Heplerc84393f2020-03-20 11:23:24 -0700500 ],
501)
502
Armando Montanezf9e93e12020-04-22 07:44:14 -0700503pw_cc_test(
504 name = "key_value_store_wear_test",
505 srcs = [
506 "key_value_store_wear_test.cc",
507 ],
508 deps = [
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800509 ":fake_flash",
Armando Montanezf9e93e12020-04-22 07:44:14 -0700510 ":pw_kvs",
David Rogersd5138f32020-04-28 15:18:56 -0700511 ":test_partition",
Nathaniel Broughf91e7632021-07-26 17:12:14 +0800512 "//pw_log",
Armando Montanezf9e93e12020-04-22 07:44:14 -0700513 "//pw_unit_test",
514 ],
515)