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/shared_change_processor.h" | 5 #include "chrome/browser/sync/glue/shared_change_processor.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "chrome/browser/sync/glue/data_type_error_handler_mock.h" | 13 #include "chrome/browser/sync/glue/data_type_error_handler_mock.h" |
14 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" | 14 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" |
15 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" | 15 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" |
16 #include "chrome/browser/sync/profile_sync_service_mock.h" | 16 #include "chrome/browser/sync/profile_sync_service_mock.h" |
17 #include "content/test/test_browser_thread.h" | 17 #include "content/public/test/test_browser_thread.h" |
18 #include "sync/api/fake_syncable_service.h" | 18 #include "sync/api/fake_syncable_service.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace browser_sync { | 22 namespace browser_sync { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 using content::BrowserThread; | 26 using content::BrowserThread; |
27 using ::testing::NiceMock; | 27 using ::testing::NiceMock; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 // Simply connect the shared change processor. It should succeed, and | 126 // Simply connect the shared change processor. It should succeed, and |
127 // nothing further should happen. | 127 // nothing further should happen. |
128 TEST_F(SyncSharedChangeProcessorTest, Basic) { | 128 TEST_F(SyncSharedChangeProcessorTest, Basic) { |
129 Connect(); | 129 Connect(); |
130 } | 130 } |
131 | 131 |
132 } // namespace | 132 } // namespace |
133 | 133 |
134 } // namespace browser_sync | 134 } // namespace browser_sync |
OLD | NEW |