OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/core_impl/sync_encryption_handler_impl.h" | 5 #include "components/sync/core_impl/sync_encryption_handler_impl.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/base64.h" | 11 #include "base/base64.h" |
12 #include "base/json/json_string_value_serializer.h" | 12 #include "base/json/json_string_value_serializer.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/tracked_objects.h" | 14 #include "base/tracked_objects.h" |
15 #include "components/sync/base/fake_encryptor.h" | 15 #include "components/sync/base/fake_encryptor.h" |
16 #include "components/sync/base/model_type_test_util.h" | 16 #include "components/sync/base/model_type_test_util.h" |
17 #include "components/sync/core/read_node.h" | |
18 #include "components/sync/core/read_transaction.h" | |
19 #include "components/sync/core/test/test_user_share.h" | |
20 #include "components/sync/core/write_node.h" | |
21 #include "components/sync/core/write_transaction.h" | |
22 #include "components/sync/protocol/nigori_specifics.pb.h" | 17 #include "components/sync/protocol/nigori_specifics.pb.h" |
23 #include "components/sync/protocol/sync.pb.h" | 18 #include "components/sync/protocol/sync.pb.h" |
24 #include "components/sync/syncable/entry.h" | 19 #include "components/sync/syncable/entry.h" |
25 #include "components/sync/syncable/mutable_entry.h" | 20 #include "components/sync/syncable/mutable_entry.h" |
| 21 #include "components/sync/syncable/read_node.h" |
| 22 #include "components/sync/syncable/read_transaction.h" |
26 #include "components/sync/syncable/syncable_write_transaction.h" | 23 #include "components/sync/syncable/syncable_write_transaction.h" |
| 24 #include "components/sync/syncable/test_user_share.h" |
| 25 #include "components/sync/syncable/write_node.h" |
| 26 #include "components/sync/syncable/write_transaction.h" |
27 #include "components/sync/test/engine/test_id_factory.h" | 27 #include "components/sync/test/engine/test_id_factory.h" |
28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 | 30 |
31 namespace syncer { | 31 namespace syncer { |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 using ::testing::_; | 35 using ::testing::_; |
36 using ::testing::AnyNumber; | 36 using ::testing::AnyNumber; |
(...skipping 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2296 EXPECT_CALL(*observer(), | 2296 EXPECT_CALL(*observer(), |
2297 OnBootstrapTokenUpdated(_, KEYSTORE_BOOTSTRAP_TOKEN)); | 2297 OnBootstrapTokenUpdated(_, KEYSTORE_BOOTSTRAP_TOKEN)); |
2298 { | 2298 { |
2299 ReadTransaction trans(FROM_HERE, user_share()); | 2299 ReadTransaction trans(FROM_HERE, user_share()); |
2300 encryption_handler()->SetKeystoreKeys( | 2300 encryption_handler()->SetKeystoreKeys( |
2301 BuildEncryptionKeyProto(kRawKeystoreKey), trans.GetWrappedTrans()); | 2301 BuildEncryptionKeyProto(kRawKeystoreKey), trans.GetWrappedTrans()); |
2302 } | 2302 } |
2303 } | 2303 } |
2304 | 2304 |
2305 } // namespace syncer | 2305 } // namespace syncer |
OLD | NEW |