1 // Copyright 2023 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "samples/chromium_support/discardable_memory_allocator.h" 6 7 #include "base/test/test_discardable_memory_allocator.h" 8 9 namespace chromium_support { 10 InitializeDiscardableMemoryAllocator()11void InitializeDiscardableMemoryAllocator() { 12 static base::TestDiscardableMemoryAllocator test_memory_allocator; 13 base::DiscardableMemoryAllocator::SetInstance(&test_memory_allocator); 14 } 15 16 } // namespace chromium_support 17