Don't preload rarely seen large images
[chromium-blink-merge.git] / components / proximity_auth / cryptauth / mock_sync_scheduler.h
blobfe3046799bcc13d3dbc036982432d371444572ac
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.
5 #ifndef COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_MOCK_SYNC_SCHEDULER_H
6 #define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_MOCK_SYNC_SCHEDULER_H
8 #include "components/proximity_auth/cryptauth/sync_scheduler.h"
9 #include "testing/gmock/include/gmock/gmock.h"
11 namespace proximity_auth {
13 // Mock implementation of SyncScheduler.
14 class MockSyncScheduler : public SyncScheduler {
15 public:
16 MockSyncScheduler();
17 ~MockSyncScheduler() override;
19 // SyncScheduler:
20 MOCK_METHOD2(Start,
21 void(const base::TimeDelta& elapsed_time_since_last_sync,
22 Strategy strategy));
23 MOCK_METHOD0(ForceSync, void(void));
24 MOCK_CONST_METHOD0(GetTimeToNextSync, base::TimeDelta(void));
25 MOCK_CONST_METHOD0(GetStrategy, Strategy(void));
26 MOCK_CONST_METHOD0(GetSyncState, SyncState(void));
27 MOCK_METHOD1(OnSyncCompleted, void(bool success));
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MockSyncScheduler);
33 } // namespace proximity_auth
35 #endif // COMPONENTS_PROXIMITY_CRYPTAUTH_MOCK_SYNC_SCHEDULER_H