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

Unified Diff: chrome/test/data/extensions/api_test/preference/clear/test.html

Issue 7298005: Expose privacy-relevant preferences via Chrome's extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing. Created 9 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
Index: chrome/test/data/extensions/api_test/preference/clear/test.html
diff --git a/chrome/test/data/extensions/api_test/content_settings/clear/test.html b/chrome/test/data/extensions/api_test/preference/clear/test.html
similarity index 69%
rename from chrome/test/data/extensions/api_test/content_settings/clear/test.html
rename to chrome/test/data/extensions/api_test/preference/clear/test.html
index 69ffc7bf207009849c8d50729721a7046353df64..6e97d101d7c365a2c9ce64723fa9947260d6aa57 100644
--- a/chrome/test/data/extensions/api_test/content_settings/clear/test.html
+++ b/chrome/test/data/extensions/api_test/preference/clear/test.html
@@ -1,11 +1,11 @@
<script>
// Content settings API test
-// Run with browser_tests --gtest_filter=ExtensionApiTest.ContentSettingsClear
+// Run with browser_tests --gtest_filter=ExtensionApiTest.PreferenceClear
-var cs = chrome.experimental.contentSettings;
+var pw = chrome.experimental.privacy.websites;
chrome.test.runTests([
function getThirdPartyCookiesAllowed() {
- cs.global.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
+ pw.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
function(allowed) {
chrome.test.assertEq(
allowed,
@@ -17,15 +17,15 @@ chrome.test.runTests([
}));
},
function setThirdPartyCookiesAllowed() {
- cs.global.thirdPartyCookiesAllowed.set(
+ pw.thirdPartyCookiesAllowed.set(
{'value': true},
chrome.test.callbackPass());
},
function clearThirdPartyCookiesAllowed() {
- cs.global.thirdPartyCookiesAllowed.clear({}, chrome.test.callbackPass());
+ pw.thirdPartyCookiesAllowed.clear({}, chrome.test.callbackPass());
},
function getThirdPartyCookiesAllowed2() {
- cs.global.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
+ pw.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
function(allowed) {
chrome.test.assertEq(
allowed,

Powered by Google App Engine
This is Rietveld 408576698