Newer
Older
mbed-os / features / nanostack / nanostack-hal-mbed-cmsis-rtos / cs_nvm / test / test_cs_nvm_unit / unittest / cs_nvm / test_cs_nvm.h
/*
 * Copyright (c) 2016, 2018, Arm Limited and affiliates.
 * SPDX-License-Identifier: Apache-2.0
 *
 * 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.
 */
#ifndef TEST_NS_NVM_HELPER_H
#define TEST_NS_NVM_HELPER_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdbool.h>

bool test_cs_nvm_init_finalize();
bool test_cs_nvm_key_create();
bool test_cs_nvm_key_delete();
bool test_cs_nvm_key_delete_failure_in_close();
bool test_cs_nvm_read();
bool test_cs_nvm_read_failure();
bool test_cs_nvm_read_failure_in_close();
bool test_cs_nvm_write();
bool test_cs_nvm_write_failure();
bool test_cs_nvm_write_failure_in_close();
bool test_cs_nvm_flush();
bool test_cs_nvm_operation_in_progress();

#ifdef __cplusplus
}
#endif

#endif // TEST_NS_NVM_HELPER_H