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

Side by Side Diff: chrome/browser/sync/profile_sync_service_mock.h

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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
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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "chrome/browser/sync/glue/change_processor.h" 12 #include "chrome/browser/sync/glue/change_processor.h"
13 #include "chrome/browser/sync/glue/data_type_controller.h" 13 #include "chrome/browser/sync/glue/data_type_controller.h"
14 #include "chrome/browser/sync/profile_sync_service.h" 14 #include "chrome/browser/sync/profile_sync_service.h"
15 #include "chrome/common/net/gaia/google_service_auth_error.h"
16 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
16 #include "google_apis/gaia/google_service_auth_error.h"
17 #include "sync/internal_api/public/base/model_type.h" 17 #include "sync/internal_api/public/base/model_type.h"
18 #include "sync/protocol/sync_protocol_error.h" 18 #include "sync/protocol/sync_protocol_error.h"
19 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
20 20
21 class ProfileSyncServiceMock : public ProfileSyncService { 21 class ProfileSyncServiceMock : public ProfileSyncService {
22 public: 22 public:
23 // no-arg constructor provided so TestingProfile can use NiceMock. 23 // no-arg constructor provided so TestingProfile can use NiceMock.
24 ProfileSyncServiceMock(); 24 ProfileSyncServiceMock();
25 explicit ProfileSyncServiceMock(Profile* profile); 25 explicit ProfileSyncServiceMock(Profile* profile);
26 virtual ~ProfileSyncServiceMock(); 26 virtual ~ProfileSyncServiceMock();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); 102 MOCK_CONST_METHOD0(IsPassphraseRequired, bool());
103 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); 103 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool());
104 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); 104 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool());
105 105
106 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 106 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
107 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, 107 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase,
108 PassphraseType type)); 108 PassphraseType type));
109 }; 109 };
110 110
111 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 111 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698