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 "ash/test/test_lock_state_controller_delegate.h" | 5 #include "ash/test/test_lock_state_controller_delegate.h" |
6 | 6 |
7 namespace ash { | 7 namespace ash { |
8 namespace test { | 8 namespace test { |
9 | 9 |
10 TestLockStateControllerDelegate::TestLockStateControllerDelegate() | 10 TestLockStateControllerDelegate::TestLockStateControllerDelegate() |
11 : num_lock_requests_(0), | 11 : num_lock_requests_(0), |
12 num_shutdown_requests_(0) { | 12 num_shutdown_requests_(0) { |
13 } | 13 } |
14 | 14 |
15 TestLockStateControllerDelegate::~TestLockStateControllerDelegate() { | 15 TestLockStateControllerDelegate::~TestLockStateControllerDelegate() { |
16 } | 16 } |
17 | 17 |
18 bool TestLockStateControllerDelegate::IsLoading() const { | |
19 // There is no way for to know, since we can't include the | |
20 // content::WebContents definition (whose instance we can retrieve from | |
21 // ScreenLocker). | |
22 return false; | |
23 } | |
24 | |
25 void TestLockStateControllerDelegate::RequestLockScreen() { | 18 void TestLockStateControllerDelegate::RequestLockScreen() { |
26 ++num_lock_requests_; | 19 ++num_lock_requests_; |
27 } | 20 } |
28 | 21 |
29 void TestLockStateControllerDelegate::RequestShutdown() { | 22 void TestLockStateControllerDelegate::RequestShutdown() { |
30 ++num_shutdown_requests_; | 23 ++num_shutdown_requests_; |
31 } | 24 } |
32 | 25 |
33 } // namespace test | 26 } // namespace test |
34 } // namespace ash | 27 } // namespace ash |
OLD | NEW |