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

Side by Side Diff: athena/test/base/test_resource_manager_delegate.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « athena/test/base/test_app_model_builder.cc ('k') | athena/test/base/test_util.h » ('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 2014 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 "athena/resource_manager/public/resource_manager_delegate.h"
6
7 #include <string>
8
9 #include "base/macros.h"
10
11 namespace athena {
12
13 namespace test {
14
15 namespace {
16 // This is the minimum amount of time in milliseconds between checks for
17 // low memory. Since we report no memory use (and the timeout is extremely long)
18 // the memory pressure event will never go off.
19 const int kMemoryPressureIntervalMs = 60000;
20 } // namespace
21
22 class ResourceManagerDelegateImpl : public ResourceManagerDelegate {
23 public:
24 ResourceManagerDelegateImpl() {}
25 ~ResourceManagerDelegateImpl() override {}
26
27 private:
28 int GetUsedMemoryInPercent() override { return 0; }
29
30 int MemoryPressureIntervalInMS() override {
31 return kMemoryPressureIntervalMs;
32 }
33 DISALLOW_COPY_AND_ASSIGN(ResourceManagerDelegateImpl);
34 };
35
36 } // namespace test
37
38 // static
39 ResourceManagerDelegate*
40 ResourceManagerDelegate::CreateResourceManagerDelegate() {
41 return new test::ResourceManagerDelegateImpl;
42 }
43
44 } // namespace athena
OLDNEW
« no previous file with comments | « athena/test/base/test_app_model_builder.cc ('k') | athena/test/base/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698