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

Unified Diff: chrome/test/data/extensions/api_test/metrics/test.js

Issue 17496005: Add a private API method metricsPrivate.getFieldTrial(), which returns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment. Created 7 years, 6 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/common/extensions/api/metrics_private.json ('k') | no next file » | 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 6389742eac922029b25df8ff5cb7b723e68e2a6a..f9a0593c58e203706510d08b348b844059723afb 100644
--- a/chrome/test/data/extensions/api_test/metrics/test.js
+++ b/chrome/test/data/extensions/api_test/metrics/test.js
@@ -57,6 +57,20 @@ chrome.test.runTests([
chrome.metricsPrivate.recordSmallCount('test.small.count', 42);
chrome.test.succeed();
+ },
+
+ function getFieldTrial() {
+ var test1Callback = function(group) {
+ chrome.test.assertEq('', group);
+ chrome.metricsPrivate.getFieldTrial('apitestfieldtrial2', test2Callback);
+ };
+
+ var test2Callback = function(group) {
+ chrome.test.assertEq('group1', group);
+ chrome.test.succeed();
+ };
+
+ chrome.metricsPrivate.getFieldTrial('apitestfieldtrial1', test1Callback);
}
]);
« no previous file with comments | « chrome/common/extensions/api/metrics_private.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698