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

Unified Diff: components/memory_pressure/test_memory_pressure_calculator.cc

Issue 2874553004: Remove memory_pressure component. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/memory_pressure/test_memory_pressure_calculator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/memory_pressure/test_memory_pressure_calculator.cc
diff --git a/components/memory_pressure/test_memory_pressure_calculator.cc b/components/memory_pressure/test_memory_pressure_calculator.cc
deleted file mode 100644
index a9d6d5543d78263e5bab46bb6b7d9273ac7a9006..0000000000000000000000000000000000000000
--- a/components/memory_pressure/test_memory_pressure_calculator.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/memory_pressure/test_memory_pressure_calculator.h"
-
-namespace memory_pressure {
-
-#if defined(MEMORY_PRESSURE_IS_POLLING)
-
-TestMemoryPressureCalculator::TestMemoryPressureCalculator()
- : level_(MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE), calls_(0) {}
-
-TestMemoryPressureCalculator::TestMemoryPressureCalculator(
- MemoryPressureLevel level)
- : level_(level), calls_(0) {}
-
-TestMemoryPressureCalculator::MemoryPressureLevel
-TestMemoryPressureCalculator::CalculateCurrentPressureLevel() {
- ++calls_;
- return level_;
-}
-
-void TestMemoryPressureCalculator::SetLevel(MemoryPressureLevel level) {
- level_ = level;
-}
-
-void TestMemoryPressureCalculator::SetNone() {
- level_ = MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE;
-}
-
-void TestMemoryPressureCalculator::SetModerate() {
- level_ = MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE;
-}
-
-void TestMemoryPressureCalculator::SetCritical() {
- level_ = MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL;
-}
-
-void TestMemoryPressureCalculator::ResetCalls() {
- calls_ = 0;
-}
-
-#endif // defined(MEMORY_PRESSURE_IS_POLLING)
-
-} // namespace memory_pressure
« no previous file with comments | « components/memory_pressure/test_memory_pressure_calculator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698