pw_kvs: Add test_key_value_store

Add test_key_value_store that uses TestKvs() to provide an initialized
KVS for easy use in other modules that depend on KVS.
Add a FakeFlashMemory version of the test_key_value_store.

Change-Id: I06e28bb736b1a85fbb0291aaf8b43a7609c6744c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/15641
Reviewed-by: Janusz Sobczak <jsobczak@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: David Rogers <davidrogers@google.com>
diff --git a/pw_kvs/BUILD b/pw_kvs/BUILD
index ac6038e..4d3005c 100644
--- a/pw_kvs/BUILD
+++ b/pw_kvs/BUILD
@@ -138,6 +138,21 @@
 )
 
 pw_cc_library(
+    name = "fake_flash_test_key_value_store",
+    srcs = [
+        "fake_flash_test_key_value_store.cc",
+    ],
+    hdrs = [
+        "public/pw_kvs/test_key_value_store.h",
+    ],
+    deps = [
+        ":crc16",
+        ":pw_kvs",
+        ":fake_flash",
+    ],
+)
+
+pw_cc_library(
     name = "test_utils",
     hdrs = [
         "pw_kvs_private/byte_utils.h",
@@ -322,6 +337,19 @@
 )
 
 pw_cc_test(
+    name = "fake_flash_test_key_value_store_test",
+    srcs = ["test_key_value_store_test.cc"],
+    deps = [
+        ":crc16",
+        ":fake_flash_test_key_value_store",
+        ":pw_kvs",
+        "//pw_log:backend",
+        "//pw_status",
+        "//pw_unit_test",
+    ],
+)
+
+pw_cc_test(
     name = "key_value_store_binary_format_test",
     srcs = [
         "key_value_store_binary_format_test.cc",