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

Side by Side Diff: ash/system/power/power_event_observer_unittest.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 | « ash/system/power/power_event_observer.cc ('k') | ash/system/power/power_status.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ash/system/chromeos/power/power_event_observer.h" 5 #include "ash/system/power/power_event_observer.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "ash/common/test/test_session_state_delegate.h" 9 #include "ash/common/test/test_session_state_delegate.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
11 #include "ash/test/ash_test_base.h" 11 #include "ash/test/ash_test_base.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "chromeos/dbus/dbus_thread_manager.h" 13 #include "chromeos/dbus/dbus_thread_manager.h"
14 #include "chromeos/dbus/power_manager_client.h" 14 #include "chromeos/dbus/power_manager_client.h"
15 #include "ui/aura/window.h" 15 #include "ui/aura/window.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // request. The real PowerManagerClient would reset its internal counter in 154 // request. The real PowerManagerClient would reset its internal counter in
155 // this situation but the stub client is not that smart. 155 // this situation but the stub client is not that smart.
156 EXPECT_EQ(2, client->GetNumPendingSuspendReadinessCallbacks()); 156 EXPECT_EQ(2, client->GetNumPendingSuspendReadinessCallbacks());
157 157
158 observer_->OnLockAnimationsComplete(); 158 observer_->OnLockAnimationsComplete();
159 EXPECT_EQ(1, client->GetNumPendingSuspendReadinessCallbacks()); 159 EXPECT_EQ(1, client->GetNumPendingSuspendReadinessCallbacks());
160 EXPECT_EQ(0, GetNumVisibleCompositors()); 160 EXPECT_EQ(0, GetNumVisibleCompositors());
161 } 161 }
162 162
163 } // namespace ash 163 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/power/power_event_observer.cc ('k') | ash/system/power/power_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698