blob: 0b5b3077f8dd644ff508f3e67aee41ba3e8655e8 [file] [log] [blame]
// Copyright (c) 2012 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.
#include "components/browser_sync/profile_sync_service_mock.h"
#include <utility>
namespace browser_sync {
ProfileSyncServiceMock::ProfileSyncServiceMock(InitParams init_params)
: ProfileSyncService(std::move(init_params)) {}
ProfileSyncServiceMock::ProfileSyncServiceMock(InitParams* init_params)
: ProfileSyncServiceMock(std::move(*init_params)) {}
ProfileSyncServiceMock::~ProfileSyncServiceMock() {}
sync_sessions::OpenTabsUIDelegate*
ProfileSyncServiceMock::GetOpenTabsUIDelegate() {
sync_sessions::OpenTabsUIDelegate* mock_delegate =
GetOpenTabsUIDelegateMock();
return mock_delegate ? mock_delegate
: ProfileSyncService::GetOpenTabsUIDelegate();
}
std::unique_ptr<syncer::SyncSetupInProgressHandle>
ProfileSyncServiceMock::GetSetupInProgressHandleConcrete() {
return browser_sync::ProfileSyncService::GetSetupInProgressHandle();
}
} // namespace browser_sync