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

Side by Side Diff: chrome/test/data/extensions/api_test/preference/standard/test.js

Issue 9244005: Move the `privacy` extension API out of experimental. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: License. Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/extensions/api_test/preference/standard/manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Preferences API test 5 // Preferences API test
6 // Run with browser_tests --gtest_filter=ExtensionApiTest.PreferenceApi 6 // Run with browser_tests --gtest_filter=ExtensionApiTest.PreferenceApi
7 7
8 var preferences_to_test = [ 8 var preferences_to_test = [
9 { 9 {
10 root: chrome.experimental.privacy.network, 10 root: chrome.privacy.network,
11 preferences: [ 11 preferences: [
12 'networkPredictionEnabled' 12 'networkPredictionEnabled'
13 ] 13 ]
14 }, 14 },
15 { 15 {
16 root: chrome.experimental.privacy.websites, 16 root: chrome.privacy.websites,
17 preferences: [ 17 preferences: [
18 'thirdPartyCookiesAllowed', 18 'thirdPartyCookiesAllowed',
19 'hyperlinkAuditingEnabled', 19 'hyperlinkAuditingEnabled',
20 'referrersEnabled' 20 'referrersEnabled'
21 ] 21 ]
22 }, 22 },
23 { 23 {
24 root: chrome.experimental.privacy.services, 24 root: chrome.privacy.services,
25 preferences: [ 25 preferences: [
26 'alternateErrorPagesEnabled', 26 'alternateErrorPagesEnabled',
27 'autofillEnabled', 27 'autofillEnabled',
28 'instantEnabled', 28 'instantEnabled',
29 // TODO(mkwst): 'metricsReportingEnabled',
30 'safeBrowsingEnabled', 29 'safeBrowsingEnabled',
31 'searchSuggestEnabled', 30 'searchSuggestEnabled',
32 'translationServiceEnabled' 31 'translationServiceEnabled'
33 ] 32 ]
34 }, 33 },
35 ]; 34 ];
36 35
37 function expect(expected, message) { 36 function expect(expected, message) {
38 return chrome.test.callbackPass(function(value) { 37 return chrome.test.callbackPass(function(value) {
39 chrome.test.assertEq(expected, value, message); 38 chrome.test.assertEq(expected, value, message);
(...skipping 22 matching lines...) Expand all
62 prefGetter.bind(preferences_to_test[i].root)); 61 prefGetter.bind(preferences_to_test[i].root));
63 } 62 }
64 }, 63 },
65 function setGlobals() { 64 function setGlobals() {
66 for (var i = 0; i < preferences_to_test.length; i++) { 65 for (var i = 0; i < preferences_to_test.length; i++) {
67 preferences_to_test[i].preferences.forEach( 66 preferences_to_test[i].preferences.forEach(
68 prefSetter.bind(preferences_to_test[i].root)); 67 prefSetter.bind(preferences_to_test[i].root));
69 } 68 }
70 } 69 }
71 ]); 70 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/preference/standard/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698