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

Side by Side Diff: extensions/test/data/api_test/audio/remove_nodes/background.js

Issue 2635983006: Final cleanup pass over audio device API (Closed)
Patch Set: . Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 chrome.test.runTests([ 5 chrome.test.runTests([
6 function waitForDeviceChangedEventTests() { 6 function waitForDeviceChangedEventTests() {
7 chrome.test.listenOnce(chrome.audio.OnDevicesChanged, function (devices) { 7 chrome.test.listenOnce(chrome.audio.onDeviceListChanged, function(devices) {
8 var deviceList = devices.map(function(device) { 8 var deviceList = devices.map(function(device) {
9 return { 9 return {
10 id: device.id, 10 id: device.id,
11 stableDeviceId: device.stableDeviceId, 11 stableDeviceId: device.stableDeviceId,
12 isInput: device.isInput, 12 isInput: device.isInput,
13 deviceType: device.deviceType, 13 deviceType: device.deviceType,
14 deviceName: device.deviceName, 14 deviceName: device.deviceName,
15 displayName: device.displayName 15 displayName: device.displayName
16 }; 16 };
17 }).sort(function(lhs, rhs) { 17 }).sort(function(lhs, rhs) {
(...skipping 13 matching lines...) Expand all
31 isInput: true, 31 isInput: true,
32 deviceType: 'USB', 32 deviceType: 'USB',
33 deviceName: 'Jabra Mic', 33 deviceName: 'Jabra Mic',
34 displayName: 'Jabra Mic 2' 34 displayName: 'Jabra Mic 2'
35 }], deviceList); 35 }], deviceList);
36 }); 36 });
37 } 37 }
38 ]); 38 ]);
39 39
40 chrome.test.sendMessage('loaded'); 40 chrome.test.sendMessage('loaded');
OLDNEW
« no previous file with comments | « extensions/test/data/api_test/audio/add_nodes/background.js ('k') | extensions/test/data/api_test/audio/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698