shill: wimax: Implement WiMAX Manager and Device proxies.
Also, add a WiMax logging scope.
BUG=chrome-os-partner:9697
TEST=build and run unit tests
Change-Id: I8516ff2b55e54feb5fcdab089d0fe279551b4317
Reviewed-on: https://gerrit.chromium.org/gerrit/22695
Commit-Ready: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
diff --git a/wimax_device_proxy_interface.h b/wimax_device_proxy_interface.h
new file mode 100644
index 0000000..0098978
--- /dev/null
+++ b/wimax_device_proxy_interface.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2012 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_WIMAX_DEVICE_PROXY_INTERFACE_
+#define SHILL_WIMAX_DEVICE_PROXY_INTERFACE_
+
+#include <string>
+
+#include <base/basictypes.h>
+
+#include "shill/callbacks.h"
+
+namespace shill {
+
+class Error;
+
+// These are the methods that a WiMaxManager.Device proxy must support. The
+// interface is provided so that it can be mocked in tests.
+class WiMaxDeviceProxyInterface {
+ public:
+ virtual ~WiMaxDeviceProxyInterface() {}
+
+ virtual void Enable(Error *error,
+ const ResultCallback &callback,
+ int timeout) = 0;
+ virtual void Disable(Error *error,
+ const ResultCallback &callback,
+ int timeout) = 0;
+ virtual void Connect(Error *error,
+ const ResultCallback &callback,
+ int timeout) = 0;
+ virtual void Disconnect(Error *error,
+ const ResultCallback &callback,
+ int timeout) = 0;
+
+ // Properties.
+ virtual uint8 Index(Error *error) = 0;
+ virtual std::string Name(Error *error) = 0;
+};
+
+} // namespace shill
+
+#endif // SHILL_WIMAX_DEVICE_PROXY_INTERFACE_H_