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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« libcurl_http_fetcher.cc ('K') | « libcurl_http_fetcher.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium OS 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_PLATFORM_UPDATE_ENGINE_MOCK_DBUS_INTERFACE_H__
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_DBUS_INTERFACE_H__
7
8 #include <gmock/gmock.h>
9
10 #include "update_engine/dbus_interface.h"
11
12 namespace chromeos_update_engine {
13
14 class MockDbusGlib : public DbusGlibInterface {
15 public:
16 MOCK_METHOD5(ProxyNewForNameOwner, DBusGProxy*(DBusGConnection *connection,
17 const char *name,
18 const char *path,
19 const char *interface,
20 GError **error));
21
22 MOCK_METHOD1(ProxyUnref, void(DBusGProxy* proxy));
23
24 MOCK_METHOD2(BusGet, DBusGConnection*(DBusBusType type, GError **error));
25
26 MOCK_METHOD7(ProxyCall, gboolean(DBusGProxy *proxy,
27 const char *method,
28 GError **error,
29 GType first_arg_type,
30 GType var_arg1,
31 GHashTable** var_arg2,
32 GType var_arg3));
33 };
34
35 } // namespace chromeos_update_engine
36
37 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_DBUS_INTERFACE_H__
OLDNEW
« 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