| OLD | NEW |
| 1 // Copyright (c) 2012 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 #include <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace | 163 } // namespace |
| 164 | 164 |
| 165 extern const char kImportDefault[] = | 165 extern const char kImportDefault[] = |
| 166 "{\n" | 166 "{\n" |
| 167 "}\n"; | 167 "}\n"; |
| 168 typedef FirstRunMasterPrefsBrowserTestT<kImportDefault> | 168 typedef FirstRunMasterPrefsBrowserTestT<kImportDefault> |
| 169 FirstRunMasterPrefsImportDefault; | 169 FirstRunMasterPrefsImportDefault; |
| 170 // http://crbug.com/314221 | 170 // http://crbug.com/314221 |
| 171 #if defined(GOOGLE_CHROME_BUILD) && (defined(OS_MACOSX) || defined(OS_LINUX)) | 171 #if defined(OS_MACOSX) || (defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX)) |
| 172 #define MAYBE_ImportDefault DISABLED_ImportDefault | 172 #define MAYBE_ImportDefault DISABLED_ImportDefault |
| 173 #else | 173 #else |
| 174 #define MAYBE_ImportDefault ImportDefault | 174 #define MAYBE_ImportDefault ImportDefault |
| 175 #endif | 175 #endif |
| 176 IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportDefault, MAYBE_ImportDefault) { | 176 IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportDefault, MAYBE_ImportDefault) { |
| 177 int auto_import_state = first_run::auto_import_state(); | 177 int auto_import_state = first_run::auto_import_state(); |
| 178 EXPECT_EQ(MaskExpectedImportState(first_run::AUTO_IMPORT_CALLED | | 178 EXPECT_EQ(MaskExpectedImportState(first_run::AUTO_IMPORT_CALLED | |
| 179 first_run::AUTO_IMPORT_PROFILE_IMPORTED), | 179 first_run::AUTO_IMPORT_PROFILE_IMPORTED), |
| 180 auto_import_state); | 180 auto_import_state); |
| 181 } | 181 } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 FirstRunMasterPrefsWithTrackedPreferences, | 288 FirstRunMasterPrefsWithTrackedPreferences, |
| 289 testing::Values( | 289 testing::Values( |
| 290 chrome_prefs::internals::kSettingsEnforcementGroupNoEnforcement, | 290 chrome_prefs::internals::kSettingsEnforcementGroupNoEnforcement, |
| 291 chrome_prefs::internals::kSettingsEnforcementGroupEnforceAlways, | 291 chrome_prefs::internals::kSettingsEnforcementGroupEnforceAlways, |
| 292 chrome_prefs::internals:: | 292 chrome_prefs::internals:: |
| 293 kSettingsEnforcementGroupEnforceAlwaysWithDSE, | 293 kSettingsEnforcementGroupEnforceAlwaysWithDSE, |
| 294 chrome_prefs::internals:: | 294 chrome_prefs::internals:: |
| 295 kSettingsEnforcementGroupEnforceAlwaysWithExtensionsAndDSE)); | 295 kSettingsEnforcementGroupEnforceAlwaysWithExtensionsAndDSE)); |
| 296 | 296 |
| 297 #endif // !defined(OS_CHROMEOS) | 297 #endif // !defined(OS_CHROMEOS) |
| OLD | NEW |