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

Unified Diff: chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc

Issue 10873085: Implement two new policies to control muting the audio I/O. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT. Created 8 years, 3 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 | « chrome/browser/policy/configuration_policy_pref_store_unittest.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc
diff --git a/chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc b/chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc
index ec9da1455cb80839d0f10db02b58a274a47c2eae..b5126bada68ba73703600a9c8587b4a638e20cc3 100644
--- a/chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc
+++ b/chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc
@@ -34,13 +34,40 @@ class MockAudioMixer : public chromeos::AudioMixer {
return is_muted_;
}
- virtual void SetMuted(bool do_mute) OVERRIDE {
- is_muted_ = do_mute;
+ virtual void SetMuted(bool mute) OVERRIDE {
+ is_muted_ = mute;
+ }
+
+ bool IsMuteLocked() OVERRIDE {
+ return is_mute_locked_;
+ }
+
+ void SetMuteLocked(bool locked) OVERRIDE {
+ is_mute_locked_ = locked;
+ }
+
+ bool IsCaptureMuted() OVERRIDE {
+ return is_capture_muted_;
+ }
+
+ void SetCaptureMuted(bool mute) OVERRIDE {
+ is_capture_muted_ = mute;
+ }
+
+ bool IsCaptureMuteLocked() OVERRIDE {
+ return is_capture_mute_locked_;
+ }
+
+ void SetCaptureMuteLocked(bool locked) OVERRIDE {
+ is_capture_mute_locked_ = locked;
}
private:
double volume_;
bool is_muted_;
+ bool is_mute_locked_;
+ bool is_capture_muted_;
+ bool is_capture_mute_locked_;
DISALLOW_COPY_AND_ASSIGN(MockAudioMixer);
};
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store_unittest.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698