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
{
17 ~MockSyncScheduler() override
;
21 void(const base::TimeDelta
& elapsed_time_since_last_sync
,
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
));
30 DISALLOW_COPY_AND_ASSIGN(MockSyncScheduler
);
33 } // namespace proximity_auth
35 #endif // COMPONENTS_PROXIMITY_CRYPTAUTH_MOCK_SYNC_SCHEDULER_H