Lines Matching refs:allocator
42 #include "mock-allocator.h"
96 // Check if AllocatorRef forwards to the underlying allocator.
259 typedef AllocatorRef< std::allocator<char> > TestAllocator;
263 std::allocator<char> *alloc = buffer.get_allocator().get();
269 // Move should transfer allocator.
275 std::allocator<char> alloc;
328 typedef AllocatorRef< MockAllocator<int> > Allocator;
329 typedef MemoryBuffer<int, 10, Allocator> Base;
332 TestMemoryBuffer(Allocator alloc) : Base(alloc) {}
334 } buffer((Allocator(&alloc)));
353 TEST(MemoryBufferTest, Allocator) {