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

Unified Diff: chrome/test/data/extensions/api_test/metrics/test.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/hotword/metrics.js ('k') | components/chrome_apps/webstore_widget/app/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/metrics/test.js
diff --git a/chrome/test/data/extensions/api_test/metrics/test.js b/chrome/test/data/extensions/api_test/metrics/test.js
index 4f2b264d8b73df9e7109fef66bf011fe696c9ff2..ab801e220287d1a0bd5ad208ffb412e1ccf2e8fb 100644
--- a/chrome/test/data/extensions/api_test/metrics/test.js
+++ b/chrome/test/data/extensions/api_test/metrics/test.js
@@ -23,7 +23,7 @@ chrome.test.runTests([
function recordValue() {
chrome.metricsPrivate.recordValue({
'metricName': 'test.h.1',
- 'type': 'histogram-log',
+ 'type': chrome.metricsPrivate.MetricTypeType.HISTOGRAM_LOG,
'min': 1,
'max': 100,
'buckets': 50
@@ -31,7 +31,7 @@ chrome.test.runTests([
chrome.metricsPrivate.recordValue({
'metricName': 'test.h.2',
- 'type': 'histogram-linear',
+ 'type': chrome.metricsPrivate.MetricTypeType.HISTOGRAM_LINEAR,
'min': 1,
'max': 200,
'buckets': 50
@@ -108,28 +108,28 @@ chrome.test.runTests([
function testBucketSizeChanges() {
var linear1 = {
'metricName': 'test.bucketchange.linear',
- 'type': 'histogram-linear',
+ 'type': chrome.metricsPrivate.MetricTypeType.HISTOGRAM_LINEAR,
'min': 0,
'max': 100,
'buckets': 10
};
var linear2 = {
'metricName': 'test.bucketchange.linear',
- 'type': 'histogram-linear',
+ 'type': chrome.metricsPrivate.MetricTypeType.HISTOGRAM_LINEAR,
'min': 0,
'max': 100,
'buckets': 20
};
var log1 = {
'metricName': 'test.bucketchange.log',
- 'type': 'histogram-log',
+ 'type': chrome.metricsPrivate.MetricTypeType.HISTOGRAM_LOG,
'min': 0,
'max': 100,
'buckets': 10
};
var log2 = {
'metricName': 'test.bucketchange.log',
- 'type': 'histogram-log',
+ 'type': chrome.metricsPrivate.MetricTypeType.HISTOGRAM_LOG,
'min': 0,
'max': 100,
'buckets': 20
« no previous file with comments | « chrome/browser/resources/hotword/metrics.js ('k') | components/chrome_apps/webstore_widget/app/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698