OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ |
6 #define COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/sync_sessions/sync_sessions_client.h" | 11 #include "components/sync_sessions/sync_sessions_client.h" |
12 | 12 |
13 namespace sync_sessions { | 13 namespace sync_sessions { |
14 | 14 |
15 // Fake implementation of a SyncSessionsClient for testing. | 15 // Fake implementation of a SyncSessionsClient for testing. |
16 class FakeSyncSessionsClient : public SyncSessionsClient { | 16 class FakeSyncSessionsClient : public SyncSessionsClient { |
17 public: | 17 public: |
18 FakeSyncSessionsClient(); | 18 FakeSyncSessionsClient(); |
19 ~FakeSyncSessionsClient() override; | 19 ~FakeSyncSessionsClient() override; |
20 | 20 |
21 // SyncSessionsClient: | 21 // SyncSessionsClient: |
22 bookmarks::BookmarkModel* GetBookmarkModel() override; | 22 bookmarks::BookmarkModel* GetBookmarkModel() override; |
23 favicon::FaviconService* GetFaviconService() override; | 23 favicon::FaviconService* GetFaviconService() override; |
24 history::HistoryService* GetHistoryService() override; | 24 history::HistoryService* GetHistoryService() override; |
25 bool ShouldSyncURL(const GURL& url) const override; | 25 bool ShouldSyncURL(const GURL& url) const override; |
26 SyncedWindowDelegatesGetter* GetSyncedWindowDelegatesGetter() override; | 26 SyncedWindowDelegatesGetter* GetSyncedWindowDelegatesGetter() override; |
27 std::unique_ptr<LocalSessionEventRouter> GetLocalSessionEventRouter() | 27 LocalSessionEventRouter* GetLocalSessionEventRouter() override; |
28 override; | |
29 | 28 |
30 private: | 29 private: |
31 DISALLOW_COPY_AND_ASSIGN(FakeSyncSessionsClient); | 30 DISALLOW_COPY_AND_ASSIGN(FakeSyncSessionsClient); |
32 }; | 31 }; |
33 | 32 |
34 } // namespace sync_sessions | 33 } // namespace sync_sessions |
35 | 34 |
36 #endif // COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ | 35 #endif // COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ |
OLD | NEW |