blob: 5e332b8f05c11d72df82061f5775ab09c30c0a65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2015 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_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_
#define COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_
#include "base/macros.h"
#include "components/sync_sessions/sync_sessions_client.h"
namespace sync_sessions {
// Fake implementation of a SyncSessionsClient for testing.
class FakeSyncSessionsClient : public SyncSessionsClient {
public:
FakeSyncSessionsClient();
~FakeSyncSessionsClient() override;
// SyncSessionsClient:
bookmarks::BookmarkModel* GetBookmarkModel() override;
favicon::FaviconService* GetFaviconService() override;
history::HistoryService* GetHistoryService() override;
bool ShouldSyncURL(const GURL& url) const override;
browser_sync::SyncedWindowDelegatesGetter* GetSyncedWindowDelegatesGetter()
override;
scoped_ptr<browser_sync::LocalSessionEventRouter> GetLocalSessionEventRouter()
override;
private:
DISALLOW_COPY_AND_ASSIGN(FakeSyncSessionsClient);
};
} // namespace sync_sessions
#endif // COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_
|