Searched refs:part_mock (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.5.0/components/nvs_flash/host_test/nvs_page_test/main/ |
D | nvs_page_test.cpp | 66 TEST_ASSERT_EQUAL(ESP_OK, page.load(&fix.part_mock, 0)); in test_Page_load__uninitialized_page_has_0xfe() 85 TEST_ASSERT_EQUAL(ESP_OK, page.load(&fix.part_mock, 0)); in test_Page_load__initialized_corrupt_header() 127 esp_partition_write_raw_ExpectAndReturn(&fix.part_mock.partition, 32, nullptr, 4, ESP_OK); in test_Page_load__corrupt_entry_table() 136 TEST_ASSERT_EQUAL(ESP_OK, page.load(&fix.part_mock, 0)); in test_Page_load__corrupt_entry_table() 156 TEST_ASSERT_EQUAL(ESP_OK, page.load(&fix.part_mock, 0)); in test_Page_load_success() 165 TEST_ASSERT_EQUAL(ESP_OK, fix.page.load(&fix.part_mock, 0)); in test_Page_load_full_page() 181 esp_partition_erase_range_ExpectAndReturn(&fix.part_mock.partition, 0, 4096, ESP_FAIL); in test_Page_erase__write_fail() 191 esp_partition_erase_range_ExpectAndReturn(&fix.part_mock.partition, 0, 4096, ESP_OK); in test_Page_erase__success() 212 TEST_ASSERT_EQUAL(ESP_OK, page.load(&fix.part_mock, 0)); in test_Page_write__initialize_write_failure() 249 …esp_partition_write_raw_ExpectWithArrayAndReturn(&fix.part_mock.partition, 1, 32, raw_result, 4, 4… in test_page_write__write_correct_entry_state() [all …]
|
/hal_espressif-3.5.0/components/nvs_flash/host_test/fixtures/ |
D | test_fixtures.hpp | 123 : part_mock(start_sector * SPI_FLASH_SEC_SIZE, sector_size * SPI_FLASH_SEC_SIZE) { in PartitionMockFixture() 134 PartitionMock part_mock; member 151 … if (page.load(&part_mock, start_sector) != ESP_OK) throw FixtureException("couldn't setup page"); in NVSPageFixture() 216 … if (page.load(&part_mock, start_sector) != ESP_OK) throw FixtureException("couldn't setup page"); in NVSValidPageFixture() 236 storage(&part_mock) 373 … if (page.load(&part_mock, start_sector) != ESP_OK) throw FixtureException("couldn't setup page"); 431 … if (page.load(&part_mock, start_sector) != ESP_OK) throw FixtureException("couldn't setup page");
|