*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
TEST(ThreadCachedArena, SingleThreaded) {
static const size_t requestedBlockSize = 64;
ThreadCachedArena arena(requestedBlockSize);
TEST(ThreadCachedArena, SingleThreaded) {
static const size_t requestedBlockSize = 64;
ThreadCachedArena arena(requestedBlockSize);
ArenaTester tester(arena);
tester.allocate(100, 100 << 10);
tester.verify();
ArenaTester tester(arena);
tester.allocate(100, 100 << 10);
tester.verify();
int main(int argc, char *argv[]) {
testing::InitGoogleTest(&argc, argv);
int main(int argc, char *argv[]) {
testing::InitGoogleTest(&argc, argv);