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

Side by Side Diff: athena/resource_manager/memory_pressure_notifier_unittest.cc

Issue 617043002: Moving athena/test to athena/test/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 /// Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "athena/resource_manager/memory_pressure_notifier.h" 5 #include "athena/resource_manager/memory_pressure_notifier.h"
6 #include "athena/resource_manager/public/resource_manager_delegate.h" 6 #include "athena/resource_manager/public/resource_manager_delegate.h"
7 #include "athena/test/athena_test_base.h" 7 #include "athena/test/base/athena_test_base.h"
8 8
9 namespace athena { 9 namespace athena {
10 namespace test { 10 namespace test {
11 11
12 namespace { 12 namespace {
13 13
14 // Our OS delegate abstraction class to override the memory fill level. 14 // Our OS delegate abstraction class to override the memory fill level.
15 class TestResourceManagerDelegate : public ResourceManagerDelegate { 15 class TestResourceManagerDelegate : public ResourceManagerDelegate {
16 public: 16 public:
17 TestResourceManagerDelegate() : memory_fill_level_percent_(0) {} 17 TestResourceManagerDelegate() : memory_fill_level_percent_(0) {}
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 // Even if the value does not change, we should not get any more calls. 213 // Even if the value does not change, we should not get any more calls.
214 ASSERT_TRUE(WaitForTimer()); 214 ASSERT_TRUE(WaitForTimer());
215 EXPECT_EQ(calls3, test_memory_pressure_observer()->number_of_calls()); 215 EXPECT_EQ(calls3, test_memory_pressure_observer()->number_of_calls());
216 EXPECT_EQ(MemoryPressureObserver::MEMORY_PRESSURE_LOW, 216 EXPECT_EQ(MemoryPressureObserver::MEMORY_PRESSURE_LOW,
217 test_memory_pressure_observer()->pressure()); 217 test_memory_pressure_observer()->pressure());
218 } 218 }
219 219
220 } // namespace test 220 } // namespace test
221 } // namespace athena 221 } // namespace athena
OLDNEW
« no previous file with comments | « athena/input/accelerator_manager_unittest.cc ('k') | athena/resource_manager/resource_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698