OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 MOCK_METHOD2(OnBackendInitialized, void(const WeakHandle<JsBackend>&, bool)); | 35 MOCK_METHOD2(OnBackendInitialized, void(const WeakHandle<JsBackend>&, bool)); |
36 MOCK_METHOD0(OnSyncCycleCompleted, void()); | 36 MOCK_METHOD0(OnSyncCycleCompleted, void()); |
37 MOCK_METHOD0(OnAuthError, void()); | 37 MOCK_METHOD0(OnAuthError, void()); |
38 MOCK_METHOD0(OnStopSyncingPermanently, void()); | 38 MOCK_METHOD0(OnStopSyncingPermanently, void()); |
39 MOCK_METHOD0(OnClearServerDataSucceeded, void()); | 39 MOCK_METHOD0(OnClearServerDataSucceeded, void()); |
40 MOCK_METHOD0(OnClearServerDataFailed, void()); | 40 MOCK_METHOD0(OnClearServerDataFailed, void()); |
41 MOCK_METHOD1(OnPassphraseRequired, void(sync_api::PassphraseRequiredReason)); | 41 MOCK_METHOD1(OnPassphraseRequired, void(sync_api::PassphraseRequiredReason)); |
42 MOCK_METHOD0(OnPassphraseAccepted, void()); | 42 MOCK_METHOD0(OnPassphraseAccepted, void()); |
43 MOCK_METHOD1(OnEncryptionComplete, void(const syncable::ModelTypeSet&)); | 43 MOCK_METHOD1(OnEncryptionComplete, void(const syncable::ModelTypeSet&)); |
44 MOCK_METHOD1(OnMigrationNeededForTypes, void(const syncable::ModelTypeSet&)); | 44 MOCK_METHOD1(OnMigrationNeededForTypes, void(const syncable::ModelTypeSet&)); |
| 45 MOCK_METHOD1(OnDataTypesChanged, void(const syncable::ModelTypeSet&)); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace | 48 } // namespace |
48 | 49 |
49 class SyncBackendHostTest : public TestingBrowserProcessTest { | 50 class SyncBackendHostTest : public TestingBrowserProcessTest { |
50 protected: | 51 protected: |
51 SyncBackendHostTest() | 52 SyncBackendHostTest() |
52 : ui_thread_(BrowserThread::UI, &ui_loop_), | 53 : ui_thread_(BrowserThread::UI, &ui_loop_), |
53 io_thread_(BrowserThread::IO) {} | 54 io_thread_(BrowserThread::IO) {} |
54 | 55 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 GURL(k_mock_url), | 105 GURL(k_mock_url), |
105 syncable::ModelTypeSet(), | 106 syncable::ModelTypeSet(), |
106 credentials, | 107 credentials, |
107 true); | 108 true); |
108 backend.Shutdown(false); | 109 backend.Shutdown(false); |
109 } | 110 } |
110 | 111 |
111 // TODO(akalin): Write more SyncBackendHost unit tests. | 112 // TODO(akalin): Write more SyncBackendHost unit tests. |
112 | 113 |
113 } // namespace browser_sync | 114 } // namespace browser_sync |
OLD | NEW |