OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #include "content/public/test/memory_coordinator_test_utils.h" |
| 6 |
| 7 #include "base/memory/memory_coordinator_proxy.h" |
| 8 #include "content/browser/memory/memory_coordinator.h" |
| 9 #include "content/public/common/content_features.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 void SetUpMemoryCoordinatorProxyForTesting() { |
| 14 base::MemoryCoordinatorProxy::GetInstance()-> |
| 15 SetGetCurrentMemoryStateCallback(base::Bind( |
| 16 &content::MemoryCoordinator::GetCurrentMemoryState, |
| 17 base::Unretained(content::MemoryCoordinator::GetInstance()))); |
| 18 base::MemoryCoordinatorProxy::GetInstance()-> |
| 19 SetSetCurrentMemoryStateForTestingCallback(base::Bind( |
| 20 &content::MemoryCoordinator::SetCurrentMemoryStateForTesting, |
| 21 base::Unretained(content::MemoryCoordinator::GetInstance()))); |
| 22 } |
| 23 |
| 24 } // namespace content |
OLD | NEW |