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

Side by Side Diff: sync/internal_api/sync_manager_impl_unittest.cc

Issue 308413002: Revert of Move some sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/test/fake_sync_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <cstddef> 9 #include <cstddef>
10 #include <map> 10 #include <map>
(...skipping 27 matching lines...) Expand all
38 #include "sync/internal_api/public/test/test_internal_components_factory.h" 38 #include "sync/internal_api/public/test/test_internal_components_factory.h"
39 #include "sync/internal_api/public/test/test_user_share.h" 39 #include "sync/internal_api/public/test/test_user_share.h"
40 #include "sync/internal_api/public/write_node.h" 40 #include "sync/internal_api/public/write_node.h"
41 #include "sync/internal_api/public/write_transaction.h" 41 #include "sync/internal_api/public/write_transaction.h"
42 #include "sync/internal_api/sync_encryption_handler_impl.h" 42 #include "sync/internal_api/sync_encryption_handler_impl.h"
43 #include "sync/internal_api/sync_manager_impl.h" 43 #include "sync/internal_api/sync_manager_impl.h"
44 #include "sync/internal_api/syncapi_internal.h" 44 #include "sync/internal_api/syncapi_internal.h"
45 #include "sync/js/js_backend.h" 45 #include "sync/js/js_backend.h"
46 #include "sync/js/js_event_handler.h" 46 #include "sync/js/js_event_handler.h"
47 #include "sync/js/js_test_util.h" 47 #include "sync/js/js_test_util.h"
48 #include "sync/notifier/fake_invalidation_handler.h"
48 #include "sync/notifier/invalidation_handler.h" 49 #include "sync/notifier/invalidation_handler.h"
49 #include "sync/notifier/invalidator.h" 50 #include "sync/notifier/invalidator.h"
50 #include "sync/protocol/bookmark_specifics.pb.h" 51 #include "sync/protocol/bookmark_specifics.pb.h"
51 #include "sync/protocol/encryption.pb.h" 52 #include "sync/protocol/encryption.pb.h"
52 #include "sync/protocol/extension_specifics.pb.h" 53 #include "sync/protocol/extension_specifics.pb.h"
53 #include "sync/protocol/password_specifics.pb.h" 54 #include "sync/protocol/password_specifics.pb.h"
54 #include "sync/protocol/preference_specifics.pb.h" 55 #include "sync/protocol/preference_specifics.pb.h"
55 #include "sync/protocol/proto_value_conversions.h" 56 #include "sync/protocol/proto_value_conversions.h"
56 #include "sync/protocol/sync.pb.h" 57 #include "sync/protocol/sync.pb.h"
57 #include "sync/sessions/sync_session.h" 58 #include "sync/sessions/sync_session.h"
(...skipping 3076 matching lines...) Expand 10 before | Expand all | Expand 10 after
3134 // SyncManagerInitInvalidStorageTest::GetFactory will return 3135 // SyncManagerInitInvalidStorageTest::GetFactory will return
3135 // DirectoryBackingStore that ensures that SyncManagerImpl::OpenDirectory fails. 3136 // DirectoryBackingStore that ensures that SyncManagerImpl::OpenDirectory fails.
3136 // SyncManagerImpl initialization is done in SyncManagerTest::SetUp. This test's 3137 // SyncManagerImpl initialization is done in SyncManagerTest::SetUp. This test's
3137 // task is to ensure that SyncManagerImpl reported initialization failure in 3138 // task is to ensure that SyncManagerImpl reported initialization failure in
3138 // OnInitializationComplete callback. 3139 // OnInitializationComplete callback.
3139 TEST_F(SyncManagerInitInvalidStorageTest, FailToOpenDatabase) { 3140 TEST_F(SyncManagerInitInvalidStorageTest, FailToOpenDatabase) {
3140 EXPECT_FALSE(initialization_succeeded_); 3141 EXPECT_FALSE(initialization_succeeded_);
3141 } 3142 }
3142 3143
3143 } // namespace syncer 3144 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/test/fake_sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698