fix(storage/nvf_flash): fixup additions from PR

This commit is contained in:
Tomáš Rohlínek
2025-03-27 15:11:06 +01:00
parent fc418cc782
commit be6e24370f
8 changed files with 17 additions and 14 deletions

View File

@@ -20,6 +20,8 @@
#include "test_fixtures.hpp"
#include "spi_flash_mmap.h"
using namespace std;
#define TEST_ESP_ERR(rc, res) CHECK((rc) == (res))
#define TEST_ESP_OK(rc) CHECK((rc) == ESP_OK)

View File

@@ -11,6 +11,8 @@
#include "test_fixtures.hpp"
#include <iostream>
using namespace std;
TEST_CASE("NVSHandleSimple CXX api open invalid arguments", "[nvs cxx]")
{
const uint32_t NVS_FLASH_SECTOR = 6;

View File

@@ -12,6 +12,8 @@
#include <iostream>
#include <string>
using namespace std;
#define TEMPORARILY_DISABLED(x)
TEST_CASE("NVSHandleSimple closes its reference in PartitionManager", "[partition_mgr]")

View File

@@ -11,6 +11,8 @@
#include <string.h>
#include "esp_partition.h"
using namespace std;
TEST_CASE("nvs_flash_init_partition_ptr fails due to nullptr arg", "[nvs_custom_part]")
{
uint8_t *p_part_desc_addr_start;

View File

@@ -10,6 +10,8 @@
#include "test_fixtures.hpp"
#include <iostream>
using namespace std;
TEST_CASE("Storage iterator recognizes blob with VerOffset::VER_1_OFFSET", "[nvs_storage]")
{
const uint32_t NVS_FLASH_SECTOR = 6;

View File

@@ -11,6 +11,8 @@
#include "nvs_test_api.h"
#include "test_fixtures.hpp"
using namespace std;
TEST_CASE("Partition manager initializes storage", "[partition_mgr]")
{
const uint32_t NVS_FLASH_SECTOR = 6;

View File

@@ -1,16 +1,8 @@
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "nvs_partition_manager.hpp"
#include "nvs_handle.hpp"
#include "nvs_handle_simple.hpp"

View File

@@ -486,7 +486,6 @@ components/mbedtls/port/include/sha256_alt.h
components/mbedtls/port/include/sha512_alt.h
components/mbedtls/port/sha/parallel_engine/sha.c
components/nvs_flash/include/nvs_handle.hpp
components/nvs_flash/src/nvs_cxx_api.cpp
components/nvs_flash/src/nvs_encrypted_partition.hpp
components/nvs_flash/src/nvs_item_hash_list.cpp
components/nvs_flash/src/nvs_pagemanager.hpp