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

Unified Diff: chrome/browser/chromeos/dbus/mock_flimflam_ipconfig_client.h

Issue 9875013: Add FlimflamIPConfigClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix to append a variant in SetProperty Created 8 years, 9 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
Index: chrome/browser/chromeos/dbus/mock_flimflam_ipconfig_client.h
diff --git a/chrome/browser/chromeos/dbus/mock_flimflam_ipconfig_client.h b/chrome/browser/chromeos/dbus/mock_flimflam_ipconfig_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..71d1a277bf3d247f837a0ddbf4184bd8fe49ee28
--- /dev/null
+++ b/chrome/browser/chromeos/dbus/mock_flimflam_ipconfig_client.h
@@ -0,0 +1,33 @@
+// 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 CHROME_BROWSER_CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_
+#define CHROME_BROWSER_CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_
+
+#include "base/values.h"
+#include "chrome/browser/chromeos/dbus/flimflam_ipconfig_client.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chromeos {
+
+class MockFlimflamIPConfigClient : public FlimflamIPConfigClient {
+ public:
+ MockFlimflamIPConfigClient();
+ virtual ~MockFlimflamIPConfigClient();
+
+ MOCK_METHOD1(SetPropertyChangedHandler,
+ void(const PropertyChangedHandler& handler));
+ MOCK_METHOD0(ResetPropertyChangedHandler, void());
+ MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback));
+ MOCK_METHOD3(SetProperty, void(const std::string& name,
+ const base::Value& value,
+ const VoidCallback& callback));
+ MOCK_METHOD2(ClearProperty, void(const std::string& name,
+ const VoidCallback& callback));
+ MOCK_METHOD1(Remove, void(const VoidCallback& callback));
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698