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

Side by Side Diff: chrome/browser/sync/glue/local_device_info_provider_mock.h

Issue 367153005: Sync: Refactoring of DEVICE_INFO syncable type - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed build issues in browser_tests Created 6 years, 5 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698