Skip to content

Commit 2d8a566

Browse files
committed
SecureStore whitebox test: flash simulation no longer required
1 parent 5880a39 commit 2d8a566

File tree

1 file changed

+2
-5
lines changed
  • storage/kvstore/securestore/tests/TESTS/securestore/whitebox

1 file changed

+2
-5
lines changed

storage/kvstore/securestore/tests/TESTS/securestore/whitebox/main.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "mbed_error.h"
2525
#include "Timer.h"
2626
#include "HeapBlockDevice.h"
27-
#include "FlashSimBlockDevice.h"
2827
#include "SlicingBlockDevice.h"
2928
#include "greentea-client/test_env.h"
3029
#include "unity/unity.h"
@@ -57,8 +56,7 @@ SPIFBlockDevice flash_bd(MBED_CONF_SPIF_DRIVER_SPI_MOSI, MBED_CONF_SPIF_DRIVER_S
5756
SlicingBlockDevice ul_bd(&flash_bd, 0, ul_bd_size);
5857
SlicingBlockDevice rbp_bd(&flash_bd, ul_bd_size, ul_bd_size + rbp_bd_size);
5958
#else
60-
HeapBlockDevice bd(ul_bd_size + rbp_bd_size, 1, 1, 4096);
61-
FlashSimBlockDevice flash_bd(&bd);
59+
HeapBlockDevice flash_bd(ul_bd_size + rbp_bd_size, 1, 1, 4096);
6260
SlicingBlockDevice ul_bd(&flash_bd, 0, ul_bd_size);
6361
SlicingBlockDevice rbp_bd(&flash_bd, ul_bd_size, ul_bd_size + rbp_bd_size);
6462
#endif
@@ -417,8 +415,7 @@ static void multi_set_test()
417415

418416
timer.start();
419417
#if !defined(TEST_SPIF) && !defined(TEST_SD)
420-
HeapBlockDevice heap_bd(4096 * 64, 1, 1, 4096);
421-
FlashSimBlockDevice flash_bd(&heap_bd);
418+
HeapBlockDevice flash_bd(4096 * 64, 1, 1, 4096);
422419
#endif
423420

424421
// TODO: Fix

0 commit comments

Comments
 (0)