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

Unified Diff: ash/test/test_lock_state_controller_delegate.h

Issue 263813002: Take a screenshot in maximize mode when volume down and power are pressed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 6 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 | « ash/ash.gyp ('k') | ash/test/test_lock_state_controller_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_lock_state_controller_delegate.h
diff --git a/ash/test/test_lock_state_controller_delegate.h b/ash/test/test_lock_state_controller_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..1e1892cd51ab4e89b5247ef20598be4079bb0cbd
--- /dev/null
+++ b/ash/test/test_lock_state_controller_delegate.h
@@ -0,0 +1,37 @@
+// Copyright 2014 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.
+
+#ifndef ASH_TEST_TEST_LOCK_STATE_CONTROLLER_DELEGATE_H_
+#define ASH_TEST_TEST_LOCK_STATE_CONTROLLER_DELEGATE_H_
+
+#include "ash/wm/lock_state_controller.h"
+
+namespace ash {
+namespace test {
+
+// Fake implementation of PowerButtonControllerDelegate that just logs requests
+// to lock the screen and shut down the device.
+class TestLockStateControllerDelegate : public LockStateControllerDelegate {
+ public:
+ TestLockStateControllerDelegate();
+ virtual ~TestLockStateControllerDelegate();
+
+ int num_lock_requests() const { return num_lock_requests_; }
+ int num_shutdown_requests() const { return num_shutdown_requests_; }
+
+ // LockStateControllerDelegate implementation.
+ virtual void RequestLockScreen() OVERRIDE;
+ virtual void RequestShutdown() OVERRIDE;
+
+ private:
+ int num_lock_requests_;
+ int num_shutdown_requests_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestLockStateControllerDelegate);
+};
+
+} // namespace test
+} // namespace ash
+
+#endif // ASH_TEST_TEST_LOCK_STATE_CONTROLLER_DELEGATE_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/test/test_lock_state_controller_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698