| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/sync/glue/sync_backend_host_impl.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual ~MockSyncFrontend() {} | 65 virtual ~MockSyncFrontend() {} |
| 66 | 66 |
| 67 MOCK_METHOD3( | 67 MOCK_METHOD3( |
| 68 OnBackendInitialized, | 68 OnBackendInitialized, |
| 69 void(const syncer::WeakHandle<syncer::JsBackend>&, | 69 void(const syncer::WeakHandle<syncer::JsBackend>&, |
| 70 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, | 70 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, |
| 71 bool)); | 71 bool)); |
| 72 MOCK_METHOD0(OnSyncCycleCompleted, void()); | 72 MOCK_METHOD0(OnSyncCycleCompleted, void()); |
| 73 MOCK_METHOD1(OnConnectionStatusChange, | 73 MOCK_METHOD1(OnConnectionStatusChange, |
| 74 void(syncer::ConnectionStatus status)); | 74 void(syncer::ConnectionStatus status)); |
| 75 MOCK_METHOD0(OnStopSyncingPermanently, void()); | |
| 76 MOCK_METHOD0(OnClearServerDataSucceeded, void()); | 75 MOCK_METHOD0(OnClearServerDataSucceeded, void()); |
| 77 MOCK_METHOD0(OnClearServerDataFailed, void()); | 76 MOCK_METHOD0(OnClearServerDataFailed, void()); |
| 78 MOCK_METHOD2(OnPassphraseRequired, | 77 MOCK_METHOD2(OnPassphraseRequired, |
| 79 void(syncer::PassphraseRequiredReason, | 78 void(syncer::PassphraseRequiredReason, |
| 80 const sync_pb::EncryptedData&)); | 79 const sync_pb::EncryptedData&)); |
| 81 MOCK_METHOD0(OnPassphraseAccepted, void()); | 80 MOCK_METHOD0(OnPassphraseAccepted, void()); |
| 82 MOCK_METHOD2(OnEncryptedTypesChanged, | 81 MOCK_METHOD2(OnEncryptedTypesChanged, |
| 83 void(syncer::ModelTypeSet, bool)); | 82 void(syncer::ModelTypeSet, bool)); |
| 84 MOCK_METHOD0(OnEncryptionComplete, void()); | 83 MOCK_METHOD0(OnEncryptionComplete, void()); |
| 85 MOCK_METHOD1(OnMigrationNeededForTypes, void(syncer::ModelTypeSet)); | 84 MOCK_METHOD1(OnMigrationNeededForTypes, void(syncer::ModelTypeSet)); |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 ASSERT_NE(-1, file_util::WriteFile(sync_file, nonsense, strlen(nonsense))); | 700 ASSERT_NE(-1, file_util::WriteFile(sync_file, nonsense, strlen(nonsense))); |
| 702 | 701 |
| 703 InitializeBackend(true); | 702 InitializeBackend(true); |
| 704 | 703 |
| 705 EXPECT_FALSE(base::PathExists(sync_file)); | 704 EXPECT_FALSE(base::PathExists(sync_file)); |
| 706 } | 705 } |
| 707 | 706 |
| 708 } // namespace | 707 } // namespace |
| 709 | 708 |
| 710 } // namespace browser_sync | 709 } // namespace browser_sync |
| OLD | NEW |