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

Side by Side Diff: components/sync/core_impl/sync_manager_impl_unittest.cc

Issue 2407163004: [Sync] Move some directory-related things from core/ to syncable/. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
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 // Unit tests for the SyncApi. Note that a lot of the underlying 5 // Unit tests for the SyncApi. Note that a lot of the underlying
6 // functionality is provided by the Syncable layer, which has its own 6 // functionality is provided by the Syncable layer, which has its own
7 // unit tests. We'll test SyncApi specific things in this harness. 7 // unit tests. We'll test SyncApi specific things in this harness.
8 8
9 #include "components/sync/core_impl/sync_manager_impl.h" 9 #include "components/sync/core_impl/sync_manager_impl.h"
10 10
(...skipping 11 matching lines...) Expand all
22 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
23 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "base/test/values_test_util.h" 24 #include "base/test/values_test_util.h"
25 #include "base/values.h" 25 #include "base/values.h"
26 #include "components/sync/base/attachment_id_proto.h" 26 #include "components/sync/base/attachment_id_proto.h"
27 #include "components/sync/base/cancelation_signal.h" 27 #include "components/sync/base/cancelation_signal.h"
28 #include "components/sync/base/extensions_activity.h" 28 #include "components/sync/base/extensions_activity.h"
29 #include "components/sync/base/fake_encryptor.h" 29 #include "components/sync/base/fake_encryptor.h"
30 #include "components/sync/base/mock_unrecoverable_error_handler.h" 30 #include "components/sync/base/mock_unrecoverable_error_handler.h"
31 #include "components/sync/base/model_type_test_util.h" 31 #include "components/sync/base/model_type_test_util.h"
32 #include "components/sync/core/change_record.h"
33 #include "components/sync/core/read_node.h"
34 #include "components/sync/core/read_transaction.h"
35 #include "components/sync/core/test/test_entry_factory.h" 32 #include "components/sync/core/test/test_entry_factory.h"
36 #include "components/sync/core/test/test_internal_components_factory.h" 33 #include "components/sync/core/test/test_internal_components_factory.h"
37 #include "components/sync/core/test/test_user_share.h"
38 #include "components/sync/core/write_node.h"
39 #include "components/sync/core/write_transaction.h"
40 #include "components/sync/core_impl/syncapi_internal.h" 34 #include "components/sync/core_impl/syncapi_internal.h"
41 #include "components/sync/engine/events/protocol_event.h" 35 #include "components/sync/engine/events/protocol_event.h"
42 #include "components/sync/engine/model_safe_worker.h" 36 #include "components/sync/engine/model_safe_worker.h"
43 #include "components/sync/engine/net/http_post_provider_factory.h" 37 #include "components/sync/engine/net/http_post_provider_factory.h"
44 #include "components/sync/engine/net/http_post_provider_interface.h" 38 #include "components/sync/engine/net/http_post_provider_interface.h"
45 #include "components/sync/engine/polling_constants.h" 39 #include "components/sync/engine/polling_constants.h"
46 #include "components/sync/engine_impl/cycle/sync_cycle.h" 40 #include "components/sync/engine_impl/cycle/sync_cycle.h"
47 #include "components/sync/engine_impl/sync_scheduler.h" 41 #include "components/sync/engine_impl/sync_scheduler.h"
48 #include "components/sync/js/js_event_handler.h" 42 #include "components/sync/js/js_event_handler.h"
49 #include "components/sync/js/js_test_util.h" 43 #include "components/sync/js/js_test_util.h"
50 #include "components/sync/protocol/bookmark_specifics.pb.h" 44 #include "components/sync/protocol/bookmark_specifics.pb.h"
51 #include "components/sync/protocol/encryption.pb.h" 45 #include "components/sync/protocol/encryption.pb.h"
52 #include "components/sync/protocol/extension_specifics.pb.h" 46 #include "components/sync/protocol/extension_specifics.pb.h"
53 #include "components/sync/protocol/password_specifics.pb.h" 47 #include "components/sync/protocol/password_specifics.pb.h"
54 #include "components/sync/protocol/preference_specifics.pb.h" 48 #include "components/sync/protocol/preference_specifics.pb.h"
55 #include "components/sync/protocol/proto_value_conversions.h" 49 #include "components/sync/protocol/proto_value_conversions.h"
56 #include "components/sync/protocol/sync.pb.h" 50 #include "components/sync/protocol/sync.pb.h"
51 #include "components/sync/syncable/change_record.h"
57 #include "components/sync/syncable/directory.h" 52 #include "components/sync/syncable/directory.h"
58 #include "components/sync/syncable/entry.h" 53 #include "components/sync/syncable/entry.h"
59 #include "components/sync/syncable/mutable_entry.h" 54 #include "components/sync/syncable/mutable_entry.h"
60 #include "components/sync/syncable/nigori_util.h" 55 #include "components/sync/syncable/nigori_util.h"
56 #include "components/sync/syncable/read_node.h"
57 #include "components/sync/syncable/read_transaction.h"
61 #include "components/sync/syncable/syncable_id.h" 58 #include "components/sync/syncable/syncable_id.h"
62 #include "components/sync/syncable/syncable_read_transaction.h" 59 #include "components/sync/syncable/syncable_read_transaction.h"
63 #include "components/sync/syncable/syncable_util.h" 60 #include "components/sync/syncable/syncable_util.h"
64 #include "components/sync/syncable/syncable_write_transaction.h" 61 #include "components/sync/syncable/syncable_write_transaction.h"
62 #include "components/sync/syncable/test_user_share.h"
63 #include "components/sync/syncable/write_node.h"
64 #include "components/sync/syncable/write_transaction.h"
65 #include "components/sync/test/callback_counter.h" 65 #include "components/sync/test/callback_counter.h"
66 #include "components/sync/test/engine/fake_model_worker.h" 66 #include "components/sync/test/engine/fake_model_worker.h"
67 #include "components/sync/test/engine/fake_sync_scheduler.h" 67 #include "components/sync/test/engine/fake_sync_scheduler.h"
68 #include "components/sync/test/engine/test_id_factory.h" 68 #include "components/sync/test/engine/test_id_factory.h"
69 #include "google_apis/gaia/gaia_constants.h" 69 #include "google_apis/gaia/gaia_constants.h"
70 #include "testing/gmock/include/gmock/gmock.h" 70 #include "testing/gmock/include/gmock/gmock.h"
71 #include "testing/gtest/include/gtest/gtest.h" 71 #include "testing/gtest/include/gtest/gtest.h"
72 #include "third_party/protobuf/src/google/protobuf/io/coded_stream.h" 72 #include "third_party/protobuf/src/google/protobuf/io/coded_stream.h"
73 #include "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite .h" 73 #include "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite .h"
74 #include "url/gurl.h" 74 #include "url/gurl.h"
(...skipping 3277 matching lines...) Expand 10 before | Expand all | Expand 10 after
3352 // SyncManagerInitInvalidStorageTest::GetFactory will return 3352 // SyncManagerInitInvalidStorageTest::GetFactory will return
3353 // DirectoryBackingStore that ensures that SyncManagerImpl::OpenDirectory fails. 3353 // DirectoryBackingStore that ensures that SyncManagerImpl::OpenDirectory fails.
3354 // SyncManagerImpl initialization is done in SyncManagerTest::SetUp. This test's 3354 // SyncManagerImpl initialization is done in SyncManagerTest::SetUp. This test's
3355 // task is to ensure that SyncManagerImpl reported initialization failure in 3355 // task is to ensure that SyncManagerImpl reported initialization failure in
3356 // OnInitializationComplete callback. 3356 // OnInitializationComplete callback.
3357 TEST_F(SyncManagerInitInvalidStorageTest, FailToOpenDatabase) { 3357 TEST_F(SyncManagerInitInvalidStorageTest, FailToOpenDatabase) {
3358 EXPECT_FALSE(initialization_succeeded_); 3358 EXPECT_FALSE(initialization_succeeded_);
3359 } 3359 }
3360 3360
3361 } // namespace syncer 3361 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core_impl/sync_manager_impl.cc ('k') | components/sync/core_impl/test/sync_manager_for_profile_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698