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

Side by Side Diff: chrome/browser/first_run/first_run_browsertest.cc

Issue 163613003: Disable FirstRunMasterPrefsWithTrackedPreferences.TrackedPreferencesSurviveFirstRun on Linux on off… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | 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) 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 " \"distribution\": {\n" 211 " \"distribution\": {\n"
212 " \"import_bookmarks\": false,\n" 212 " \"import_bookmarks\": false,\n"
213 " \"import_history\": false,\n" 213 " \"import_history\": false,\n"
214 " \"import_home_page\": false,\n" 214 " \"import_home_page\": false,\n"
215 " \"import_search_engine\": false\n" 215 " \"import_search_engine\": false\n"
216 " }\n" 216 " }\n"
217 "}\n"; 217 "}\n";
218 typedef FirstRunMasterPrefsBrowserTestT<kImportNothing> 218 typedef FirstRunMasterPrefsBrowserTestT<kImportNothing>
219 FirstRunMasterPrefsImportNothing; 219 FirstRunMasterPrefsImportNothing;
220 // http://crbug.com/314221 220 // http://crbug.com/314221
221 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_MACOSX) 221 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_MACOSX)
gab 2014/02/14 21:27:47 Don't these import tests also fail on Linux?
pshenoy 2014/02/14 21:35:57 Yes. Disabled on Linux too.
222 #define MAYBE_ImportNothingAndShowNewTabPage \ 222 #define MAYBE_ImportNothingAndShowNewTabPage \
223 DISABLED_ImportNothingAndShowNewTabPage 223 DISABLED_ImportNothingAndShowNewTabPage
224 #else 224 #else
225 #define MAYBE_ImportNothingAndShowNewTabPage ImportNothingAndShowNewTabPage 225 #define MAYBE_ImportNothingAndShowNewTabPage ImportNothingAndShowNewTabPage
226 #endif 226 #endif
227 IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportNothing, 227 IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportNothing,
228 MAYBE_ImportNothingAndShowNewTabPage) { 228 MAYBE_ImportNothingAndShowNewTabPage) {
229 EXPECT_EQ(first_run::AUTO_IMPORT_CALLED, first_run::auto_import_state()); 229 EXPECT_EQ(first_run::AUTO_IMPORT_CALLED, first_run::auto_import_state());
230 ui_test_utils::NavigateToURLWithDisposition( 230 ui_test_utils::NavigateToURLWithDisposition(
231 browser(), GURL(chrome::kChromeUINewTabURL), CURRENT_TAB, 231 browser(), GURL(chrome::kChromeUINewTabURL), CURRENT_TAB,
(...skipping 18 matching lines...) Expand all
250 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 250 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
251 FirstRunMasterPrefsBrowserTestT::SetUpCommandLine(command_line); 251 FirstRunMasterPrefsBrowserTestT::SetUpCommandLine(command_line);
252 command_line->AppendSwitchASCII( 252 command_line->AppendSwitchASCII(
253 switches::kForceFieldTrials, 253 switches::kForceFieldTrials,
254 std::string(chrome_prefs::internals::kSettingsEnforcementTrialName) + 254 std::string(chrome_prefs::internals::kSettingsEnforcementTrialName) +
255 "/" + GetParam() + "/"); 255 "/" + GetParam() + "/");
256 } 256 }
257 }; 257 };
258 258
259 // http://crbug.com/314221 259 // http://crbug.com/314221
260 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_MACOSX) 260 #if defined(GOOGLE_CHROME_BUILD) && (defined(OS_MACOSX) || defined(OS_LINUX))
261 #define MAYBE_TrackedPreferencesSurviveFirstRun \ 261 #define MAYBE_TrackedPreferencesSurviveFirstRun \
262 DISABLED_TrackedPreferencesSurviveFirstRun 262 DISABLED_TrackedPreferencesSurviveFirstRun
263 #else 263 #else
264 #define MAYBE_TrackedPreferencesSurviveFirstRun \ 264 #define MAYBE_TrackedPreferencesSurviveFirstRun \
265 TrackedPreferencesSurviveFirstRun 265 TrackedPreferencesSurviveFirstRun
266 #endif 266 #endif
267 IN_PROC_BROWSER_TEST_P(FirstRunMasterPrefsWithTrackedPreferences, 267 IN_PROC_BROWSER_TEST_P(FirstRunMasterPrefsWithTrackedPreferences,
268 MAYBE_TrackedPreferencesSurviveFirstRun) { 268 MAYBE_TrackedPreferencesSurviveFirstRun) {
269 const PrefService* user_prefs = browser()->profile()->GetPrefs(); 269 const PrefService* user_prefs = browser()->profile()->GetPrefs();
270 EXPECT_EQ("example.com", user_prefs->GetString(prefs::kHomePage)); 270 EXPECT_EQ("example.com", user_prefs->GetString(prefs::kHomePage));
(...skipping 14 matching lines...) Expand all
285 INSTANTIATE_TEST_CASE_P( 285 INSTANTIATE_TEST_CASE_P(
286 FirstRunMasterPrefsWithTrackedPreferencesInstance, 286 FirstRunMasterPrefsWithTrackedPreferencesInstance,
287 FirstRunMasterPrefsWithTrackedPreferences, 287 FirstRunMasterPrefsWithTrackedPreferences,
288 testing::Values( 288 testing::Values(
289 chrome_prefs::internals::kSettingsEnforcementGroupNoEnforcement, 289 chrome_prefs::internals::kSettingsEnforcementGroupNoEnforcement,
290 chrome_prefs::internals::kSettingsEnforcementGroupEnforceOnload, 290 chrome_prefs::internals::kSettingsEnforcementGroupEnforceOnload,
291 chrome_prefs::internals::kSettingsEnforcementGroupEnforceAlways)); 291 chrome_prefs::internals::kSettingsEnforcementGroupEnforceAlways));
292 292
293 293
294 #endif // !defined(OS_CHROMEOS) 294 #endif // !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698