Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BASE_TEST_TEST_DISCARDABLE_MEMORY_ALLOCATOR_H_ | |
| 6 #define BASE_TEST_TEST_DISCARDABLE_MEMORY_ALLOCATOR_H_ | |
| 7 | |
| 8 #include "base/memory/discardable_memory_allocator.h" | |
| 9 | |
| 10 namespace base { | |
| 11 | |
| 12 class TestDiscardableMemoryAllocator : public DiscardableMemoryAllocator { | |
|
Nico
2015/03/16 21:55:30
nit: StubDiscardableMemoryAllocator? Else it sound
reveman
2015/03/16 22:37:26
hm, the idea is that it's an implementation that i
danakj
2015/03/16 23:03:05
If you want the name to give more character to say
reveman
2015/03/17 04:09:15
OneShotDiscardableMemoryAllocator would reflect wh
reveman
2015/03/17 04:09:15
OneShotDiscardableMemoryAllocator would reflect wh
reveman
2015/03/17 14:02:41
I added a comment to this class in latest patch.
| |
| 13 public: | |
| 14 TestDiscardableMemoryAllocator(); | |
| 15 ~TestDiscardableMemoryAllocator() override; | |
| 16 | |
| 17 // Overridden from DiscardableMemoryAllocator: | |
| 18 scoped_ptr<DiscardableMemory> AllocateLockedDiscardableMemory( | |
| 19 size_t size) override; | |
| 20 | |
| 21 private: | |
| 22 DISALLOW_COPY_AND_ASSIGN(TestDiscardableMemoryAllocator); | |
| 23 }; | |
| 24 | |
| 25 } // namespace base | |
| 26 | |
| 27 #endif // BASE_TEST_TEST_DISCARDABLE_MEMORY_ALLOCATOR_H_ | |
| OLD | NEW |