1 // Copyright (c) 2013 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 CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_
8 #include "chromeos/dbus/system_clock_client.h"
9 #include "testing/gmock/include/gmock/gmock.h"
13 // SystemClockClient is used to communicate with the system clock.
14 class MockSystemClockClient
: public SystemClockClient
{
16 MockSystemClockClient();
17 virtual ~MockSystemClockClient();
19 MOCK_METHOD1(AddObserver
, void(Observer
*));
20 MOCK_METHOD1(RemoveObserver
, void(Observer
*));
21 MOCK_METHOD1(HasObserver
, bool(Observer
*));
24 DISALLOW_COPY_AND_ASSIGN(MockSystemClockClient
);
27 } // namespace chromeos
29 #endif // CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_