OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <memory> | 5 #include <memory> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "ash/common/accessibility_delegate.h" | 8 #include "ash/accessibility_delegate.h" |
9 #include "ash/common/accessibility_types.h" | 9 #include "ash/accessibility_types.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 13 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
14 #include "chrome/browser/ui/ash/volume_controller.h" | 14 #include "chrome/browser/ui/ash/volume_controller.h" |
15 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
16 #include "chromeos/audio/chromeos_sounds.h" | 16 #include "chromeos/audio/chromeos_sounds.h" |
17 #include "chromeos/audio/cras_audio_handler.h" | 17 #include "chromeos/audio/cras_audio_handler.h" |
18 #include "chromeos/chromeos_switches.h" | 18 #include "chromeos/chromeos_switches.h" |
19 #include "media/audio/sounds/sounds_manager.h" | 19 #include "media/audio/sounds/sounds_manager.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 EXPECT_FALSE(is_sound_initialized()); | 238 EXPECT_FALSE(is_sound_initialized()); |
239 | 239 |
240 // Check that sound isn't played on volume up and volume down. | 240 // Check that sound isn't played on volume up and volume down. |
241 audio_handler_->SetOutputVolumePercent(50); | 241 audio_handler_->SetOutputVolumePercent(50); |
242 volume_controller_->VolumeUp(); | 242 volume_controller_->VolumeUp(); |
243 volume_controller_->VolumeDown(); | 243 volume_controller_->VolumeDown(); |
244 EXPECT_EQ(0, num_play_requests()); | 244 EXPECT_EQ(0, num_play_requests()); |
245 } | 245 } |
246 | 246 |
247 } // namespace | 247 } // namespace |
OLD | NEW |