This commit is contained in:
2024-09-27 19:16:49 +08:00
commit 49d0cea04d
10000 changed files with 1616312 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
/*
* Copyright (C) 2022 Huawei Device Co., 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.
*/
#ifndef MEMORY_MOCK_H
#define MEMORY_MOCK_H
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
void SetMockFlag(bool flag);
void StartRecordMallocNum(void);
void EndRecordMallocNum(void);
uint32_t GetMallocNum(void);
void ResetRecordMallocNum(void);
void SetMockMallocIndex(uint32_t index);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,34 @@
/*
* Copyright (C) 2022 Huawei Device Co., 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.
*/
#ifndef OPENSSL_ADAPTER_MOCK_H
#define OPENSSL_ADAPTER_MOCK_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
void StartRecordOpensslCallNum(void);
uint32_t GetOpensslCallNum(void);
void ResetOpensslCallNum(void);
void SetOpensslCallMockIndex(uint32_t index);
void EndRecordOpensslCallNum(void);
#ifdef __cplusplus
}
#endif
#endif