| Index: components/sync/engine/fake_sync_engine.h
|
| diff --git a/components/sync/driver/glue/sync_backend_host_mock.h b/components/sync/engine/fake_sync_engine.h
|
| similarity index 89%
|
| rename from components/sync/driver/glue/sync_backend_host_mock.h
|
| rename to components/sync/engine/fake_sync_engine.h
|
| index 66b5a26e25eba21b868ae6d4b8728254942e40b0..68e93474701fdfb7e8decf4430a740786b6a7a9f 100644
|
| --- a/components/sync/driver/glue/sync_backend_host_mock.h
|
| +++ b/components/sync/engine/fake_sync_engine.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
|
| -#define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
|
| +#ifndef COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_
|
| +#define COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_
|
|
|
| #include <memory>
|
| #include <string>
|
| @@ -11,23 +11,23 @@
|
| #include "base/callback.h"
|
| #include "base/compiler_specific.h"
|
| #include "components/sync/base/weak_handle.h"
|
| -#include "components/sync/driver/glue/sync_backend_host.h"
|
| +#include "components/sync/engine/sync_engine.h"
|
|
|
| namespace syncer {
|
|
|
| -// A mock of the SyncBackendHost.
|
| +// A mock of the SyncEngine.
|
| //
|
| // This class implements the bare minimum required for the ProfileSyncService to
|
| // get through initialization. It often returns null pointers or nonesense
|
| -// values; it is not intended to be used in tests that depend on SyncBackendHost
|
| +// values; it is not intended to be used in tests that depend on SyncEngine
|
| // behavior.
|
| -class SyncBackendHostMock : public SyncBackendHost {
|
| +class FakeSyncEngine : public SyncEngine {
|
| public:
|
| - SyncBackendHostMock();
|
| - ~SyncBackendHostMock() override;
|
| + FakeSyncEngine();
|
| + ~FakeSyncEngine() override;
|
|
|
| void Initialize(
|
| - SyncFrontend* frontend,
|
| + SyncEngineHost* host,
|
| scoped_refptr<base::SingleThreadTaskRunner> sync_task_runner,
|
| const WeakHandle<JsEventHandler>& event_handler,
|
| const GURL& service_url,
|
| @@ -118,4 +118,4 @@ class SyncBackendHostMock : public SyncBackendHost {
|
|
|
| } // namespace syncer
|
|
|
| -#endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
|
| +#endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_
|
|
|