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

Unified Diff: chrome/test/data/extensions/api_test/preference/data_reduction_proxy/test.js

Issue 1026123002: Change DataReductionProxy browser_tests to use dataReductionProxy API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | 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/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 da595ecb0df8f205e8bddc1b84b0c750325749d5..414ef39d564a1b09cc5aa64c30f6acf6b8c51d68 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
@@ -18,19 +18,21 @@ chrome.test.runTests([
},
result);
}));
- privatePreferences.dataReductionDailyContentLength.get({},
+ dataReductionProxy.dataReductionDailyContentLength.get({},
chrome.test.callbackPass(function(result) {
chrome.test.assertEq(
{
- 'value': []
+ 'value': [],
+ 'levelOfControl': 'controllable_by_this_extension'
},
result);
}));
- privatePreferences.dataReductionDailyReceivedLength.get({},
+ dataReductionProxy.dataReductionDailyReceivedLength.get({},
chrome.test.callbackPass(function(result) {
chrome.test.assertEq(
{
- 'value': []
+ 'value': [],
+ 'levelOfControl': 'controllable_by_this_extension'
},
result);
}));
@@ -44,9 +46,9 @@ chrome.test.runTests([
}));
},
function updateDailyLengths() {
- privatePreferences.dataReductionDailyContentLength.onChange.addListener(
+ dataReductionProxy.dataReductionDailyContentLength.onChange.addListener(
confirmDailyContentLength);
- privatePreferences.dataReductionDailyReceivedLength.onChange.addListener(
+ dataReductionProxy.dataReductionDailyReceivedLength.onChange.addListener(
confirmRecievedLength);
// Trigger calls to confirmDailyContentLength.onChange and
@@ -60,11 +62,12 @@ chrome.test.runTests([
expectedDailyLengths[i] = '0';
}
function confirmRecievedLength() {
- privatePreferences.dataReductionDailyReceivedLength.get({},
+ dataReductionProxy.dataReductionDailyReceivedLength.get({},
chrome.test.callbackPass(function(result) {
chrome.test.assertEq(
{
- 'value': expectedDailyLengths
+ 'value': expectedDailyLengths ,
+ 'levelOfControl': 'controllable_by_this_extension'
},
result);
}));
@@ -78,11 +81,12 @@ chrome.test.runTests([
}));
}
function confirmDailyContentLength() {
- privatePreferences.dataReductionDailyContentLength.get({},
+ dataReductionProxy.dataReductionDailyContentLength.get({},
chrome.test.callbackPass(function(result) {
chrome.test.assertEq(
{
- 'value': expectedDailyLengths
+ 'value': expectedDailyLengths ,
+ 'levelOfControl': 'controllable_by_this_extension'
},
result);
}));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698