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

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

Issue 2427913003: Use mojo volume interfaces for mash and classic ash. (Closed)
Patch Set: Split volume and system events observers; only hook up volume. Created 4 years, 2 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ash/common/test/test_volume_control_delegate.h"
6
7 namespace ash {
8
9 TestVolumeControlDelegate::TestVolumeControlDelegate()
10 : handle_volume_mute_count_(0),
11 handle_volume_down_count_(0),
12 handle_volume_up_count_(0) {}
13
14 TestVolumeControlDelegate::~TestVolumeControlDelegate() {}
15
16 void TestVolumeControlDelegate::HandleVolumeMute(
17 const ui::Accelerator& accelerator) {
18 ++handle_volume_mute_count_;
19 last_accelerator_ = accelerator;
20 }
21
22 void TestVolumeControlDelegate::HandleVolumeDown(
23 const ui::Accelerator& accelerator) {
24 ++handle_volume_down_count_;
25 last_accelerator_ = accelerator;
26 }
27
28 void TestVolumeControlDelegate::HandleVolumeUp(
29 const ui::Accelerator& accelerator) {
30 ++handle_volume_up_count_;
31 last_accelerator_ = accelerator;
32 }
33
34 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/test/test_volume_control_delegate.h ('k') | ash/mus/accelerators/accelerator_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698