shill: Get CDMA registration state.

BUG=chromium-os:18315
TEST=unit tests, tested on device

Change-Id: Ida6d72145eb829a8d47fd23c9d30ded5308aa8cd
Reviewed-on: http://gerrit.chromium.org/gerrit/5115
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
diff --git a/modem_cdma_proxy_interface.h b/modem_cdma_proxy_interface.h
new file mode 100644
index 0000000..c4f4c9c
--- /dev/null
+++ b/modem_cdma_proxy_interface.h
@@ -0,0 +1,24 @@
+// 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_MODEM_CDMA_PROXY_INTERFACE_
+#define SHILL_MODEM_CDMA_PROXY_INTERFACE_
+
+#include <base/basictypes.h>
+
+namespace shill {
+
+// These are the methods that a ModemManager.Modem.CDMA proxy must support. The
+// interface is provided so that it can be mocked in tests.
+class ModemCDMAProxyInterface {
+ public:
+  virtual ~ModemCDMAProxyInterface() {}
+
+  virtual void GetRegistrationState(uint32 *cdma_1x_state,
+                                    uint32 *evdo_state) = 0;
+};
+
+}  // namespace shill
+
+#endif  // SHILL_MODEM_CDMA_PROXY_INTERFACE_