/external/chromium_org/content/renderer/ |
D | web_preferences.cc | 116 void ApplyWebPreferences(const WebPreferences& prefs, WebView* web_view) { in ApplyWebPreferences() argument 118 ApplyFontsFromMap(prefs.standard_font_family_map, in ApplyWebPreferences() 120 ApplyFontsFromMap(prefs.fixed_font_family_map, in ApplyWebPreferences() 122 ApplyFontsFromMap(prefs.serif_font_family_map, in ApplyWebPreferences() 124 ApplyFontsFromMap(prefs.sans_serif_font_family_map, in ApplyWebPreferences() 126 ApplyFontsFromMap(prefs.cursive_font_family_map, in ApplyWebPreferences() 128 ApplyFontsFromMap(prefs.fantasy_font_family_map, in ApplyWebPreferences() 130 ApplyFontsFromMap(prefs.pictograph_font_family_map, in ApplyWebPreferences() 132 settings->setDefaultFontSize(prefs.default_font_size); in ApplyWebPreferences() 133 settings->setDefaultFixedFontSize(prefs.default_fixed_font_size); in ApplyWebPreferences() [all …]
|
/external/chromium_org/chrome/browser/prefs/ |
D | session_startup_pref.cc | 42 void SetNewURLList(PrefService* prefs) { in SetNewURLList() argument 43 if (prefs->IsUserModifiablePreference(prefs::kURLsToRestoreOnStartup)) { in SetNewURLList() 46 new base::StringValue(prefs->GetString(prefs::kHomePage)); in SetNewURLList() 48 prefs->Set(prefs::kURLsToRestoreOnStartup, new_url_pref_list); in SetNewURLList() 69 prefs::kRestoreOnStartup, in RegisterProfilePrefs() 72 registry->RegisterListPref(prefs::kURLsToRestoreOnStartup, in RegisterProfilePrefs() 74 registry->RegisterListPref(prefs::kURLsToRestoreOnStartupOld, in RegisterProfilePrefs() 77 prefs::kRestoreOnStartupMigrated, in RegisterProfilePrefs() 81 prefs::kRestoreStartupURLsMigrationTime, in RegisterProfilePrefs() 104 void SessionStartupPref::SetStartupPref(PrefService* prefs, in SetStartupPref() argument [all …]
|
D | pref_functional_browsertest.cc | 55 prefs::kDownloadDefaultDirectory, new_download_dir.path()); in IN_PROC_BROWSER_TEST_F() 93 browser()->profile()->GetPrefs()->Set(prefs::kDefaultContentSettings, in IN_PROC_BROWSER_TEST_F() 113 prefs::kWebKitJavascriptEnabled)); in IN_PROC_BROWSER_TEST_F() 119 browser()->profile()->GetPrefs()->SetBoolean(prefs::kWebKitJavascriptEnabled, in IN_PROC_BROWSER_TEST_F() 131 prefs::kNetworkPredictionEnabled)); in IN_PROC_BROWSER_TEST_F() 132 browser()->profile()->GetPrefs()->SetBoolean(prefs::kNetworkPredictionEnabled, in IN_PROC_BROWSER_TEST_F() 135 prefs::kNetworkPredictionEnabled)); in IN_PROC_BROWSER_TEST_F() 142 prefs::kShowBookmarkBar)); in IN_PROC_BROWSER_TEST_F() 143 browser()->profile()->GetPrefs()->SetBoolean(prefs::kShowBookmarkBar, true); in IN_PROC_BROWSER_TEST_F() 145 prefs::kShowBookmarkBar)); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/chrome/browser/chromeos/power/ |
D | power_prefs.cc | 50 prefs::kPowerBatteryIdleAction, in RegisterUserProfilePrefs() 54 prefs::kPowerLidClosedAction, in RegisterUserProfilePrefs() 65 prefs::kPowerBatteryIdleAction, in RegisterLoginProfilePrefs() 69 prefs::kPowerLidClosedAction, in RegisterLoginProfilePrefs() 103 if (!pref_change_registrar_ || !pref_change_registrar_->prefs()) { in UpdatePowerPolicyFromPrefs() 108 const PrefService* prefs = pref_change_registrar_->prefs(); in UpdatePowerPolicyFromPrefs() local 111 prefs->GetInteger(prefs::kPowerAcScreenDimDelayMs); in UpdatePowerPolicyFromPrefs() 113 prefs->GetInteger(prefs::kPowerAcScreenOffDelayMs); in UpdatePowerPolicyFromPrefs() 115 prefs->GetInteger(prefs::kPowerAcScreenLockDelayMs); in UpdatePowerPolicyFromPrefs() 117 prefs->GetInteger(prefs::kPowerAcIdleWarningDelayMs); in UpdatePowerPolicyFromPrefs() [all …]
|
/external/chromium_org/chrome/browser/sync/test/integration/ |
D | two_client_preferences_sync_test.cc | 53 ASSERT_TRUE(BooleanPrefMatches(prefs::kHomePageIsNewTabPage)); in IN_PROC_BROWSER_TEST_F() 55 ChangeBooleanPref(0, prefs::kHomePageIsNewTabPage); in IN_PROC_BROWSER_TEST_F() 57 ASSERT_TRUE(BooleanPrefMatches(prefs::kHomePageIsNewTabPage)); in IN_PROC_BROWSER_TEST_F() 65 ASSERT_TRUE(StringPrefMatches(prefs::kHomePage)); in IN_PROC_BROWSER_TEST_F() 67 ChangeStringPref(0, prefs::kHomePage, "http://www.google.com/0"); in IN_PROC_BROWSER_TEST_F() 68 ChangeStringPref(1, prefs::kHomePage, "http://www.google.com/1"); in IN_PROC_BROWSER_TEST_F() 70 ASSERT_TRUE(StringPrefMatches(prefs::kHomePage)); in IN_PROC_BROWSER_TEST_F() 78 BooleanPrefMatches(password_manager::prefs::kPasswordManagerEnabled)); in IN_PROC_BROWSER_TEST_F() 80 ChangeBooleanPref(0, password_manager::prefs::kPasswordManagerEnabled); in IN_PROC_BROWSER_TEST_F() 83 BooleanPrefMatches(password_manager::prefs::kPasswordManagerEnabled)); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/preference/ |
D | preference_apitest.cc | 32 PrefService* prefs = profile_->GetPrefs(); in CheckPreferencesSet() local 33 const PrefService::Preference* pref = prefs->FindPreference( in CheckPreferencesSet() 34 prefs::kBlockThirdPartyCookies); in CheckPreferencesSet() 37 EXPECT_TRUE(prefs->GetBoolean(prefs::kAlternateErrorPagesEnabled)); in CheckPreferencesSet() 38 EXPECT_TRUE(prefs->GetBoolean(autofill::prefs::kAutofillEnabled)); in CheckPreferencesSet() 39 EXPECT_FALSE(prefs->GetBoolean(prefs::kBlockThirdPartyCookies)); in CheckPreferencesSet() 40 EXPECT_TRUE(prefs->GetBoolean(prefs::kEnableHyperlinkAuditing)); in CheckPreferencesSet() 41 EXPECT_TRUE(prefs->GetBoolean(prefs::kEnableReferrers)); in CheckPreferencesSet() 42 EXPECT_TRUE(prefs->GetBoolean(prefs::kEnableTranslate)); in CheckPreferencesSet() 43 EXPECT_TRUE(prefs->GetBoolean(prefs::kNetworkPredictionEnabled)); in CheckPreferencesSet() [all …]
|
/external/chromium_org/base/prefs/ |
D | pref_value_store_unittest.cc | 38 namespace prefs { namespace 131 prefs::kManagedPref, in CreateManagedPrefs() 138 prefs::kManagedPref, in CreateSupervisedUserPrefs() 141 prefs::kSupervisedUserPref, in CreateSupervisedUserPrefs() 148 prefs::kManagedPref, in CreateExtensionPrefs() 151 prefs::kSupervisedUserPref, in CreateExtensionPrefs() 154 prefs::kExtensionPref, in CreateExtensionPrefs() 161 prefs::kManagedPref, in CreateCommandLinePrefs() 164 prefs::kSupervisedUserPref, in CreateCommandLinePrefs() 167 prefs::kExtensionPref, in CreateCommandLinePrefs() [all …]
|
D | pref_member_unittest.cc | 38 void Init(const char* pref_name, PrefService* prefs) { in Init() argument 39 pref_.Init(pref_name, prefs); in Init() 81 explicit PrefMemberTestClass(PrefService* prefs) in PrefMemberTestClass() argument 82 : observe_cnt_(0), prefs_(prefs) { in PrefMemberTestClass() 83 str_.Init(kStringPref, prefs, in PrefMemberTestClass() 104 TestingPrefServiceSimple prefs; in TEST() local 105 RegisterTestPrefs(prefs.registry()); in TEST() 109 boolean.Init(kBoolPref, &prefs); in TEST() 112 EXPECT_FALSE(prefs.GetBoolean(kBoolPref)); in TEST() 119 EXPECT_TRUE(prefs.GetBoolean(kBoolPref)); in TEST() [all …]
|
/external/chromium_org/chrome/browser/chromeos/ |
D | preferences_browsertest.cc | 63 void SetPrefs(PrefService* prefs, bool variant) { in SetPrefs() argument 64 prefs->SetBoolean(prefs::kTapToClickEnabled, variant); in SetPrefs() 65 prefs->SetBoolean(prefs::kPrimaryMouseButtonRight, !variant); in SetPrefs() 66 prefs->SetBoolean(prefs::kTapDraggingEnabled, variant); in SetPrefs() 67 prefs->SetBoolean(prefs::kEnableTouchpadThreeFingerClick, !variant); in SetPrefs() 68 prefs->SetBoolean(prefs::kNaturalScroll, variant); in SetPrefs() 69 prefs->SetInteger(prefs::kMouseSensitivity, !variant); in SetPrefs() 70 prefs->SetInteger(prefs::kTouchpadSensitivity, variant); in SetPrefs() 71 prefs->SetBoolean(prefs::kTouchHudProjectionEnabled, !variant); in SetPrefs() 72 prefs->SetBoolean(prefs::kLanguageXkbAutoRepeatEnabled, variant); in SetPrefs() [all …]
|
D | preferences.cc | 83 registry->RegisterBooleanPref(prefs::kOwnerPrimaryMouseButtonRight, false); in RegisterPrefs() 84 registry->RegisterBooleanPref(prefs::kOwnerTapToClickEnabled, true); in RegisterPrefs() 85 registry->RegisterBooleanPref(prefs::kAccessibilityVirtualKeyboardEnabled, in RegisterPrefs() 87 registry->RegisterStringPref(prefs::kLogoutStartedLast, std::string()); in RegisterPrefs() 100 local_state->GetString(prefs::kHardwareKeyboardLayout); in RegisterProfilePrefs() 106 prefs::kPerformanceTracingEnabled, in RegisterProfilePrefs() 111 prefs::kTapToClickEnabled, in RegisterProfilePrefs() 115 prefs::kTapDraggingEnabled, in RegisterProfilePrefs() 119 prefs::kEnableTouchpadThreeFingerClick, in RegisterProfilePrefs() 123 prefs::kNaturalScroll, in RegisterProfilePrefs() [all …]
|
/external/chromium_org/chrome/browser/ui/prefs/ |
D | prefs_tab_helper.cc | 50 prefs::kDefaultCharset, 51 prefs::kWebKitAllowDisplayingInsecureContent, 52 prefs::kWebKitAllowRunningInsecureContent, 53 prefs::kWebKitDefaultFixedFontSize, 54 prefs::kWebKitDefaultFontSize, 56 prefs::kWebKitFontScaleFactor, 57 prefs::kWebKitForceEnableZoom, 58 prefs::kWebKitPasswordEchoEnabled, 60 prefs::kWebKitJavascriptEnabled, 61 prefs::kWebKitJavaEnabled, [all …]
|
/external/chromium_org/chrome/browser/ |
D | renderer_preferences_util.cc | 74 content::RendererPreferences* prefs, Profile* profile) { in UpdateFromSystemSettings() argument 76 prefs->accept_languages = pref_service->GetString(prefs::kAcceptLanguages); in UpdateFromSystemSettings() 77 prefs->enable_referrers = pref_service->GetBoolean(prefs::kEnableReferrers); in UpdateFromSystemSettings() 78 prefs->enable_do_not_track = in UpdateFromSystemSettings() 79 pref_service->GetBoolean(prefs::kEnableDoNotTrack); in UpdateFromSystemSettings() 80 prefs->default_zoom_level = pref_service->GetDouble(prefs::kDefaultZoomLevel); in UpdateFromSystemSettings() 83 prefs->focus_ring_color = SkColorSetRGB(0x4D, 0x90, 0xFE); in UpdateFromSystemSettings() 87 prefs->active_selection_bg_color = SkColorSetRGB(0xCB, 0xE4, 0xFA); in UpdateFromSystemSettings() 88 prefs->active_selection_fg_color = SK_ColorBLACK; in UpdateFromSystemSettings() 89 prefs->inactive_selection_bg_color = SkColorSetRGB(0xEA, 0xEA, 0xEA); in UpdateFromSystemSettings() [all …]
|
/external/chromium_org/chrome/browser/chromeos/extensions/ |
D | info_private_apitest.cc | 19 PrefService* prefs = profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() local 20 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityLargeCursorEnabled)); in IN_PROC_BROWSER_TEST_F() 21 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityStickyKeysEnabled)); in IN_PROC_BROWSER_TEST_F() 22 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilitySpokenFeedbackEnabled)); in IN_PROC_BROWSER_TEST_F() 23 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityHighContrastEnabled)); in IN_PROC_BROWSER_TEST_F() 24 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityScreenMagnifierEnabled)); in IN_PROC_BROWSER_TEST_F() 25 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityAutoclickEnabled)); in IN_PROC_BROWSER_TEST_F() 28 prefs::kLanguageSendFunctionKeys)); in IN_PROC_BROWSER_TEST_F() 33 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityLargeCursorEnabled)); in IN_PROC_BROWSER_TEST_F() 34 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityStickyKeysEnabled)); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/chrome/browser/search_engines/ |
D | default_search_pref_migration.cc | 32 void ClearDefaultSearchProviderFromLegacyPrefs(PrefService* prefs) { in ClearDefaultSearchProviderFromLegacyPrefs() argument 33 prefs->ClearPref(prefs::kDefaultSearchProviderName); in ClearDefaultSearchProviderFromLegacyPrefs() 34 prefs->ClearPref(prefs::kDefaultSearchProviderKeyword); in ClearDefaultSearchProviderFromLegacyPrefs() 35 prefs->ClearPref(prefs::kDefaultSearchProviderSearchURL); in ClearDefaultSearchProviderFromLegacyPrefs() 36 prefs->ClearPref(prefs::kDefaultSearchProviderSuggestURL); in ClearDefaultSearchProviderFromLegacyPrefs() 37 prefs->ClearPref(prefs::kDefaultSearchProviderInstantURL); in ClearDefaultSearchProviderFromLegacyPrefs() 38 prefs->ClearPref(prefs::kDefaultSearchProviderImageURL); in ClearDefaultSearchProviderFromLegacyPrefs() 39 prefs->ClearPref(prefs::kDefaultSearchProviderNewTabURL); in ClearDefaultSearchProviderFromLegacyPrefs() 40 prefs->ClearPref(prefs::kDefaultSearchProviderSearchURLPostParams); in ClearDefaultSearchProviderFromLegacyPrefs() 41 prefs->ClearPref(prefs::kDefaultSearchProviderSuggestURLPostParams); in ClearDefaultSearchProviderFromLegacyPrefs() [all …]
|
D | default_search_policy_handler.cc | 59 prefs::kDefaultSearchProviderEnabled, 62 prefs::kDefaultSearchProviderName, 65 prefs::kDefaultSearchProviderKeyword, 68 prefs::kDefaultSearchProviderSearchURL, 71 prefs::kDefaultSearchProviderSuggestURL, 74 prefs::kDefaultSearchProviderInstantURL, 77 prefs::kDefaultSearchProviderIconURL, 80 prefs::kDefaultSearchProviderEncodings, 83 prefs::kDefaultSearchProviderAlternateURLs, 86 prefs::kDefaultSearchProviderSearchTermsReplacementKey, [all …]
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
D | recommendation_restorer_unittest.cc | 113 recommended_prefs_->SetBoolean(prefs::kAccessibilityLargeCursorEnabled, in SetRecommendedValues() 115 recommended_prefs_->SetBoolean(prefs::kAccessibilitySpokenFeedbackEnabled, in SetRecommendedValues() 117 recommended_prefs_->SetBoolean(prefs::kAccessibilityHighContrastEnabled, in SetRecommendedValues() 119 recommended_prefs_->SetBoolean(prefs::kAccessibilityScreenMagnifierEnabled, in SetRecommendedValues() 121 recommended_prefs_->SetInteger(prefs::kAccessibilityScreenMagnifierType, 0); in SetRecommendedValues() 122 recommended_prefs_->SetBoolean(prefs::kAccessibilityVirtualKeyboardEnabled, in SetRecommendedValues() 127 prefs_->SetBoolean(prefs::kAccessibilityLargeCursorEnabled, true); in SetUserSettings() 128 prefs_->SetBoolean(prefs::kAccessibilitySpokenFeedbackEnabled, true); in SetUserSettings() 129 prefs_->SetBoolean(prefs::kAccessibilityHighContrastEnabled, true); in SetUserSettings() 130 prefs_->SetBoolean(prefs::kAccessibilityScreenMagnifierEnabled, true); in SetUserSettings() [all …]
|
/external/chromium_org/chrome/browser/policy/ |
D | configuration_policy_handler_list_factory.cc | 67 prefs::kHomePage, 70 prefs::kHomePageIsNewTabPage, 73 prefs::kURLsToRestoreOnStartup, 76 prefs::kAlternateErrorPagesEnabled, 79 prefs::kSearchSuggestEnabled, 82 prefs::kNetworkPredictionEnabled, 85 prefs::kBuiltInDnsClientEnabled, 88 prefs::kQuickCheckEnabled, 91 prefs::kDisableSpdy, 94 prefs::kSafeBrowsingEnabled, [all …]
|
/external/chromium_org/chrome/browser/content_settings/ |
D | content_settings_policy_provider.cc | 29 prefs::kManagedDefaultCookiesSetting, 30 prefs::kManagedDefaultImagesSetting, 31 prefs::kManagedDefaultJavaScriptSetting, 32 prefs::kManagedDefaultPluginsSetting, 33 prefs::kManagedDefaultPopupsSetting, 34 prefs::kManagedDefaultGeolocationSetting, 35 prefs::kManagedDefaultNotificationsSetting, 40 prefs::kManagedDefaultMediaStreamSetting, 68 prefs::kManagedCookiesAllowedForUrls, 72 prefs::kManagedCookiesSessionOnlyForUrls, [all …]
|
/external/chromium_org/chrome/browser/ui/ |
D | browser_ui_prefs.cc | 18 registry->RegisterIntegerPref(prefs::kOptionsWindowLastTabIndex, 0); in RegisterBrowserPrefs() 19 registry->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true); in RegisterBrowserPrefs() 20 registry->RegisterIntegerPref(prefs::kShowFirstRunBubbleOption, in RegisterBrowserPrefs() 26 prefs::kHomePageIsNewTabPage, in RegisterBrowserUserPrefs() 30 prefs::kShowHomeButton, in RegisterBrowserUserPrefs() 43 prefs::kShowUpdatePromotionInfoBar, in RegisterBrowserUserPrefs() 48 prefs::kDeleteBrowsingHistory, in RegisterBrowserUserPrefs() 52 prefs::kDeleteDownloadHistory, in RegisterBrowserUserPrefs() 56 prefs::kDeleteCache, in RegisterBrowserUserPrefs() 60 prefs::kDeleteCookies, in RegisterBrowserUserPrefs() [all …]
|
/external/chromium_org/chrome/browser/printing/cloud_print/ |
D | cloud_print_proxy_service_unittest.cc | 243 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); in TEST_F() local 244 prefs->SetUserPref(prefs::kCloudPrintEmail, in TEST_F() 250 EXPECT_EQ(std::string(), prefs->GetString(prefs::kCloudPrintEmail)); in TEST_F() 259 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); in TEST_F() local 260 prefs->SetUserPref(prefs::kCloudPrintEmail, in TEST_F() 267 prefs->GetString(prefs::kCloudPrintEmail)); in TEST_F() 276 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); in TEST_F() local 277 prefs->SetUserPref(prefs::kCloudPrintEmail, in TEST_F() 279 prefs->SetManagedPref(prefs::kCloudPrintProxyEnabled, in TEST_F() 284 EXPECT_EQ(std::string(), prefs->GetString(prefs::kCloudPrintEmail)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/notifications/ |
D | extension_welcome_notification_unittest.cc | 265 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationDismissed)); in TEST_F() 266 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationDismissedLocal)); in TEST_F() 267 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationPreviouslyPoppedUp)); in TEST_F() 274 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationDismissed)); in TEST_F() 275 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationDismissedLocal)); in TEST_F() 276 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationPreviouslyPoppedUp)); in TEST_F() 283 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationDismissed)); in TEST_F() 284 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationDismissedLocal)); in TEST_F() 285 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationPreviouslyPoppedUp)); in TEST_F() 292 EXPECT_FALSE(GetBooleanPref(prefs::kWelcomeNotificationDismissed)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/chromeos/login/saml/ |
D | saml_offline_signin_limiter_unittest.cc | 100 PrefService* prefs = profile_->GetPrefs(); in TEST_F() local 103 prefs->SetInt64(prefs::kSAMLLastGAIASignInTime, in TEST_F() 114 prefs->FindPreference(prefs::kSAMLLastGAIASignInTime); in TEST_F() 132 pref = prefs->FindPreference(prefs::kSAMLLastGAIASignInTime); in TEST_F() 141 PrefService* prefs = profile_->GetPrefs(); in TEST_F() local 144 prefs->SetInteger(prefs::kSAMLOfflineSigninTimeLimit, -1); in TEST_F() 147 prefs->SetInt64(prefs::kSAMLLastGAIASignInTime, in TEST_F() 158 prefs->FindPreference(prefs::kSAMLLastGAIASignInTime); in TEST_F() 176 pref = prefs->FindPreference(prefs::kSAMLLastGAIASignInTime); in TEST_F() 185 PrefService* prefs = profile_->GetPrefs(); in TEST_F() local [all …]
|
/external/chromium_org/chrome/browser/metrics/variations/ |
D | variations_seed_store_unittest.cc | 79 bool PrefHasDefaultValue(const TestingPrefServiceSimple& prefs, in PrefHasDefaultValue() argument 81 return prefs.FindPreference(pref_name)->IsDefaultValue(); in PrefHasDefaultValue() 92 TestingPrefServiceSimple prefs; in TEST() local 93 VariationsSeedStore::RegisterPrefs(prefs.registry()); in TEST() 94 prefs.SetString(prefs::kVariationsSeed, base64_seed); in TEST() 96 TestVariationsSeedStore seed_store(&prefs); in TEST() 105 EXPECT_FALSE(PrefHasDefaultValue(prefs, prefs::kVariationsSeed)); in TEST() 106 EXPECT_EQ(base64_seed, prefs.GetString(prefs::kVariationsSeed)); in TEST() 109 prefs.SetString(prefs::kVariationsSeedHash, seed_hash); in TEST() 115 prefs.ClearPref(prefs::kVariationsSeed); in TEST() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/font_settings/ |
D | font_settings_apitest.cc | 16 PrefService* prefs = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() local 17 prefs->SetString(prefs::kWebKitStandardFontFamilyKorean, "Tahoma"); in IN_PROC_BROWSER_TEST_F() 18 prefs->SetString(prefs::kWebKitSansSerifFontFamily, "Arial"); in IN_PROC_BROWSER_TEST_F() 19 prefs->SetInteger(prefs::kWebKitDefaultFontSize, 16); in IN_PROC_BROWSER_TEST_F() 20 prefs->SetInteger(prefs::kWebKitDefaultFixedFontSize, 14); in IN_PROC_BROWSER_TEST_F() 21 prefs->SetInteger(prefs::kWebKitMinimumFontSize, 8); in IN_PROC_BROWSER_TEST_F() 28 PrefService* prefs = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() local 29 prefs->SetString(prefs::kWebKitStandardFontFamilyKorean, "Tahoma"); in IN_PROC_BROWSER_TEST_F() 30 prefs->SetString(prefs::kWebKitSansSerifFontFamily, "Arial"); in IN_PROC_BROWSER_TEST_F() 31 prefs->SetInteger(prefs::kWebKitDefaultFontSize, 16); in IN_PROC_BROWSER_TEST_F()
|
/external/chromium_org/chromeos/dbus/ |
D | power_policy_controller_unittest.cc | 47 PowerPolicyController::PrefValues prefs; in TEST_F() local 48 prefs.ac_screen_dim_delay_ms = 600000; in TEST_F() 49 prefs.ac_screen_off_delay_ms = 660000; in TEST_F() 50 prefs.ac_idle_delay_ms = 720000; in TEST_F() 51 prefs.battery_screen_dim_delay_ms = 300000; in TEST_F() 52 prefs.battery_screen_off_delay_ms = 360000; in TEST_F() 53 prefs.battery_idle_delay_ms = 420000; in TEST_F() 54 prefs.ac_idle_action = PowerPolicyController::ACTION_SUSPEND; in TEST_F() 55 prefs.battery_idle_action = PowerPolicyController::ACTION_STOP_SESSION; in TEST_F() 56 prefs.lid_closed_action = PowerPolicyController::ACTION_SHUT_DOWN; in TEST_F() [all …]
|