#include "include/private/base/SkContainers.h"
#include "tests/Test.h"
#include <algorithm>
#include <climits>
#include <cstddef>
#include <cstdint>
Go to the source code of this file.
◆ DEF_TEST()
DEF_TEST |
( |
SkContainerAllocatorBasic |
, |
|
|
reporter |
|
|
) |
| |
Definition at line 30 of file SkContainersTest.cpp.
30 {
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69 for (
int i = 1;
i < 33; ++
i) {
73
76
79 }
80
81 for (
int i = 1;
i < 33; ++
i) {
85
88
91 }
92}
static int max_capacity(size_t sizeOfT)
#define REPORTER_ASSERT(r, cond,...)
static constexpr int64_t kCapacityMultiple
static size_t GrowthFactorCapacity(const SkContainerAllocator &a, int capacity, double growthFactor)
static size_t RoundUpCapacity(const SkContainerAllocator &a, int64_t capacity)
◆ max_capacity()
static int max_capacity |
( |
size_t |
sizeOfT | ) |
|
|
static |
Definition at line 26 of file SkContainersTest.cpp.
26 {
27 return std::min(SIZE_MAX / sizeOfT, (
size_t)INT_MAX);
28}
static float min(float r, float g, float b)