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_registrar.h" | 5 #include "chrome/browser/sync/glue/sync_backend_registrar.h" |
6 | 6 |
7 #include "chrome/browser/sync/glue/change_processor_mock.h" | 7 #include "chrome/browser/sync/glue/change_processor_mock.h" |
8 #include "chrome/browser/sync/glue/ui_model_worker.h" | 8 #include "chrome/browser/sync/glue/ui_model_worker.h" |
9 #include "chrome/browser/sync/syncable/model_type.h" | 9 #include "chrome/browser/sync/syncable/model_type.h" |
10 #include "chrome/browser/sync/test/engine/test_user_share.h" | 10 #include "chrome/browser/sync/test/engine/test_user_share.h" |
11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
12 #include "content/test/test_browser_thread.h" | 12 #include "content/test/test_browser_thread.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace browser_sync { | 16 namespace browser_sync { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 using ::testing::_; | 20 using ::testing::_; |
21 using ::testing::InSequence; | 21 using ::testing::InSequence; |
22 using ::testing::Return; | 22 using ::testing::Return; |
23 using ::testing::StrictMock; | 23 using ::testing::StrictMock; |
| 24 using content::BrowserThread; |
24 using syncable::FIRST_REAL_MODEL_TYPE; | 25 using syncable::FIRST_REAL_MODEL_TYPE; |
25 using syncable::AUTOFILL; | 26 using syncable::AUTOFILL; |
26 using syncable::BOOKMARKS; | 27 using syncable::BOOKMARKS; |
27 using syncable::PREFERENCES; | 28 using syncable::PREFERENCES; |
28 using syncable::THEMES; | 29 using syncable::THEMES; |
29 using syncable::NIGORI; | 30 using syncable::NIGORI; |
30 using syncable::PASSWORDS; | 31 using syncable::PASSWORDS; |
31 using syncable::MODEL_TYPE_COUNT; | 32 using syncable::MODEL_TYPE_COUNT; |
32 using syncable::ModelType; | 33 using syncable::ModelType; |
33 using syncable::ModelTypeFromInt; | 34 using syncable::ModelTypeFromInt; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // Should do nothing. | 247 // Should do nothing. |
247 TriggerChanges(®istrar, AUTOFILL); | 248 TriggerChanges(®istrar, AUTOFILL); |
248 | 249 |
249 registrar.OnSyncerShutdownComplete(); | 250 registrar.OnSyncerShutdownComplete(); |
250 registrar.StopOnUIThread(); | 251 registrar.StopOnUIThread(); |
251 } | 252 } |
252 | 253 |
253 } // namespace | 254 } // namespace |
254 | 255 |
255 } // namespace browser_sync | 256 } // namespace browser_sync |
OLD | NEW |