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

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

Issue 22382006: Use experimentation framework parameters for location sensitivity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 7 years, 4 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 f9a0593c58e203706510d08b348b844059723afb..b919fdb9001096ed3ac1b54a030586bf3a52a52a 100644
--- a/chrome/test/data/extensions/api_test/metrics/test.js
+++ b/chrome/test/data/extensions/api_test/metrics/test.js
@@ -71,6 +71,26 @@ chrome.test.runTests([
};
chrome.metricsPrivate.getFieldTrial('apitestfieldtrial1', test1Callback);
- }
+ },
+
+ function getVariationParams1() {
+ chrome.metricsPrivate.getVariationParams(
+ 'apitestfieldtrial1', function(params) {
+ chrome.test.assertEq('Variation parameters are unavailable.',
+ chrome.runtime.lastError.message);
+ chrome.test.assertEq(undefined, params);
+ chrome.test.succeed();
+ });
+ },
+
+ function getVariationParams2() {
+ chrome.metricsPrivate.getVariationParams(
+ 'apitestfieldtrial2', function(params) {
+ chrome.test.assertEq(undefined, chrome.runtime.lastError);
+ chrome.test.assertEq({a: 'aa', b: 'bb'}, params);
+ chrome.test.succeed();
+ });
+ },
+
]);
« 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