diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-18 06:10:38 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-18 06:10:38 +0000 |
commit | d4c6bf05147f7622cd6ea34cbeec6d323f6c8ff8 (patch) | |
tree | 3f7a2ccb87d9ce958950c8b3586ee9b46a006f14 /chromeos/dbus/mock_flimflam_service_client.h | |
parent | 77367c76f57968653c6f9921aec85e434f248952 (diff) | |
download | chromium_src-d4c6bf05147f7622cd6ea34cbeec6d323f6c8ff8.zip chromium_src-d4c6bf05147f7622cd6ea34cbeec6d323f6c8ff8.tar.gz chromium_src-d4c6bf05147f7622cd6ea34cbeec6d323f6c8ff8.tar.bz2 |
Add FlimflamServiceClient
BUG=chromium-os:16557
TEST=chromeos_unittests --gtest_filter="FlimflamServiceClientTest.*"
Review URL: http://codereview.chromium.org/9956164
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132756 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/mock_flimflam_service_client.h')
-rw-r--r-- | chromeos/dbus/mock_flimflam_service_client.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/chromeos/dbus/mock_flimflam_service_client.h b/chromeos/dbus/mock_flimflam_service_client.h new file mode 100644 index 0000000..4a67b4b --- /dev/null +++ b/chromeos/dbus/mock_flimflam_service_client.h @@ -0,0 +1,47 @@ +// Copyright (c) 2012 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_FLIMFLAM_SERVICE_CLIENT_H_ +#define CHROMEOS_DBUS_MOCK_FLIMFLAM_SERVICE_CLIENT_H_ + +#include "base/values.h" +#include "chromeos/dbus/flimflam_service_client.h" +#include "dbus/object_path.h" +#include "testing/gmock/include/gmock/gmock.h" + +namespace chromeos { + +class MockFlimflamServiceClient : public FlimflamServiceClient { + public: + MockFlimflamServiceClient(); + virtual ~MockFlimflamServiceClient(); + + MOCK_METHOD2(SetPropertyChangedHandler, + void(const dbus::ObjectPath& service_path, + const PropertyChangedHandler& handler)); + MOCK_METHOD1(ResetPropertyChangedHandler, + void(const dbus::ObjectPath& service_path)); + MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& service_path, + const DictionaryValueCallback& callback)); + MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& service_path, + const std::string& name, + const base::Value& value, + const VoidCallback& callback)); + MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& service_path, + const std::string& name, + const VoidCallback& callback)); + MOCK_METHOD2(Connect, void(const dbus::ObjectPath& service_path, + const VoidCallback& callback)); + MOCK_METHOD2(Disconnect, void(const dbus::ObjectPath& service_path, + const VoidCallback& callback)); + MOCK_METHOD2(Remove, void(const dbus::ObjectPath& service_path, + const VoidCallback& callback)); + MOCK_METHOD3(ActivateCellularModem, void(const dbus::ObjectPath& service_path, + const std::string& carrier, + const VoidCallback& callback)); +}; + +} // namespace chromeos + +#endif // CHROMEOS_DBUS_MOCK_FLIMFLAM_SERVICE_CLIENT_H_ |