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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/mock_system_clock_client.h
diff --git a/chromeos/dbus/mock_system_clock_client.h b/chromeos/dbus/mock_system_clock_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..547c3858f0312a42f00486707835446069925acf
--- /dev/null
+++ b/chromeos/dbus/mock_system_clock_client.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2013 The Chromium 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 CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_
+#define CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_
+
+#include "chromeos/dbus/system_clock_client.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chromeos {
+
+// SystemClockClient is used to communicate with the system clock.
+class MockSystemClockClient : public SystemClockClient {
+ public:
+ MockSystemClockClient();
+ virtual ~MockSystemClockClient();
+
+ MOCK_METHOD1(AddObserver, void(Observer*));
+ MOCK_METHOD1(RemoveObserver, void(Observer*));
+ MOCK_METHOD1(HasObserver, bool(Observer*));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockSystemClockClient);
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_DBUS_MOCK_SYSTEM_CLOCK_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698