Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: components/sync_driver/fake_sync_client.h

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "components/sync_driver/sync_client.h" 11 #include "components/sync_driver/sync_client.h"
10 12
11 namespace sync_driver { 13 namespace sync_driver {
12 class FakeSyncService; 14 class FakeSyncService;
13 15
14 // Fake implementation of SyncClient interface for tests. 16 // Fake implementation of SyncClient interface for tests.
15 class FakeSyncClient : public SyncClient { 17 class FakeSyncClient : public SyncClient {
16 public: 18 public:
17 FakeSyncClient(); 19 FakeSyncClient();
(...skipping 19 matching lines...) Expand all
37 syncer::ModelType type) override; 39 syncer::ModelType type) override;
38 syncer_v2::ModelTypeService* GetModelTypeServiceForType( 40 syncer_v2::ModelTypeService* GetModelTypeServiceForType(
39 syncer::ModelType type) override; 41 syncer::ModelType type) override;
40 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( 42 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup(
41 syncer::ModelSafeGroup group, 43 syncer::ModelSafeGroup group,
42 syncer::WorkerLoopDestructionObserver* observer) override; 44 syncer::WorkerLoopDestructionObserver* observer) override;
43 SyncApiComponentFactory* GetSyncApiComponentFactory() override; 45 SyncApiComponentFactory* GetSyncApiComponentFactory() override;
44 46
45 private: 47 private:
46 SyncApiComponentFactory* factory_; 48 SyncApiComponentFactory* factory_;
47 scoped_ptr<FakeSyncService> sync_service_; 49 std::unique_ptr<FakeSyncService> sync_service_;
48 50
49 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); 51 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient);
50 }; 52 };
51 53
52 } // namespace sync_driver 54 } // namespace sync_driver
53 55
54 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 56 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
OLDNEW
« no previous file with comments | « components/sync_driver/fake_generic_change_processor.cc ('k') | components/sync_driver/fake_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698