| OLD | NEW |
| 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/activity/public/activity.h" | 5 #include "athena/activity/public/activity.h" |
| 6 #include "athena/activity/public/activity_manager.h" | 6 #include "athena/activity/public/activity_manager.h" |
| 7 #include "athena/activity/public/activity_view_model.h" | 7 #include "athena/activity/public/activity_view_model.h" |
| 8 #include "athena/resource_manager/memory_pressure_notifier.h" | 8 #include "athena/resource_manager/memory_pressure_notifier.h" |
| 9 #include "athena/resource_manager/public/resource_manager.h" | 9 #include "athena/resource_manager/public/resource_manager.h" |
| 10 #include "athena/test/athena_test_base.h" | 10 #include "athena/test/base/athena_test_base.h" |
| 11 #include "athena/test/sample_activity.h" | 11 #include "athena/test/base/sample_activity.h" |
| 12 #include "athena/wm/public/window_manager.h" | 12 #include "athena/wm/public/window_manager.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "ui/gfx/image/image_skia.h" | 14 #include "ui/gfx/image/image_skia.h" |
| 15 #include "ui/views/view.h" | 15 #include "ui/views/view.h" |
| 16 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
| 17 | 17 |
| 18 namespace athena { | 18 namespace athena { |
| 19 namespace test { | 19 namespace test { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 ResourceManager::Get()->SetMemoryPressureAndStopMonitoring( | 353 ResourceManager::Get()->SetMemoryPressureAndStopMonitoring( |
| 354 MemoryPressureObserver::MEMORY_PRESSURE_CRITICAL); | 354 MemoryPressureObserver::MEMORY_PRESSURE_CRITICAL); |
| 355 EXPECT_EQ(Activity::ACTIVITY_VISIBLE, app1->GetCurrentState()); | 355 EXPECT_EQ(Activity::ACTIVITY_VISIBLE, app1->GetCurrentState()); |
| 356 EXPECT_EQ(Activity::ACTIVITY_INVISIBLE, app2->GetCurrentState()); | 356 EXPECT_EQ(Activity::ACTIVITY_INVISIBLE, app2->GetCurrentState()); |
| 357 EXPECT_EQ(Activity::ACTIVITY_UNLOADED, app3->GetCurrentState()); | 357 EXPECT_EQ(Activity::ACTIVITY_UNLOADED, app3->GetCurrentState()); |
| 358 EXPECT_EQ(Activity::ACTIVITY_UNLOADED, app4->GetCurrentState()); | 358 EXPECT_EQ(Activity::ACTIVITY_UNLOADED, app4->GetCurrentState()); |
| 359 } | 359 } |
| 360 | 360 |
| 361 } // namespace test | 361 } // namespace test |
| 362 } // namespace athena | 362 } // namespace athena |
| OLD | NEW |