Commit 4e9e5829 authored by pavely's avatar pavely Committed by Commit bot

[Sync] Remove PSS::IsOAuthRefreshTokenAvailable

I realised that PSS::IsOAuthRefreshTokenAvailable is never called.
This change is to remove it and all references.

BUG=

Review URL: https://codereview.chromium.org/1549443002

Cr-Commit-Position: refs/heads/master@{#366961}
parent 9044f530
...@@ -300,8 +300,6 @@ TEST_F(SyncSetupHandlerTest, Basic) { ...@@ -300,8 +300,6 @@ TEST_F(SyncSetupHandlerTest, Basic) {
#if !defined(OS_CHROMEOS) #if !defined(OS_CHROMEOS)
TEST_F(SyncSetupHandlerFirstSigninTest, DisplayBasicLogin) { TEST_F(SyncSetupHandlerFirstSigninTest, DisplayBasicLogin) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
// Ensure that the user is not signed in before calling |HandleStartSignin()|. // Ensure that the user is not signed in before calling |HandleStartSignin()|.
...@@ -324,8 +322,6 @@ TEST_F(SyncSetupHandlerFirstSigninTest, DisplayBasicLogin) { ...@@ -324,8 +322,6 @@ TEST_F(SyncSetupHandlerFirstSigninTest, DisplayBasicLogin) {
TEST_F(SyncSetupHandlerTest, ShowSyncSetupWhenNotSignedIn) { TEST_F(SyncSetupHandlerTest, ShowSyncSetupWhenNotSignedIn) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
handler_->HandleShowSetupUI(NULL); handler_->HandleShowSetupUI(NULL);
...@@ -359,8 +355,6 @@ TEST_F(SyncSetupHandlerTest, HandleSetupUIWhenSyncDisabled) { ...@@ -359,8 +355,6 @@ TEST_F(SyncSetupHandlerTest, HandleSetupUIWhenSyncDisabled) {
// it is displaying the spinner to the user. // it is displaying the spinner to the user.
TEST_F(SyncSetupHandlerTest, DisplayConfigureWithBackendDisabledAndCancel) { TEST_F(SyncSetupHandlerTest, DisplayConfigureWithBackendDisabledAndCancel) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
error_ = GoogleServiceAuthError::AuthErrorNone(); error_ = GoogleServiceAuthError::AuthErrorNone();
...@@ -385,8 +379,6 @@ TEST_F(SyncSetupHandlerTest, DisplayConfigureWithBackendDisabledAndCancel) { ...@@ -385,8 +379,6 @@ TEST_F(SyncSetupHandlerTest, DisplayConfigureWithBackendDisabledAndCancel) {
TEST_F(SyncSetupHandlerTest, TEST_F(SyncSetupHandlerTest,
DisplayConfigureWithBackendDisabledAndSyncStartupCompleted) { DisplayConfigureWithBackendDisabledAndSyncStartupCompleted) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
error_ = GoogleServiceAuthError::AuthErrorNone(); error_ = GoogleServiceAuthError::AuthErrorNone();
...@@ -436,8 +428,6 @@ TEST_F(SyncSetupHandlerTest, ...@@ -436,8 +428,6 @@ TEST_F(SyncSetupHandlerTest,
TEST_F(SyncSetupHandlerTest, TEST_F(SyncSetupHandlerTest,
DisplayConfigureWithBackendDisabledAndCancelAfterSigninSuccess) { DisplayConfigureWithBackendDisabledAndCancelAfterSigninSuccess) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
error_ = GoogleServiceAuthError::AuthErrorNone(); error_ = GoogleServiceAuthError::AuthErrorNone();
...@@ -462,8 +452,6 @@ TEST_F(SyncSetupHandlerTest, ...@@ -462,8 +452,6 @@ TEST_F(SyncSetupHandlerTest,
TEST_F(SyncSetupHandlerTest, TEST_F(SyncSetupHandlerTest,
DisplayConfigureWithBackendDisabledAndSigninFailed) { DisplayConfigureWithBackendDisabledAndSigninFailed) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
error_ = GoogleServiceAuthError::AuthErrorNone(); error_ = GoogleServiceAuthError::AuthErrorNone();
...@@ -496,8 +484,6 @@ class SyncSetupHandlerNonCrosTest : public SyncSetupHandlerTest { ...@@ -496,8 +484,6 @@ class SyncSetupHandlerNonCrosTest : public SyncSetupHandlerTest {
TEST_F(SyncSetupHandlerNonCrosTest, HandleGaiaAuthFailure) { TEST_F(SyncSetupHandlerNonCrosTest, HandleGaiaAuthFailure) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasUnrecoverableError()) EXPECT_CALL(*mock_pss_, HasUnrecoverableError())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
...@@ -511,8 +497,6 @@ TEST_F(SyncSetupHandlerNonCrosTest, HandleGaiaAuthFailure) { ...@@ -511,8 +497,6 @@ TEST_F(SyncSetupHandlerNonCrosTest, HandleGaiaAuthFailure) {
// TODO(kochi): We need equivalent tests for ChromeOS. // TODO(kochi): We need equivalent tests for ChromeOS.
TEST_F(SyncSetupHandlerNonCrosTest, UnrecoverableErrorInitializingSync) { TEST_F(SyncSetupHandlerNonCrosTest, UnrecoverableErrorInitializingSync) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
// Open the web UI. // Open the web UI.
...@@ -523,8 +507,6 @@ TEST_F(SyncSetupHandlerNonCrosTest, UnrecoverableErrorInitializingSync) { ...@@ -523,8 +507,6 @@ TEST_F(SyncSetupHandlerNonCrosTest, UnrecoverableErrorInitializingSync) {
TEST_F(SyncSetupHandlerNonCrosTest, GaiaErrorInitializingSync) { TEST_F(SyncSetupHandlerNonCrosTest, GaiaErrorInitializingSync) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
// Open the web UI. // Open the web UI.
...@@ -774,8 +756,6 @@ TEST_F(SyncSetupHandlerTest, ShowSigninOnAuthError) { ...@@ -774,8 +756,6 @@ TEST_F(SyncSetupHandlerTest, ShowSigninOnAuthError) {
SigninErrorControllerFactory::GetForProfile(profile_.get())); SigninErrorControllerFactory::GetForProfile(profile_.get()));
provider.SetAuthError(kTestUser, error_); provider.SetAuthError(kTestUser, error_);
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsPassphraseRequired()) EXPECT_CALL(*mock_pss_, IsPassphraseRequired())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsUsingSecondaryPassphrase()) EXPECT_CALL(*mock_pss_, IsUsingSecondaryPassphrase())
......
...@@ -304,8 +304,6 @@ TEST_F(PeopleHandlerTest, Basic) { ...@@ -304,8 +304,6 @@ TEST_F(PeopleHandlerTest, Basic) {
#if !defined(OS_CHROMEOS) #if !defined(OS_CHROMEOS)
TEST_F(PeopleHandlerFirstSigninTest, DisplayBasicLogin) { TEST_F(PeopleHandlerFirstSigninTest, DisplayBasicLogin) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
// Ensure that the user is not signed in before calling |HandleStartSignin()|. // Ensure that the user is not signed in before calling |HandleStartSignin()|.
...@@ -328,8 +326,6 @@ TEST_F(PeopleHandlerFirstSigninTest, DisplayBasicLogin) { ...@@ -328,8 +326,6 @@ TEST_F(PeopleHandlerFirstSigninTest, DisplayBasicLogin) {
TEST_F(PeopleHandlerTest, ShowSyncSetupWhenNotSignedIn) { TEST_F(PeopleHandlerTest, ShowSyncSetupWhenNotSignedIn) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
handler_->HandleShowSetupUI(NULL); handler_->HandleShowSetupUI(NULL);
...@@ -363,8 +359,6 @@ TEST_F(PeopleHandlerTest, HandleSetupUIWhenSyncDisabled) { ...@@ -363,8 +359,6 @@ TEST_F(PeopleHandlerTest, HandleSetupUIWhenSyncDisabled) {
// it is displaying the spinner to the user. // it is displaying the spinner to the user.
TEST_F(PeopleHandlerTest, DisplayConfigureWithBackendDisabledAndCancel) { TEST_F(PeopleHandlerTest, DisplayConfigureWithBackendDisabledAndCancel) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
error_ = GoogleServiceAuthError::AuthErrorNone(); error_ = GoogleServiceAuthError::AuthErrorNone();
...@@ -389,8 +383,6 @@ TEST_F(PeopleHandlerTest, DisplayConfigureWithBackendDisabledAndCancel) { ...@@ -389,8 +383,6 @@ TEST_F(PeopleHandlerTest, DisplayConfigureWithBackendDisabledAndCancel) {
TEST_F(PeopleHandlerTest, TEST_F(PeopleHandlerTest,
DisplayConfigureWithBackendDisabledAndSyncStartupCompleted) { DisplayConfigureWithBackendDisabledAndSyncStartupCompleted) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
error_ = GoogleServiceAuthError::AuthErrorNone(); error_ = GoogleServiceAuthError::AuthErrorNone();
...@@ -440,8 +432,6 @@ TEST_F(PeopleHandlerTest, ...@@ -440,8 +432,6 @@ TEST_F(PeopleHandlerTest,
TEST_F(PeopleHandlerTest, TEST_F(PeopleHandlerTest,
DisplayConfigureWithBackendDisabledAndCancelAfterSigninSuccess) { DisplayConfigureWithBackendDisabledAndCancelAfterSigninSuccess) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
error_ = GoogleServiceAuthError::AuthErrorNone(); error_ = GoogleServiceAuthError::AuthErrorNone();
...@@ -466,8 +456,6 @@ TEST_F(PeopleHandlerTest, ...@@ -466,8 +456,6 @@ TEST_F(PeopleHandlerTest,
TEST_F(PeopleHandlerTest, TEST_F(PeopleHandlerTest,
DisplayConfigureWithBackendDisabledAndSigninFailed) { DisplayConfigureWithBackendDisabledAndSigninFailed) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
error_ = GoogleServiceAuthError::AuthErrorNone(); error_ = GoogleServiceAuthError::AuthErrorNone();
...@@ -500,8 +488,6 @@ class PeopleHandlerNonCrosTest : public PeopleHandlerTest { ...@@ -500,8 +488,6 @@ class PeopleHandlerNonCrosTest : public PeopleHandlerTest {
TEST_F(PeopleHandlerNonCrosTest, HandleGaiaAuthFailure) { TEST_F(PeopleHandlerNonCrosTest, HandleGaiaAuthFailure) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasUnrecoverableError()) EXPECT_CALL(*mock_pss_, HasUnrecoverableError())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
...@@ -515,8 +501,6 @@ TEST_F(PeopleHandlerNonCrosTest, HandleGaiaAuthFailure) { ...@@ -515,8 +501,6 @@ TEST_F(PeopleHandlerNonCrosTest, HandleGaiaAuthFailure) {
// TODO(kochi): We need equivalent tests for ChromeOS. // TODO(kochi): We need equivalent tests for ChromeOS.
TEST_F(PeopleHandlerNonCrosTest, UnrecoverableErrorInitializingSync) { TEST_F(PeopleHandlerNonCrosTest, UnrecoverableErrorInitializingSync) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
// Open the web UI. // Open the web UI.
...@@ -527,8 +511,6 @@ TEST_F(PeopleHandlerNonCrosTest, UnrecoverableErrorInitializingSync) { ...@@ -527,8 +511,6 @@ TEST_F(PeopleHandlerNonCrosTest, UnrecoverableErrorInitializingSync) {
TEST_F(PeopleHandlerNonCrosTest, GaiaErrorInitializingSync) { TEST_F(PeopleHandlerNonCrosTest, GaiaErrorInitializingSync) {
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
// Open the web UI. // Open the web UI.
...@@ -778,8 +760,6 @@ TEST_F(PeopleHandlerTest, ShowSigninOnAuthError) { ...@@ -778,8 +760,6 @@ TEST_F(PeopleHandlerTest, ShowSigninOnAuthError) {
SigninErrorControllerFactory::GetForProfile(profile_.get())); SigninErrorControllerFactory::GetForProfile(profile_.get()));
provider.SetAuthError(kTestUser, error_); provider.SetAuthError(kTestUser, error_);
EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true)); EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsOAuthRefreshTokenAvailable())
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_pss_, IsPassphraseRequired()) EXPECT_CALL(*mock_pss_, IsPassphraseRequired())
.WillRepeatedly(Return(false)); .WillRepeatedly(Return(false));
EXPECT_CALL(*mock_pss_, IsUsingSecondaryPassphrase()) EXPECT_CALL(*mock_pss_, IsUsingSecondaryPassphrase())
......
...@@ -253,14 +253,6 @@ bool ProfileSyncService::CanSyncStart() const { ...@@ -253,14 +253,6 @@ bool ProfileSyncService::CanSyncStart() const {
return IsSyncAllowed() && IsSyncRequested() && IsSignedIn(); return IsSyncAllowed() && IsSyncRequested() && IsSignedIn();
} }
bool ProfileSyncService::IsOAuthRefreshTokenAvailable() {
if (!oauth2_token_service_)
return false;
return oauth2_token_service_->RefreshTokenIsAvailable(
signin_->GetAccountIdToUse());
}
void ProfileSyncService::Initialize() { void ProfileSyncService::Initialize() {
sync_client_->Initialize(this); sync_client_->Initialize(this);
......
...@@ -344,10 +344,6 @@ class ProfileSyncService : public sync_driver::SyncService, ...@@ -344,10 +344,6 @@ class ProfileSyncService : public sync_driver::SyncService,
void RegisterAuthNotifications(); void RegisterAuthNotifications();
void UnregisterAuthNotifications(); void UnregisterAuthNotifications();
// Return whether OAuth2 refresh token is loaded and available for the backend
// to start up. Virtual to enable mocking in tests.
virtual bool IsOAuthRefreshTokenAvailable();
// Returns the SyncableService for syncer::SESSIONS. // Returns the SyncableService for syncer::SESSIONS.
virtual syncer::SyncableService* GetSessionsSyncableService(); virtual syncer::SyncableService* GetSessionsSyncableService();
......
...@@ -86,7 +86,6 @@ class ProfileSyncServiceMock : public ProfileSyncService { ...@@ -86,7 +86,6 @@ class ProfileSyncServiceMock : public ProfileSyncService {
MOCK_CONST_METHOD0(CanSyncStart, bool()); MOCK_CONST_METHOD0(CanSyncStart, bool());
MOCK_CONST_METHOD0(IsManaged, bool()); MOCK_CONST_METHOD0(IsManaged, bool());
MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool());
MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); MOCK_CONST_METHOD0(IsPassphraseRequired, bool());
MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment