File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
storage/kvstore/tdbstore/tests/UNITTESTS/TDBStore Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#include " gtest/gtest.h"
18
18
#include " blockdevice/HeapBlockDevice.h"
19
- #include " blockdevice/FlashSimBlockDevice.h"
20
19
#include " tdbstore/TDBStore.h"
21
20
#include < stdlib.h>
22
21
@@ -28,8 +27,7 @@ using namespace mbed;
28
27
class TDBStoreModuleTest : public testing ::Test {
29
28
protected:
30
29
HeapBlockDevice heap{DEVICE_SIZE, BLOCK_SIZE};
31
- FlashSimBlockDevice flash{&heap};
32
- TDBStore tdb{&flash};
30
+ TDBStore tdb{&heap};
33
31
34
32
virtual void SetUp ()
35
33
{
@@ -63,9 +61,9 @@ TEST_F(TDBStoreModuleTest, set_get)
63
61
TEST_F (TDBStoreModuleTest, erased_set_get)
64
62
{
65
63
EXPECT_EQ (tdb.deinit (), MBED_SUCCESS);
66
- EXPECT_EQ (flash .init (), MBED_SUCCESS);
67
- EXPECT_EQ (flash .erase (0 , flash .size ()), MBED_SUCCESS);
68
- EXPECT_EQ (flash .deinit (), MBED_SUCCESS);
64
+ EXPECT_EQ (heap .init (), MBED_SUCCESS);
65
+ EXPECT_EQ (heap .erase (0 , heap .size ()), MBED_SUCCESS);
66
+ EXPECT_EQ (heap .deinit (), MBED_SUCCESS);
69
67
EXPECT_EQ (tdb.init (), MBED_SUCCESS);
70
68
char buf[100 ];
71
69
size_t size;
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ set(unittest-includes ${unittest-includes}
10
10
)
11
11
12
12
set (unittest-sources
13
- ../storage/blockdevice/source/FlashSimBlockDevice.cpp
14
13
../storage/blockdevice/source/HeapBlockDevice.cpp
15
14
../storage/blockdevice/source/BufferedBlockDevice.cpp
16
15
../storage/kvstore/tdbstore/source/TDBStore.cpp
You can’t perform that action at this time.
0 commit comments