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 #ifndef COMPONENTS_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ |
6 #define COMPONENTS_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ | 6 #define COMPONENTS_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/test/test_message_loop.h" | 16 #include "base/test/test_message_loop.h" |
17 #include "components/browser_sync/profile_sync_test_util.h" | 17 #include "components/browser_sync/profile_sync_test_util.h" |
18 #include "components/sync/base/model_type.h" | 18 #include "components/sync/base/model_type.h" |
19 #include "components/sync/syncable/change_record.h" | 19 #include "components/sync/syncable/change_record.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace syncer { | |
23 struct UserShare; | |
24 } // namespace syncer | |
25 | |
26 namespace browser_sync { | 22 namespace browser_sync { |
27 | 23 |
28 class TestProfileSyncService; | 24 class TestProfileSyncService; |
29 | 25 |
30 class ProfileSyncServiceTestHelper { | 26 class ProfileSyncServiceTestHelper { |
31 public: | 27 public: |
32 static syncer::ImmutableChangeRecordList MakeSingletonChangeRecordList( | 28 static syncer::ImmutableChangeRecordList MakeSingletonChangeRecordList( |
33 int64_t node_id, | 29 int64_t node_id, |
34 syncer::ChangeRecord::Action action); | 30 syncer::ChangeRecord::Action action); |
35 | 31 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 AbstractProfileSyncServiceTest* test_; | 97 AbstractProfileSyncServiceTest* test_; |
102 syncer::ModelType model_type_; | 98 syncer::ModelType model_type_; |
103 bool success_; | 99 bool success_; |
104 | 100 |
105 DISALLOW_COPY_AND_ASSIGN(CreateRootHelper); | 101 DISALLOW_COPY_AND_ASSIGN(CreateRootHelper); |
106 }; | 102 }; |
107 | 103 |
108 } // namespace browser_sync | 104 } // namespace browser_sync |
109 | 105 |
110 #endif // COMPONENTS_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ | 106 #endif // COMPONENTS_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ |
OLD | NEW |