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

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

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/test/test_volume_control_delegate.h ('k') | ash/test/ui_controls_factory_ash.cc » ('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/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 }
14 13
15 TestVolumeControlDelegate::~TestVolumeControlDelegate() { 14 TestVolumeControlDelegate::~TestVolumeControlDelegate() {}
16 }
17 15
18 void TestVolumeControlDelegate::HandleVolumeMute( 16 void TestVolumeControlDelegate::HandleVolumeMute(
19 const ui::Accelerator& accelerator) { 17 const ui::Accelerator& accelerator) {
20 ++handle_volume_mute_count_; 18 ++handle_volume_mute_count_;
21 last_accelerator_ = accelerator; 19 last_accelerator_ = accelerator;
22 } 20 }
23 21
24 void TestVolumeControlDelegate::HandleVolumeDown( 22 void TestVolumeControlDelegate::HandleVolumeDown(
25 const ui::Accelerator& accelerator) { 23 const ui::Accelerator& accelerator) {
26 ++handle_volume_down_count_; 24 ++handle_volume_down_count_;
27 last_accelerator_ = accelerator; 25 last_accelerator_ = accelerator;
28 } 26 }
29 27
30 void TestVolumeControlDelegate::HandleVolumeUp( 28 void TestVolumeControlDelegate::HandleVolumeUp(
31 const ui::Accelerator& accelerator) { 29 const ui::Accelerator& accelerator) {
32 ++handle_volume_up_count_; 30 ++handle_volume_up_count_;
33 last_accelerator_ = accelerator; 31 last_accelerator_ = accelerator;
34 } 32 }
35 33
36 } // namespace ash 34 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/test_volume_control_delegate.h ('k') | ash/test/ui_controls_factory_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698