43 for (
int i = 0;
i < 10;
i++) {
47 for (
int i = 0;
i < 10;
i++) {
51 for (
int i = 0;
i < 10;
i++) {
82template<
typename TContainer,
typename TCount>
96 container.reset((TCount)1);
108 container.reset((TCount)0);
114 test_container_apis<AutoTArray<int>,
int>(
reporter);
115 test_container_apis<AutoSTArray<kStackPreallocCount, int>,
int>(
reporter);
116 test_container_apis<AutoTMalloc<int>,
size_t>(
reporter);
117 test_container_apis<AutoSTMalloc<kStackPreallocCount, int>,
size_t>(
reporter);
125 autoMalloc.realloc(0);
131 autoMalloc.realloc(0);
139 test_realloc_to_zero<AutoTMalloc<int> >(
reporter);
140 test_realloc_to_zero<AutoSTMalloc<kStackPreallocCount, int> >(
reporter);
144#if defined(__clang__)
145 #pragma clang diagnostic push
146 #pragma clang diagnostic ignored "-Wself-move"
147#elif defined(__GNUC__) && __GNUC__ >= 13
148 #pragma GCC diagnostic push
149 #pragma GCC diagnostic ignored "-Wself-move"
155 foo = std::move(foo);
158#if defined(__clang__)
159 #pragma clang diagnostic pop
160#elif defined(__GNUC__) && __GNUC__ >= 13
161 #pragma GCC diagnostic pop
DEF_TEST(Templates, reporter)
static void test_automalloc_realloc(skiatest::Reporter *reporter)
static void test_container_apis(skiatest::Reporter *reporter)
constexpr static int kStackPreallocCount
static void test_realloc_to_zero(skiatest::Reporter *reporter)
#define REPORTER_ASSERT(r, cond,...)
void realloc(size_t count)
const myers::Point & get(const myers::Segment &)
std::shared_ptr< const fml::Mapping > data