Add ICU message format support
[chromium-blink-merge.git] / ash / test / test_volume_control_delegate.cc
blob4460b2f653782d0dce895b8b444ca1bd20515d27
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.
5 #include "ash/test/test_volume_control_delegate.h"
7 namespace ash {
9 TestVolumeControlDelegate::TestVolumeControlDelegate()
10 : handle_volume_mute_count_(0),
11 handle_volume_down_count_(0),
12 handle_volume_up_count_(0) {
15 TestVolumeControlDelegate::~TestVolumeControlDelegate() {
18 void TestVolumeControlDelegate::HandleVolumeMute(
19 const ui::Accelerator& accelerator) {
20 ++handle_volume_mute_count_;
21 last_accelerator_ = accelerator;
24 void TestVolumeControlDelegate::HandleVolumeDown(
25 const ui::Accelerator& accelerator) {
26 ++handle_volume_down_count_;
27 last_accelerator_ = accelerator;
30 void TestVolumeControlDelegate::HandleVolumeUp(
31 const ui::Accelerator& accelerator) {
32 ++handle_volume_up_count_;
33 last_accelerator_ = accelerator;
36 } // namespace ash