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

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

Issue 153643006: sync: Remove dead code related to ClearUserData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/public/sync_manager.h ('k') | no next file » | 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 class SyncManagerObserverMock : public SyncManager::Observer { 638 class SyncManagerObserverMock : public SyncManager::Observer {
639 public: 639 public:
640 MOCK_METHOD1(OnSyncCycleCompleted, 640 MOCK_METHOD1(OnSyncCycleCompleted,
641 void(const SyncSessionSnapshot&)); // NOLINT 641 void(const SyncSessionSnapshot&)); // NOLINT
642 MOCK_METHOD4(OnInitializationComplete, 642 MOCK_METHOD4(OnInitializationComplete,
643 void(const WeakHandle<JsBackend>&, 643 void(const WeakHandle<JsBackend>&,
644 const WeakHandle<DataTypeDebugInfoListener>&, 644 const WeakHandle<DataTypeDebugInfoListener>&,
645 bool, 645 bool,
646 syncer::ModelTypeSet)); // NOLINT 646 syncer::ModelTypeSet)); // NOLINT
647 MOCK_METHOD1(OnConnectionStatusChange, void(ConnectionStatus)); // NOLINT 647 MOCK_METHOD1(OnConnectionStatusChange, void(ConnectionStatus)); // NOLINT
648 MOCK_METHOD0(OnStopSyncingPermanently, void()); // NOLINT
649 MOCK_METHOD1(OnUpdatedToken, void(const std::string&)); // NOLINT 648 MOCK_METHOD1(OnUpdatedToken, void(const std::string&)); // NOLINT
650 MOCK_METHOD1(OnActionableError, 649 MOCK_METHOD1(OnActionableError,
651 void(const SyncProtocolError&)); // NOLINT 650 void(const SyncProtocolError&)); // NOLINT
652 }; 651 };
653 652
654 class SyncEncryptionHandlerObserverMock 653 class SyncEncryptionHandlerObserverMock
655 : public SyncEncryptionHandler::Observer { 654 : public SyncEncryptionHandler::Observer {
656 public: 655 public:
657 MOCK_METHOD2(OnPassphraseRequired, 656 MOCK_METHOD2(OnPassphraseRequired,
658 void(PassphraseRequiredReason, 657 void(PassphraseRequiredReason,
(...skipping 2521 matching lines...) Expand 10 before | Expand all | Expand 10 after
3180 // SyncManagerInitInvalidStorageTest::GetFactory will return 3179 // SyncManagerInitInvalidStorageTest::GetFactory will return
3181 // DirectoryBackingStore that ensures that SyncManagerImpl::OpenDirectory fails. 3180 // DirectoryBackingStore that ensures that SyncManagerImpl::OpenDirectory fails.
3182 // SyncManagerImpl initialization is done in SyncManagerTest::SetUp. This test's 3181 // SyncManagerImpl initialization is done in SyncManagerTest::SetUp. This test's
3183 // task is to ensure that SyncManagerImpl reported initialization failure in 3182 // task is to ensure that SyncManagerImpl reported initialization failure in
3184 // OnInitializationComplete callback. 3183 // OnInitializationComplete callback.
3185 TEST_F(SyncManagerInitInvalidStorageTest, FailToOpenDatabase) { 3184 TEST_F(SyncManagerInitInvalidStorageTest, FailToOpenDatabase) {
3186 EXPECT_FALSE(initialization_succeeded_); 3185 EXPECT_FALSE(initialization_succeeded_);
3187 } 3186 }
3188 3187
3189 } // namespace 3188 } // namespace
OLDNEW
« no previous file with comments | « sync/internal_api/public/sync_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698