aboutsummaryrefslogtreecommitdiff
path: root/src/test/mock_clock.h
blob: f1a22600ae9e058a3493ae96c48713fe98d7c9b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2015 The Weave Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef LIBWEAVE_SRC_TEST_MOCK_CLOCK_H_
#define LIBWEAVE_SRC_TEST_MOCK_CLOCK_H_

#include <base/time/clock.h>
#include <gmock/gmock.h>

namespace weave {
namespace test {

class MockClock : public base::Clock {
 public:
  MOCK_METHOD0(Now, base::Time());
};

}  // namespace test
}  // namespace weave

#endif  // LIBWEAVE_SRC_TEST_MOCK_CLOCK_H_