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

Side by Side Diff: ash/common/test/test_volume_control_delegate.cc

Issue 2182443005: Moves TestVolumeControlDelegate to ash/common/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/common/test/test_volume_control_delegate.h ('k') | ash/test/test_volume_control_delegate.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 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_volume_control_delegate.h" 5 #include "ash/common/test/test_volume_control_delegate.h"
6 6
7 namespace ash { 7 namespace ash {
8 8
9 TestVolumeControlDelegate::TestVolumeControlDelegate() 9 TestVolumeControlDelegate::TestVolumeControlDelegate()
10 : handle_volume_mute_count_(0), 10 : handle_volume_mute_count_(0),
11 handle_volume_down_count_(0), 11 handle_volume_down_count_(0),
12 handle_volume_up_count_(0) {} 12 handle_volume_up_count_(0) {}
13 13
14 TestVolumeControlDelegate::~TestVolumeControlDelegate() {} 14 TestVolumeControlDelegate::~TestVolumeControlDelegate() {}
15 15
16 void TestVolumeControlDelegate::HandleVolumeMute( 16 void TestVolumeControlDelegate::HandleVolumeMute(
17 const ui::Accelerator& accelerator) { 17 const ui::Accelerator& accelerator) {
18 ++handle_volume_mute_count_; 18 ++handle_volume_mute_count_;
19 last_accelerator_ = accelerator; 19 last_accelerator_ = accelerator;
20 } 20 }
21 21
22 void TestVolumeControlDelegate::HandleVolumeDown( 22 void TestVolumeControlDelegate::HandleVolumeDown(
23 const ui::Accelerator& accelerator) { 23 const ui::Accelerator& accelerator) {
24 ++handle_volume_down_count_; 24 ++handle_volume_down_count_;
25 last_accelerator_ = accelerator; 25 last_accelerator_ = accelerator;
26 } 26 }
27 27
28 void TestVolumeControlDelegate::HandleVolumeUp( 28 void TestVolumeControlDelegate::HandleVolumeUp(
29 const ui::Accelerator& accelerator) { 29 const ui::Accelerator& accelerator) {
30 ++handle_volume_up_count_; 30 ++handle_volume_up_count_;
31 last_accelerator_ = accelerator; 31 last_accelerator_ = accelerator;
32 } 32 }
33 33
34 } // namespace ash 34 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/test/test_volume_control_delegate.h ('k') | ash/test/test_volume_control_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698