1 // Copyright 2015 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 chrome.audio.OnMuteChanged.addListener(function (is_input, is_muted) {
6 if (is_input === false && is_muted === false) {
7 chrome.test.sendMessage("success");
9 console.error("Got unexpected OnMuteChanged event is_input:" + is_input +
10 " is_muted:" + is_muted);
11 chrome.test.sendMessage("failure");
14 chrome.test.sendMessage("loaded");