OLD | NEW |
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 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
12 #include "base/string16.h" | 11 #include "base/string16.h" |
13 #include "chrome/browser/sync/glue/change_processor.h" | 12 #include "chrome/browser/sync/glue/change_processor.h" |
14 #include "chrome/browser/sync/glue/data_type_controller.h" | 13 #include "chrome/browser/sync/glue/data_type_controller.h" |
15 #include "chrome/browser/sync/profile_sync_service.h" | 14 #include "chrome/browser/sync/profile_sync_service.h" |
16 #include "chrome/common/net/gaia/google_service_auth_error.h" | 15 #include "chrome/common/net/gaia/google_service_auth_error.h" |
17 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 95 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
97 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 96 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
98 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); | 97 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); |
99 | 98 |
100 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 99 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
101 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 100 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
102 PassphraseType type)); | 101 PassphraseType type)); |
103 }; | 102 }; |
104 | 103 |
105 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 104 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
OLD | NEW |