blob: 814db0bc7c2eeefdc40714bddbe2723c8d7751bf [file] [log] [blame]
Darin Petkovf7897bc2011-06-08 17:13:36 -07001// Copyright (c) 2011 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 SHILL_MOCK_GLIB_H_
6#define SHILL_MOCK_GLIB_H_
7
8#include <gmock/gmock.h>
9
10#include "shill/glib_interface.h"
11
12namespace shill {
13
14class MockGLib : public GLibInterface {
15 public:
Darin Petkov92c43902011-06-09 20:46:06 -070016 MOCK_METHOD3(ChildWatchAdd, guint(GPid pid,
17 GChildWatchFunc function,
18 gpointer data));
19 MOCK_METHOD1(SourceRemove, gboolean(guint tag));
Darin Petkovf7897bc2011-06-08 17:13:36 -070020 MOCK_METHOD8(SpawnAsync, gboolean(const gchar *working_directory,
21 gchar **argv,
22 gchar **envp,
23 GSpawnFlags flags,
24 GSpawnChildSetupFunc child_setup,
25 gpointer user_data,
26 GPid *child_pid,
27 GError **error));
Darin Petkov92c43902011-06-09 20:46:06 -070028 MOCK_METHOD1(SpawnClosePID, void(GPid pid));
Darin Petkovf7897bc2011-06-08 17:13:36 -070029};
30
31} // namespace shill
32
33#endif // SHILL_MOCK_GLIB_H_