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

Side by Side Diff: ui/file_manager/image_loader/image_loader_client_unittest.js

Issue 2346683004: Update chrome.metricsPrivate externs and make closure fixes (Closed)
Patch Set: fix file manager test Created 4 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
« no previous file with comments | « ui/file_manager/image_loader/image_loader_client.js ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 'use strict'; 5 'use strict';
6 6
7 var chrome = { 7 var chrome = {
8 metricsPrivate: { 8 metricsPrivate: {
9 MetricTypeType: {
10 HISTOGRAM_LOG: 'histogram-log',
11 HISTOGRAM_LINEAR: 'histogram-linear'
12 },
9 recordPercentage: function() {}, 13 recordPercentage: function() {},
10 recordValue: function() {} 14 recordValue: function() {}
11 }, 15 },
12 i18n: { 16 i18n: {
13 getMessage: function() {} 17 getMessage: function() {}
14 } 18 }
15 }; 19 };
16 20
17 /** 21 /**
18 * Lets the client to load URL and returns the local cache (not caches in the 22 * Lets the client to load URL and returns the local cache (not caches in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 loadAndCheckCacheUsed(client, 'data:URI', {cache: true}). 81 loadAndCheckCacheUsed(client, 'data:URI', {cache: true}).
78 then(function(cacheUsed) { 82 then(function(cacheUsed) {
79 assertFalse(cacheUsed); 83 assertFalse(cacheUsed);
80 return loadAndCheckCacheUsed(client, 'data:URI', {cache: true}); 84 return loadAndCheckCacheUsed(client, 'data:URI', {cache: true});
81 }). 85 }).
82 then(function(cacheUsed) { 86 then(function(cacheUsed) {
83 assertFalse(cacheUsed); 87 assertFalse(cacheUsed);
84 }), 88 }),
85 callback); 89 callback);
86 } 90 }
OLDNEW
« no previous file with comments | « ui/file_manager/image_loader/image_loader_client.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698