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 #include "components/sync/test/fake_sync_encryption_handler.h" | 5 #include "components/sync/test/fake_sync_encryption_handler.h" |
6 | 6 |
| 7 #include "components/sync/base/passphrase_type.h" |
7 #include "components/sync/protocol/nigori_specifics.pb.h" | 8 #include "components/sync/protocol/nigori_specifics.pb.h" |
8 #include "components/sync/syncable/nigori_util.h" | 9 #include "components/sync/syncable/nigori_util.h" |
9 | 10 |
10 namespace syncer { | 11 namespace syncer { |
11 | 12 |
12 FakeSyncEncryptionHandler::FakeSyncEncryptionHandler() | 13 FakeSyncEncryptionHandler::FakeSyncEncryptionHandler() |
13 : encrypted_types_(SensitiveTypes()), | 14 : encrypted_types_(SensitiveTypes()), |
14 encrypt_everything_(false), | 15 encrypt_everything_(false), |
15 passphrase_type_(PassphraseType::IMPLICIT_PASSPHRASE), | 16 passphrase_type_(PassphraseType::IMPLICIT_PASSPHRASE), |
16 cryptographer_(&encryptor_) {} | 17 cryptographer_(&encryptor_) {} |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 117 |
117 bool FakeSyncEncryptionHandler::IsEncryptEverythingEnabled() const { | 118 bool FakeSyncEncryptionHandler::IsEncryptEverythingEnabled() const { |
118 return encrypt_everything_; | 119 return encrypt_everything_; |
119 } | 120 } |
120 | 121 |
121 PassphraseType FakeSyncEncryptionHandler::GetPassphraseType() const { | 122 PassphraseType FakeSyncEncryptionHandler::GetPassphraseType() const { |
122 return passphrase_type_; | 123 return passphrase_type_; |
123 } | 124 } |
124 | 125 |
125 } // namespace syncer | 126 } // namespace syncer |
OLD | NEW |