blob: 369e4800f3e6f0e8ca574ab20892b71e07f8267a [file] [log] [blame] [edit]
// Copyright 2018 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_MOCK_TIME_H_
#define SHILL_MOCK_TIME_H_
#include "shill/time.h"
#include <gmock/gmock.h>
namespace shill {
class MockTime : public Time {
public:
MockTime();
MockTime(const MockTime&) = delete;
MockTime& operator=(const MockTime&) = delete;
~MockTime() override;
MOCK_METHOD(bool, GetSecondsBoottime, (time_t*), (override));
MOCK_METHOD(int, GetTimeMonotonic, (struct timeval*), (override));
MOCK_METHOD(int, GetTimeBoottime, (struct timeval*), (override));
MOCK_METHOD(Timestamp, GetNow, (), (override));
};
} // namespace shill
#endif // SHILL_MOCK_TIME_H_