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" |
11 #include "chrome/browser/sync/engine/model_safe_worker.h" | 11 #include "chrome/browser/sync/engine/model_safe_worker.h" |
12 #include "chrome/browser/sync/internal_api/includes/test_unrecoverable_error_han
dler.h" | 12 #include "chrome/browser/sync/internal_api/includes/test_unrecoverable_error_han
dler.h" |
13 #include "chrome/browser/sync/protocol/encryption.pb.h" | 13 #include "chrome/browser/sync/protocol/encryption.pb.h" |
14 #include "chrome/browser/sync/protocol/sync_protocol_error.h" | 14 #include "chrome/browser/sync/protocol/sync_protocol_error.h" |
15 #include "chrome/browser/sync/sync_prefs.h" | 15 #include "chrome/browser/sync/sync_prefs.h" |
16 #include "chrome/browser/sync/syncable/model_type.h" | 16 #include "chrome/browser/sync/syncable/model_type.h" |
17 #include "chrome/test/base/test_url_request_context_getter.h" | |
18 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
19 #include "chrome/test/base/test_url_request_context_getter.h" | |
20 #include "content/test/test_browser_thread.h" | 18 #include "content/test/test_browser_thread.h" |
21 #include "content/test/test_url_fetcher_factory.h" | 19 #include "content/test/test_url_fetcher_factory.h" |
22 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
23 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
25 | 23 |
26 using content::BrowserThread; | 24 using content::BrowserThread; |
27 | 25 |
28 namespace browser_sync { | 26 namespace browser_sync { |
29 | 27 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 true, | 106 true, |
109 &handler, | 107 &handler, |
110 NULL); | 108 NULL); |
111 backend.StopSyncingForShutdown(); | 109 backend.StopSyncingForShutdown(); |
112 backend.Shutdown(false); | 110 backend.Shutdown(false); |
113 } | 111 } |
114 | 112 |
115 // TODO(akalin): Write more SyncBackendHost unit tests. | 113 // TODO(akalin): Write more SyncBackendHost unit tests. |
116 | 114 |
117 } // namespace browser_sync | 115 } // namespace browser_sync |
OLD | NEW |