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

Side by Side Diff: chrome/test/data/extensions/api_test/media_galleries_private/attachdetach/test.js

Issue 10919276: Cleanup: Fix nits from r156409. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 var attached_device_id = '42'; 5 var attachedDeviceId = '42';
6 6
7 chrome.mediaGalleriesPrivate.onDeviceAttached.addListener(function(details) { 7 chrome.mediaGalleriesPrivate.onDeviceAttached.addListener(function(details) {
8 // Save the device id for the detach test. 8 // Save the device id for the detach test.
9 attached_device_id = details.deviceId; 9 attachedDeviceId = details.deviceId;
10 // The C++ test code will check if this is ok. 10 // The C++ test code will check if this is ok.
11 chrome.test.sendMessage('attach_test_ok,' + details.deviceName); 11 chrome.test.sendMessage('attach_test_ok,' + details.deviceName);
12 }); 12 });
13 13
14 chrome.mediaGalleriesPrivate.onDeviceDetached.addListener(function(details) { 14 chrome.mediaGalleriesPrivate.onDeviceDetached.addListener(function(details) {
15 // The C++ test does not know the device id, so check here. 15 // The C++ test does not know the device id, so check here.
16 if (details.deviceId != attached_device_id) { 16 if (details.deviceId != attachedDeviceId) {
17 chrome.test.fail('Bad device id in onDeviceDetached test.'); 17 chrome.test.fail('Bad device id in onDeviceDetached test.');
18 return; 18 return;
19 } 19 }
20 chrome.test.sendMessage('detach_test_ok'); 20 chrome.test.sendMessage('detach_test_ok');
21 }); 21 });
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698