Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: base/test/test_discardable_memory_allocator.h

Issue 1001873002: base: Rename discardable memory allocator interface and remove unnecessary class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-dm-types
Patch Set: rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698