From 2d8a566718f8679b0f1604938dfa212c6b57212e Mon Sep 17 00:00:00 2001 From: Lingkai Dong Date: Mon, 7 Dec 2020 17:24:37 +0000 Subject: [PATCH] SecureStore whitebox test: flash simulation no longer required --- .../securestore/tests/TESTS/securestore/whitebox/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/storage/kvstore/securestore/tests/TESTS/securestore/whitebox/main.cpp b/storage/kvstore/securestore/tests/TESTS/securestore/whitebox/main.cpp index 8c10e068dc..17d4df8789 100644 --- a/storage/kvstore/securestore/tests/TESTS/securestore/whitebox/main.cpp +++ b/storage/kvstore/securestore/tests/TESTS/securestore/whitebox/main.cpp @@ -24,7 +24,6 @@ #include "mbed_error.h" #include "Timer.h" #include "HeapBlockDevice.h" -#include "FlashSimBlockDevice.h" #include "SlicingBlockDevice.h" #include "greentea-client/test_env.h" #include "unity/unity.h" @@ -57,8 +56,7 @@ SPIFBlockDevice flash_bd(MBED_CONF_SPIF_DRIVER_SPI_MOSI, MBED_CONF_SPIF_DRIVER_S SlicingBlockDevice ul_bd(&flash_bd, 0, ul_bd_size); SlicingBlockDevice rbp_bd(&flash_bd, ul_bd_size, ul_bd_size + rbp_bd_size); #else -HeapBlockDevice bd(ul_bd_size + rbp_bd_size, 1, 1, 4096); -FlashSimBlockDevice flash_bd(&bd); +HeapBlockDevice flash_bd(ul_bd_size + rbp_bd_size, 1, 1, 4096); SlicingBlockDevice ul_bd(&flash_bd, 0, ul_bd_size); SlicingBlockDevice rbp_bd(&flash_bd, ul_bd_size, ul_bd_size + rbp_bd_size); #endif @@ -417,8 +415,7 @@ static void multi_set_test() timer.start(); #if !defined(TEST_SPIF) && !defined(TEST_SD) - HeapBlockDevice heap_bd(4096 * 64, 1, 1, 4096); - FlashSimBlockDevice flash_bd(&heap_bd); + HeapBlockDevice flash_bd(4096 * 64, 1, 1, 4096); #endif // TODO: Fix