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 CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ |
6 #define CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ | 6 #define CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 MakeSingletonDeletionChangeRecordList( | 34 MakeSingletonDeletionChangeRecordList( |
35 int64 node_id, | 35 int64 node_id, |
36 const sync_pb::EntitySpecifics& specifics); | 36 const sync_pb::EntitySpecifics& specifics); |
37 }; | 37 }; |
38 | 38 |
39 class AbstractProfileSyncServiceTest : public testing::Test { | 39 class AbstractProfileSyncServiceTest : public testing::Test { |
40 public: | 40 public: |
41 AbstractProfileSyncServiceTest(); | 41 AbstractProfileSyncServiceTest(); |
42 virtual ~AbstractProfileSyncServiceTest(); | 42 virtual ~AbstractProfileSyncServiceTest(); |
43 | 43 |
44 virtual void SetUp() OVERRIDE; | 44 virtual void SetUp() override; |
45 | 45 |
46 virtual void TearDown() OVERRIDE; | 46 virtual void TearDown() override; |
47 | 47 |
48 bool CreateRoot(syncer::ModelType model_type); | 48 bool CreateRoot(syncer::ModelType model_type); |
49 | 49 |
50 protected: | 50 protected: |
51 content::TestBrowserThreadBundle thread_bundle_; | 51 content::TestBrowserThreadBundle thread_bundle_; |
52 TestProfileSyncService* sync_service_; | 52 TestProfileSyncService* sync_service_; |
53 }; | 53 }; |
54 | 54 |
55 class CreateRootHelper { | 55 class CreateRootHelper { |
56 public: | 56 public: |
57 CreateRootHelper(AbstractProfileSyncServiceTest* test, | 57 CreateRootHelper(AbstractProfileSyncServiceTest* test, |
58 syncer::ModelType model_type); | 58 syncer::ModelType model_type); |
59 virtual ~CreateRootHelper(); | 59 virtual ~CreateRootHelper(); |
60 | 60 |
61 const base::Closure& callback() const; | 61 const base::Closure& callback() const; |
62 bool success(); | 62 bool success(); |
63 | 63 |
64 private: | 64 private: |
65 void CreateRootCallback(); | 65 void CreateRootCallback(); |
66 | 66 |
67 base::Closure callback_; | 67 base::Closure callback_; |
68 AbstractProfileSyncServiceTest* test_; | 68 AbstractProfileSyncServiceTest* test_; |
69 syncer::ModelType model_type_; | 69 syncer::ModelType model_type_; |
70 bool success_; | 70 bool success_; |
71 }; | 71 }; |
72 | 72 |
73 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ | 73 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ |
OLD | NEW |