Automate more Better Session Restore tests: POST data and cookies.
[chromium-blink-merge.git] / ash / caps_lock_delegate_stub.h
blobd701e47bc4801d3702edf18a668251a0d5509351
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_CAPS_LOCK_DELEGATE_STUB_H_
6 #define ASH_CAPS_LOCK_DELEGATE_STUB_H_
8 #include "ash/ash_export.h"
9 #include "ash/caps_lock_delegate.h"
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
13 namespace ash {
15 // Stub implementation of CapsLockDelegate mainly for testing.
16 class ASH_EXPORT CapsLockDelegateStub : public CapsLockDelegate {
17 public:
18 CapsLockDelegateStub();
19 virtual ~CapsLockDelegateStub();
21 // Overridden from CapsLockDelegate:
22 virtual bool IsCapsLockEnabled() const OVERRIDE;
23 virtual void SetCapsLockEnabled(bool enabled) OVERRIDE;
24 virtual void ToggleCapsLock() OVERRIDE;
26 private:
27 bool enabled_;
29 DISALLOW_COPY_AND_ASSIGN(CapsLockDelegateStub);
32 } // namespace ash
34 #endif // ASH_CAPS_LOCK_DELEGATE_STUB