Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / chromeos / dbus / mock_system_clock_client.h
blob547c3858f0312a42f00486707835446069925acf
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"
11 namespace chromeos {
13 // SystemClockClient is used to communicate with the system clock.
14 class MockSystemClockClient : public SystemClockClient {
15 public:
16 MockSystemClockClient();
17 virtual ~MockSystemClockClient();
19 MOCK_METHOD1(AddObserver, void(Observer*));
20 MOCK_METHOD1(RemoveObserver, void(Observer*));
21 MOCK_METHOD1(HasObserver, bool(Observer*));
23 private:
24 DISALLOW_COPY_AND_ASSIGN(MockSystemClockClient);
27 } // namespace chromeos
29 #endif // CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_