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

Side by Side Diff: ui/file_manager/gallery/js/gallery_item_unittest.js

Issue 2678723002: Compile several targets in Gallery in gyp v2. (Closed)
Patch Set: Rebased. 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 /** 5 /**
6 * Mock of ImageUtil. 6 * Mock of ImageUtil and metrics.
7 */ 7 */
8 var ImageUtil = { 8 var ImageUtil = {
9 getMetricName: function() {}, 9 getMetricName: function() {},
10 metrics: { 10 };
11 recordEnum: function() {}, 11 var metrics = {
12 recordInterval: function() {}, 12 recordEnum: function() {},
13 startInterval: function() {} 13 recordInterval: function() {},
14 } 14 startInterval: function() {}
15 }; 15 };
16 16
17 /** 17 /**
18 * Mock of ImageEncoder. Since some test changes the behavior of ImageEncoder, 18 * Mock of ImageEncoder. Since some test changes the behavior of ImageEncoder,
19 * this is initialized in setUp(). 19 * this is initialized in setUp().
20 */ 20 */
21 var ImageEncoder; 21 var ImageEncoder;
22 22
23 /** 23 /**
24 * Load time data. 24 * Load time data.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // Jpeg file on non-writable volume. 301 // Jpeg file on non-writable volume.
302 assertFalse(getGalleryItem( 302 assertFalse(getGalleryItem(
303 '/test.jpg', removable, true /* read only */). 303 '/test.jpg', removable, true /* read only */).
304 isWritableFile(volumeManager)); 304 isWritableFile(volumeManager));
305 305
306 // Jpeg file on mtp volume. 306 // Jpeg file on mtp volume.
307 assertFalse(getGalleryItem( 307 assertFalse(getGalleryItem(
308 '/test.jpg', mtp, false /* not read only */). 308 '/test.jpg', mtp, false /* not read only */).
309 isWritableFile(volumeManager)); 309 isWritableFile(volumeManager));
310 }; 310 };
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/js/gallery_item.js ('k') | ui/file_manager/gallery/js/gallery_scripts.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698