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

Unified Diff: mock_dbus_interface.h

Issue 4029002: AU: Don't use network on expensive connection types (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Created 10 years, 2 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
« libcurl_http_fetcher.cc ('K') | « libcurl_http_fetcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mock_dbus_interface.h
diff --git a/mock_dbus_interface.h b/mock_dbus_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..bf0d60960919ae2c559bcfa47d6cb652fbc8f568
--- /dev/null
+++ b/mock_dbus_interface.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2010 The Chromium OS 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_PLATFORM_UPDATE_ENGINE_MOCK_DBUS_INTERFACE_H__
+#define CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_DBUS_INTERFACE_H__
+
+#include <gmock/gmock.h>
+
+#include "update_engine/dbus_interface.h"
+
+namespace chromeos_update_engine {
+
+class MockDbusGlib : public DbusGlibInterface {
+ public:
+ MOCK_METHOD5(ProxyNewForNameOwner, DBusGProxy*(DBusGConnection *connection,
+ const char *name,
+ const char *path,
+ const char *interface,
+ GError **error));
+
+ MOCK_METHOD1(ProxyUnref, void(DBusGProxy* proxy));
+
+ MOCK_METHOD2(BusGet, DBusGConnection*(DBusBusType type, GError **error));
+
+ MOCK_METHOD7(ProxyCall, gboolean(DBusGProxy *proxy,
+ const char *method,
+ GError **error,
+ GType first_arg_type,
+ GType var_arg1,
+ GHashTable** var_arg2,
+ GType var_arg3));
+};
+
+} // namespace chromeos_update_engine
+
+#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_DBUS_INTERFACE_H__
« libcurl_http_fetcher.cc ('K') | « libcurl_http_fetcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698