1// Copyright 2015 The Weave 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 LIBWEAVE_SRC_TEST_MOCK_CLOCK_H_ 6#define LIBWEAVE_SRC_TEST_MOCK_CLOCK_H_ 7 8#include <base/time/clock.h> 9#include <gmock/gmock.h> 10 11namespace weave { 12namespace test { 13 14class MockClock : public base::Clock { 15 public: 16 MOCK_METHOD0(Now, base::Time()); 17}; 18 19} // namespace test 20} // namespace weave 21 22#endif // LIBWEAVE_SRC_TEST_MOCK_CLOCK_H_ 23