OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ |
| 6 #define COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/sync_sessions/sync_sessions_client.h" |
| 10 |
| 11 namespace sync_sessions { |
| 12 |
| 13 // Fake implementation of a SyncSessionsClient for testing. |
| 14 class FakeSyncSessionsClient : public SyncSessionsClient { |
| 15 public: |
| 16 FakeSyncSessionsClient(); |
| 17 ~FakeSyncSessionsClient() override; |
| 18 |
| 19 // SyncSessionsClient: |
| 20 bool ShouldSyncURL(const GURL& url) const override; |
| 21 browser_sync::SyncedWindowDelegatesGetter* GetSyncedWindowDelegatesGetter() |
| 22 override; |
| 23 |
| 24 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(FakeSyncSessionsClient); |
| 26 }; |
| 27 |
| 28 } // namespace sync_sessions |
| 29 |
| 30 #endif // COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ |
OLD | NEW |