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

Unified Diff: components/sync_driver/local_device_info_provider_mock.h

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/sync_driver/local_device_info_provider_mock.h
diff --git a/components/sync_driver/local_device_info_provider_mock.h b/components/sync_driver/local_device_info_provider_mock.h
deleted file mode 100644
index 3aec235d53da2ca67fe203dc8e04d1ea89aa1fb6..0000000000000000000000000000000000000000
--- a/components/sync_driver/local_device_info_provider_mock.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_
-#define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_
-
-#include <string>
-
-#include "components/sync_driver/device_info.h"
-#include "components/sync_driver/local_device_info_provider.h"
-
-namespace sync_driver {
-
-class LocalDeviceInfoProviderMock
- : public sync_driver::LocalDeviceInfoProvider {
- public:
- // Creates uninitialized provider.
- LocalDeviceInfoProviderMock();
- // Creates initialized provider with the specified device info.
- LocalDeviceInfoProviderMock(
- const std::string& guid,
- const std::string& client_name,
- const std::string& chrome_version,
- const std::string& sync_user_agent,
- const sync_pb::SyncEnums::DeviceType device_type,
- const std::string& signin_scoped_device_id);
- ~LocalDeviceInfoProviderMock() override;
-
- const DeviceInfo* GetLocalDeviceInfo() const override;
- std::string GetSyncUserAgent() const override;
- std::string GetLocalSyncCacheGUID() const override;
- void Initialize(
- const std::string& cache_guid,
- const std::string& signin_scoped_device_id,
- const scoped_refptr<base::TaskRunner>& blocking_task_runner) override;
- std::unique_ptr<Subscription> RegisterOnInitializedCallback(
- const base::Closure& callback) override;
- void Clear() override;
-
- void Initialize(std::unique_ptr<DeviceInfo> local_device_info);
- void SetInitialized(bool is_initialized);
-
- private:
- bool is_initialized_;
-
- std::unique_ptr<DeviceInfo> local_device_info_;
- base::CallbackList<void(void)> callback_list_;
-};
-
-} // namespace sync_driver
-
-#endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_
« 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