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

Unified Diff: components/autofill/core/browser/options_util_unittest.cc

Issue 1175243009: [Sync] Rename SyncEnabledAndLoggedIn() to CanStartSync(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a const transition. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/core/browser/options_util.cc ('k') | components/sync_driver/fake_sync_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/options_util_unittest.cc
diff --git a/components/autofill/core/browser/options_util_unittest.cc b/components/autofill/core/browser/options_util_unittest.cc
index e2a81efbb11fd7ce1f183281bd3ac132a9cd466c..7285dbdebe8c8535709b5bbbb3592234b653e69f 100644
--- a/components/autofill/core/browser/options_util_unittest.cc
+++ b/components/autofill/core/browser/options_util_unittest.cc
@@ -29,7 +29,7 @@ class SyncServiceMock : public sync_driver::SyncService {
MOCK_METHOD1(RemoveObserver, void(sync_driver::SyncServiceObserver*));
MOCK_CONST_METHOD1(HasObserver,
bool(const sync_driver::SyncServiceObserver*));
- MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool());
+ MOCK_CONST_METHOD0(CanSyncStart, bool());
MOCK_METHOD0(DisableForUser, void());
MOCK_METHOD0(RequestStop, void());
MOCK_METHOD0(RequestStart, void());
@@ -72,7 +72,7 @@ scoped_ptr<SyncServiceMock> CreateSyncService(bool has_autofill_profile,
ON_CALL(*sync, GetActiveDataTypes()).WillByDefault(Return(type_set));
ON_CALL(*sync, GetPreferredDataTypes()).WillByDefault(Return(type_set));
- ON_CALL(*sync, IsSyncEnabledAndLoggedIn())
+ ON_CALL(*sync, CanSyncStart())
.WillByDefault(Return(is_enabled_and_logged_in));
return sync;
« no previous file with comments | « components/autofill/core/browser/options_util.cc ('k') | components/sync_driver/fake_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698