Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / extensions / test / data / api_test / audio / input_mute_change / background.js
blobf248c6196adf342efd18425f02c1dde77789998b
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 === true && is_muted === true) {
7 chrome.test.sendMessage("success");
8 } else {
9 console.error("Got unexpected OnMuteChanged event is_input:" + is_input +
10 " is_muted:" + is_muted);
11 chrome.test.sendMessage("failure");
13 });
14 chrome.test.sendMessage("loaded");