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

Side by Side Diff: chrome/browser/sync/profile_sync_service_unittest.cc

Issue 386093002: Use ENABLE_PRE_SYNC_BACKUP to disable test on iOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 ExpectSyncBackendHostCreation(1); 411 ExpectSyncBackendHostCreation(1);
412 412
413 service()->UnsuppressAndStart(); 413 service()->UnsuppressAndStart();
414 EXPECT_TRUE(service()->sync_initialized()); 414 EXPECT_TRUE(service()->sync_initialized());
415 EXPECT_FALSE(profile()->GetPrefs()->GetBoolean( 415 EXPECT_FALSE(profile()->GetPrefs()->GetBoolean(
416 sync_driver::prefs::kSyncSuppressStart)); 416 sync_driver::prefs::kSyncSuppressStart));
417 } 417 }
418 418
419 // Certain ProfileSyncService tests don't apply to Chrome OS, for example 419 // Certain ProfileSyncService tests don't apply to Chrome OS, for example
420 // things that deal with concepts like "signing out" and policy. 420 // things that deal with concepts like "signing out" and policy.
421 #if defined(OS_WIN) || defined(OS_MACOSX) || (defined(OS_LINUX) && !defined(OS_C HROMEOS)) 421 #if defined(ENABLE_PRE_SYNC_BACKUP)
422 TEST_F(ProfileSyncServiceTest, EnableSyncAndSignOutDesktop) { 422 TEST_F(ProfileSyncServiceTest, EnableSyncAndSignOutDesktop) {
423 CreateService(browser_sync::AUTO_START); 423 CreateService(browser_sync::AUTO_START);
424 ExpectDataTypeManagerCreation(2); 424 ExpectDataTypeManagerCreation(2);
425 ExpectSyncBackendHostCreation(2); 425 ExpectSyncBackendHostCreation(2);
426 IssueTestTokens(); 426 IssueTestTokens();
427 Initialize(); 427 Initialize();
428 428
429 EXPECT_TRUE(service()->sync_initialized()); 429 EXPECT_TRUE(service()->sync_initialized());
430 EXPECT_FALSE(profile()->GetPrefs()->GetBoolean( 430 EXPECT_FALSE(profile()->GetPrefs()->GetBoolean(
431 sync_driver::prefs::kSyncSuppressStart)); 431 sync_driver::prefs::kSyncSuppressStart));
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 // See that we can override the URL with a flag. 593 // See that we can override the URL with a flag.
594 CommandLine command_line( 594 CommandLine command_line(
595 base::FilePath(base::FilePath(FILE_PATH_LITERAL("chrome.exe")))); 595 base::FilePath(base::FilePath(FILE_PATH_LITERAL("chrome.exe"))));
596 command_line.AppendSwitchASCII(switches::kSyncServiceURL, "https://foo/bar"); 596 command_line.AppendSwitchASCII(switches::kSyncServiceURL, "https://foo/bar");
597 EXPECT_EQ("https://foo/bar", 597 EXPECT_EQ("https://foo/bar",
598 ProfileSyncService::GetSyncServiceURL(command_line).spec()); 598 ProfileSyncService::GetSyncServiceURL(command_line).spec());
599 } 599 }
600 600
601 } // namespace 601 } // namespace
602 } // namespace browser_sync 602 } // namespace browser_sync
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