blob: 814db0bc7c2eeefdc40714bddbe2723c8d7751bf [file] [log] [blame]
// Copyright (c) 2011 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 SHILL_MOCK_GLIB_H_
#define SHILL_MOCK_GLIB_H_
#include <gmock/gmock.h>
#include "shill/glib_interface.h"
namespace shill {
class MockGLib : public GLibInterface {
public:
MOCK_METHOD3(ChildWatchAdd, guint(GPid pid,
GChildWatchFunc function,
gpointer data));
MOCK_METHOD1(SourceRemove, gboolean(guint tag));
MOCK_METHOD8(SpawnAsync, gboolean(const gchar *working_directory,
gchar **argv,
gchar **envp,
GSpawnFlags flags,
GSpawnChildSetupFunc child_setup,
gpointer user_data,
GPid *child_pid,
GError **error));
MOCK_METHOD1(SpawnClosePID, void(GPid pid));
};
} // namespace shill
#endif // SHILL_MOCK_GLIB_H_