Index: chrome/test/data/extensions/api_test/preference/data_reduction_proxy/test.js |
diff --git a/chrome/test/data/extensions/api_test/preference/data_reduction_proxy/test.js b/chrome/test/data/extensions/api_test/preference/data_reduction_proxy/test.js |
index d76d6e12a0dee7de8af29692fab08807c4d9789a..876fa6a5866e790ae8254f53b8ed2d60abdce638 100644 |
--- a/chrome/test/data/extensions/api_test/preference/data_reduction_proxy/test.js |
+++ b/chrome/test/data/extensions/api_test/preference/data_reduction_proxy/test.js |
@@ -6,6 +6,7 @@ |
// Run with browser_tests --gtest_filter=ExtensionApiTest.DataReductionProxy |
var drp = chrome.dataReductionProxy; |
+var pp = chrome.preferencesPrivate; |
bengr
2014/12/22 21:57:21
I'd prefer that these variables be spelled out: da
Not at Google. Contact bengr
2014/12/22 22:15:17
Done.
|
chrome.test.runTests([ |
function getDrpPrefs() { |
drp.spdyProxyEnabled.get({}, chrome.test.callbackPass( |
@@ -35,12 +36,11 @@ chrome.test.runTests([ |
}, |
result); |
})); |
- drp.dataReductionUpdateDailyLengths.get({}, chrome.test.callbackPass( |
+ pp.dataReductionUpdateDailyLengths.get({}, chrome.test.callbackPass( |
function(result) { |
chrome.test.assertEq( |
{ |
- 'value': false, |
- 'levelOfControl': 'controllable_by_this_extension' |
+ 'value': false |
}, |
result); |
})); |
@@ -54,7 +54,7 @@ chrome.test.runTests([ |
// Trigger calls to confirmDailyContentLength.onChange and |
// dataReductionDailyReceivedLength.onChange listeners. |
drp.spdyProxyEnabled.set({ 'value': true }); |
- drp.dataReductionUpdateDailyLengths.set({'value': true}); |
+ pp.dataReductionUpdateDailyLengths.set({'value': true}); |
// Helper methods. |
var expectedDailyLengths = []; |
@@ -71,6 +71,14 @@ chrome.test.runTests([ |
}, |
result); |
})); |
+ pp.dataReductionUpdateDailyLengths.get({}, |
+ chrome.test.callbackPass(function(result) { |
+ chrome.test.assertEq( |
+ { |
+ 'value': false |
+ }, |
+ result); |
+ })); |
} |
function confirmDailyContentLength() { |
drp.dataReductionDailyContentLength.get({}, |
@@ -82,6 +90,14 @@ chrome.test.runTests([ |
}, |
result); |
})); |
+ pp.dataReductionUpdateDailyLengths.get({}, |
+ chrome.test.callbackPass(function(result) { |
+ chrome.test.assertEq( |
+ { |
+ 'value': false |
+ }, |
+ result); |
+ })); |
} |
} |
]); |