Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: chromeos/dbus/mock_system_clock_client.h

Issue 12564007: Hook up system clock update dbus signal to chrome and ash tray ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser_tests by adding MockSystemClockClient. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_
7
8 #include "chromeos/dbus/system_clock_client.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace chromeos {
12
13 // SystemClockClient is used to communicate with the system clock.
14 class MockSystemClockClient : public SystemClockClient {
15 public:
16 MockSystemClockClient();
17 virtual ~MockSystemClockClient();
18
19 MOCK_METHOD1(AddObserver, void(Observer*));
20 MOCK_METHOD1(RemoveObserver, void(Observer*));
21 MOCK_METHOD1(HasObserver, bool(Observer*));
22
23 private:
24 DISALLOW_COPY_AND_ASSIGN(MockSystemClockClient);
25 };
26
27 } // namespace chromeos
28
29 #endif // CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698