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

Side by Side Diff: content/public/test/memory_coordinator_test_utils.cc

Issue 2466883002: Add TabLoaderTest (Closed)
Patch Set: Use ScopedFeatureList Created 4 years, 1 month 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
« no previous file with comments | « content/public/test/memory_coordinator_test_utils.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/public/test/memory_coordinator_test_utils.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698