Blender
V3.3
intern
guardedalloc
tests
guardedalloc_test_base.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: Apache-2.0 */
2
3
#ifndef __GUARDEDALLOC_TEST_UTIL_H__
4
#define __GUARDEDALLOC_TEST_UTIL_H__
5
6
#include "testing/testing.h"
7
8
#include "
MEM_guardedalloc.h
"
9
10
class
LockFreeAllocatorTest
:
public
::testing::Test {
11
protected
:
12
virtual
void
SetUp
()
13
{
14
MEM_use_lockfree_allocator
();
15
}
16
};
17
18
class
GuardedAllocatorTest
:
public
::testing::Test {
19
protected
:
20
virtual
void
SetUp
()
21
{
22
MEM_use_guarded_allocator
();
23
}
24
};
25
26
#endif
// __GUARDEDALLOC_TEST_UTIL_H__
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
GuardedAllocatorTest
Definition:
guardedalloc_test_base.h:18
GuardedAllocatorTest::SetUp
virtual void SetUp()
Definition:
guardedalloc_test_base.h:20
LockFreeAllocatorTest
Definition:
guardedalloc_test_base.h:10
LockFreeAllocatorTest::SetUp
virtual void SetUp()
Definition:
guardedalloc_test_base.h:12
MEM_use_guarded_allocator
void MEM_use_guarded_allocator(void)
Definition:
mallocn.c:134
MEM_use_lockfree_allocator
void MEM_use_lockfree_allocator(void)
Definition:
mallocn.c:98
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1