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