| OLD | NEW |
| 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 Loading... |
| 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 }; |
| OLD | NEW |