OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SYNC_GLUE_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ | |
6 #define CHROME_BROWSER_SYNC_GLUE_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ | |
7 | |
8 #include "chrome/browser/sync/glue/device_info.h" | |
9 #include "chrome/browser/sync/glue/local_device_info_provider.h" | |
10 | |
11 namespace browser_sync { | |
12 | |
13 class LocalDeviceInfoProviderMock : public LocalDeviceInfoProvider { | |
maniscalco
2014/07/08 21:17:53
Most of the sync code I've seen prefixes mocks wit
stanisc
2014/07/09 21:58:36
There are 26 instances (including this one) of fil
maniscalco
2014/07/09 22:47:34
You're right, it's mixed. All of the files in c/b
| |
14 public: | |
15 LocalDeviceInfoProviderMock( | |
16 const std::string& guid, | |
17 const std::string& client_name, | |
18 const std::string& chrome_version, | |
19 const std::string& sync_user_agent, | |
20 const sync_pb::SyncEnums::DeviceType device_type); | |
21 virtual ~LocalDeviceInfoProviderMock(); | |
22 | |
23 virtual const DeviceInfo* GetLocalDeviceInfo() const OVERRIDE; | |
24 virtual std::string GetLocalSyncCacheGUID() const OVERRIDE; | |
25 virtual bool IsInitialized() const OVERRIDE; | |
26 virtual scoped_ptr<Subscription> RegisterOnInitializedCallback( | |
27 const base::Closure& callback) OVERRIDE; | |
28 | |
29 void SetInitialized(bool is_initialized); | |
30 | |
31 private: | |
32 bool is_initialized_; | |
33 | |
34 scoped_ptr<DeviceInfo> local_device_info_; | |
35 base::CallbackList<void(void)> callback_list_; | |
36 }; | |
37 | |
38 } // namespace browser_sync | |
39 | |
40 #endif // CHROME_BROWSER_SYNC_GLUE_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ | |
OLD | NEW |