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/engine_impl/apply_control_data_updates.h" | 5 #include "components/sync/engine_impl/apply_control_data_updates.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "components/sync/base/cryptographer.h" | 18 #include "components/sync/base/cryptographer.h" |
19 #include "components/sync/core/test/test_entry_factory.h" | |
20 #include "components/sync/engine_impl/syncer.h" | 19 #include "components/sync/engine_impl/syncer.h" |
21 #include "components/sync/engine_impl/syncer_util.h" | 20 #include "components/sync/engine_impl/syncer_util.h" |
| 21 #include "components/sync/engine_impl/test_entry_factory.h" |
22 #include "components/sync/protocol/nigori_specifics.pb.h" | 22 #include "components/sync/protocol/nigori_specifics.pb.h" |
23 #include "components/sync/syncable/directory.h" | 23 #include "components/sync/syncable/directory.h" |
24 #include "components/sync/syncable/mutable_entry.h" | 24 #include "components/sync/syncable/mutable_entry.h" |
25 #include "components/sync/syncable/nigori_util.h" | 25 #include "components/sync/syncable/nigori_util.h" |
26 #include "components/sync/syncable/syncable_read_transaction.h" | 26 #include "components/sync/syncable/syncable_read_transaction.h" |
27 #include "components/sync/syncable/syncable_util.h" | 27 #include "components/sync/syncable/syncable_util.h" |
28 #include "components/sync/syncable/syncable_write_transaction.h" | 28 #include "components/sync/syncable/syncable_write_transaction.h" |
29 #include "components/sync/test/engine/fake_model_worker.h" | 29 #include "components/sync/test/engine/fake_model_worker.h" |
30 #include "components/sync/test/engine/test_directory_setter_upper.h" | 30 #include "components/sync/test/engine/test_directory_setter_upper.h" |
31 #include "components/sync/test/engine/test_id_factory.h" | 31 #include "components/sync/test/engine/test_id_factory.h" |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 ApplyControlDataUpdates(directory()); | 969 ApplyControlDataUpdates(directory()); |
970 | 970 |
971 // After applying the updates NIGORI should be marked as having its | 971 // After applying the updates NIGORI should be marked as having its |
972 // initial sync completed. | 972 // initial sync completed. |
973 EXPECT_TRUE(directory()->InitialSyncEndedForType(NIGORI)); | 973 EXPECT_TRUE(directory()->InitialSyncEndedForType(NIGORI)); |
974 // Verify that there is no side effect on another control type. | 974 // Verify that there is no side effect on another control type. |
975 EXPECT_FALSE(directory()->InitialSyncEndedForType(EXPERIMENTS)); | 975 EXPECT_FALSE(directory()->InitialSyncEndedForType(EXPERIMENTS)); |
976 } | 976 } |
977 | 977 |
978 } // namespace syncer | 978 } // namespace syncer |
OLD | NEW |