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

Unified Diff: chrome/test/data/extensions/api_test/preference/persistent_incognito/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/persistent_incognito/test.html
diff --git a/chrome/test/data/extensions/api_test/content_settings/persistent_incognito/test.html b/chrome/test/data/extensions/api_test/preference/persistent_incognito/test.html
similarity index 79%
rename from chrome/test/data/extensions/api_test/content_settings/persistent_incognito/test.html
rename to chrome/test/data/extensions/api_test/preference/persistent_incognito/test.html
index 486bd23d51959f228ecb528c0c10687f60d0aafa..d589d5feaeea7a5b520a117c60a28919d7d9727d 100644
--- a/chrome/test/data/extensions/api_test/content_settings/persistent_incognito/test.html
+++ b/chrome/test/data/extensions/api_test/preference/persistent_incognito/test.html
@@ -1,8 +1,8 @@
<script>
// Content settings API test
-// Run with browser_tests --gtest_filter=ExtensionApiTest.PersistentIncognitoContentSettings
+// Run with browser_tests --gtest_filter=ExtensionApiTest.PreferencePersistentIncognito
-var cs = chrome.experimental.contentSettings;
+var pw = chrome.experimental.privacy.websites;
function expect(expected, message) {
return chrome.test.callbackPass(function(value) {
chrome.test.assertNoLastError();
@@ -11,14 +11,14 @@ function expect(expected, message) {
}
chrome.test.runTests([
function getRegular() {
- cs.global.thirdPartyCookiesAllowed.get(
+ pw.thirdPartyCookiesAllowed.get(
{},
expect({ 'value': true,
'levelOfControl': "controllable_by_this_extension" },
"third-party cookies should not be blocked"));
},
function getIncognito() {
- cs.global.thirdPartyCookiesAllowed.get(
+ pw.thirdPartyCookiesAllowed.get(
{ 'incognito': true },
expect({ 'value': true,
'incognitoSpecific': false,
@@ -26,19 +26,19 @@ chrome.test.runTests([
"third-party cookies should not be blocked in incognito mode"));
},
function set() {
- cs.global.thirdPartyCookiesAllowed.set(
+ pw.thirdPartyCookiesAllowed.set(
{ 'scope': 'incognito_persistent', 'value': false },
chrome.test.callbackPass());
},
function getRegular2() {
- cs.global.thirdPartyCookiesAllowed.get(
+ pw.thirdPartyCookiesAllowed.get(
{},
expect({ 'value': true,
'levelOfControl': "controllable_by_this_extension" },
"third-party cookies should not be blocked"));
},
function getIncognito2() {
- cs.global.thirdPartyCookiesAllowed.get(
+ pw.thirdPartyCookiesAllowed.get(
{ 'incognito': true },
expect({ 'value': false,
'incognitoSpecific': true,

Powered by Google App Engine
This is Rietveld 408576698