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

Unified Diff: ash/common/test/test_volume_control_delegate.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/test/BUILD.gn ('k') | ash/common/test/test_volume_control_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_volume_control_delegate.h
diff --git a/ash/common/test/test_volume_control_delegate.h b/ash/common/test/test_volume_control_delegate.h
deleted file mode 100644
index 6f8bb9409a708ab6367ff4ae82c27534b1c67663..0000000000000000000000000000000000000000
--- a/ash/common/test/test_volume_control_delegate.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_TEST_TEST_VOLUME_CONTROL_DELEGATE_H_
-#define ASH_COMMON_TEST_TEST_VOLUME_CONTROL_DELEGATE_H_
-
-#include "ash/common/system/volume_control_delegate.h"
-#include "base/macros.h"
-#include "ui/base/accelerators/accelerator.h"
-
-namespace ash {
-
-// A simple test double for a VolumeControlDelegate
-// Will count the number of times the HandleVolumeMute, HandleVolumeDown and
-// HandleVolumeUp methods are invoked.
-class TestVolumeControlDelegate : public ash::VolumeControlDelegate {
- public:
- TestVolumeControlDelegate();
- ~TestVolumeControlDelegate() override;
-
- int handle_volume_mute_count() const { return handle_volume_mute_count_; }
-
- int handle_volume_down_count() const { return handle_volume_down_count_; }
-
- int handle_volume_up_count() const { return handle_volume_up_count_; }
-
- const ui::Accelerator& last_accelerator() const { return last_accelerator_; }
-
- // ash::VolumeControlDelegate:
- void HandleVolumeMute(const ui::Accelerator& accelerator) override;
- void HandleVolumeDown(const ui::Accelerator& accelerator) override;
- void HandleVolumeUp(const ui::Accelerator& accelerator) override;
-
- private:
- int handle_volume_mute_count_;
- int handle_volume_down_count_;
- int handle_volume_up_count_;
- ui::Accelerator last_accelerator_;
-
- DISALLOW_COPY_AND_ASSIGN(TestVolumeControlDelegate);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_TEST_TEST_VOLUME_CONTROL_DELEGATE_H_
« no previous file with comments | « ash/common/test/BUILD.gn ('k') | ash/common/test/test_volume_control_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698