OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 invalidator_storage.AsWeakPtr()); | 100 invalidator_storage.AsWeakPtr()); |
101 | 101 |
102 MockSyncFrontend mock_frontend; | 102 MockSyncFrontend mock_frontend; |
103 sync_api::SyncCredentials credentials; | 103 sync_api::SyncCredentials credentials; |
104 credentials.email = "user@example.com"; | 104 credentials.email = "user@example.com"; |
105 credentials.sync_token = "sync_token"; | 105 credentials.sync_token = "sync_token"; |
106 browser_sync::TestUnrecoverableErrorHandler handler; | 106 browser_sync::TestUnrecoverableErrorHandler handler; |
107 backend.Initialize(&mock_frontend, | 107 backend.Initialize(&mock_frontend, |
108 WeakHandle<JsEventHandler>(), | 108 WeakHandle<JsEventHandler>(), |
109 GURL(k_mock_url), | 109 GURL(k_mock_url), |
110 syncable::ModelTypeSet(), | |
111 credentials, | 110 credentials, |
112 true, | 111 true, |
113 &handler, | 112 &handler, |
114 NULL); | 113 NULL); |
115 backend.StopSyncingForShutdown(); | 114 backend.StopSyncingForShutdown(); |
116 backend.Shutdown(false); | 115 backend.Shutdown(false); |
117 } | 116 } |
118 | 117 |
119 // TODO(akalin): Write more SyncBackendHost unit tests. | 118 // TODO(akalin): Write more SyncBackendHost unit tests. |
120 | 119 |
121 } // namespace browser_sync | 120 } // namespace browser_sync |
OLD | NEW |