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 #ifndef ASH_TEST_TEST_VOLUME_CONTROL_DELEGATE_H_ | 5 #ifndef ASH_COMMON_TEST_TEST_VOLUME_CONTROL_DELEGATE_H_ |
6 #define ASH_TEST_TEST_VOLUME_CONTROL_DELEGATE_H_ | 6 #define ASH_COMMON_TEST_TEST_VOLUME_CONTROL_DELEGATE_H_ |
7 | 7 |
8 #include "ash/common/system/volume_control_delegate.h" | 8 #include "ash/common/system/volume_control_delegate.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "ui/base/accelerators/accelerator.h" | 10 #include "ui/base/accelerators/accelerator.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 | 13 |
14 // A simple test double for a VolumeControlDelegate | 14 // A simple test double for a VolumeControlDelegate |
15 // Will count the number of times the HandleVolumeMute, HandleVolumeDown and | 15 // Will count the number of times the HandleVolumeMute, HandleVolumeDown and |
16 // HandleVolumeUp methods are invoked. | 16 // HandleVolumeUp methods are invoked. |
(...skipping 19 matching lines...) Expand all Loading... |
36 int handle_volume_mute_count_; | 36 int handle_volume_mute_count_; |
37 int handle_volume_down_count_; | 37 int handle_volume_down_count_; |
38 int handle_volume_up_count_; | 38 int handle_volume_up_count_; |
39 ui::Accelerator last_accelerator_; | 39 ui::Accelerator last_accelerator_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(TestVolumeControlDelegate); | 41 DISALLOW_COPY_AND_ASSIGN(TestVolumeControlDelegate); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace ash | 44 } // namespace ash |
45 | 45 |
46 #endif // ASH_TEST_TEST_VOLUME_CONTROL_DELEGATE_H_ | 46 #endif // ASH_COMMON_TEST_TEST_VOLUME_CONTROL_DELEGATE_H_ |
OLD | NEW |