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

Side by Side Diff: components/sync_driver/local_device_info_provider_mock.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_
6 #define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ 6 #define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/sync_driver/device_info.h" 10 #include "components/sync_driver/device_info.h"
(...skipping 16 matching lines...) Expand all
27 const std::string& signin_scoped_device_id); 27 const std::string& signin_scoped_device_id);
28 ~LocalDeviceInfoProviderMock() override; 28 ~LocalDeviceInfoProviderMock() override;
29 29
30 const DeviceInfo* GetLocalDeviceInfo() const override; 30 const DeviceInfo* GetLocalDeviceInfo() const override;
31 std::string GetSyncUserAgent() const override; 31 std::string GetSyncUserAgent() const override;
32 std::string GetLocalSyncCacheGUID() const override; 32 std::string GetLocalSyncCacheGUID() const override;
33 void Initialize( 33 void Initialize(
34 const std::string& cache_guid, 34 const std::string& cache_guid,
35 const std::string& signin_scoped_device_id, 35 const std::string& signin_scoped_device_id,
36 const scoped_refptr<base::TaskRunner>& blocking_task_runner) override; 36 const scoped_refptr<base::TaskRunner>& blocking_task_runner) override;
37 scoped_ptr<Subscription> RegisterOnInitializedCallback( 37 std::unique_ptr<Subscription> RegisterOnInitializedCallback(
38 const base::Closure& callback) override; 38 const base::Closure& callback) override;
39 39
40 void Initialize(scoped_ptr<DeviceInfo> local_device_info); 40 void Initialize(std::unique_ptr<DeviceInfo> local_device_info);
41 void SetInitialized(bool is_initialized); 41 void SetInitialized(bool is_initialized);
42 42
43 private: 43 private:
44 bool is_initialized_; 44 bool is_initialized_;
45 45
46 scoped_ptr<DeviceInfo> local_device_info_; 46 std::unique_ptr<DeviceInfo> local_device_info_;
47 base::CallbackList<void(void)> callback_list_; 47 base::CallbackList<void(void)> callback_list_;
48 }; 48 };
49 49
50 } // namespace sync_driver 50 } // namespace sync_driver
51 51
52 #endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ 52 #endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_
OLDNEW
« no previous file with comments | « components/sync_driver/local_device_info_provider_impl.cc ('k') | components/sync_driver/local_device_info_provider_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698