shill: wimax: Autoconnect only one service per WiMAX device.
BUG=chrome-os-partner:11162
TEST=unit tests
Change-Id: Ie7a67035f2410f13c25991c57a955b76b71d791e
Reviewed-on: https://gerrit.chromium.org/gerrit/27169
Commit-Ready: Darin Petkov <petkov@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
diff --git a/wimax_service.h b/wimax_service.h
index 69376ff..6eded37 100644
--- a/wimax_service.h
+++ b/wimax_service.h
@@ -78,12 +78,17 @@
private:
friend class WiMaxServiceTest;
FRIEND_TEST(WiMaxServiceTest, GetDeviceRpcId);
+ FRIEND_TEST(WiMaxServiceTest, IsAutoConnectable);
FRIEND_TEST(WiMaxServiceTest, OnSignalStrengthChanged);
FRIEND_TEST(WiMaxServiceTest, SetEAP);
FRIEND_TEST(WiMaxServiceTest, SetState);
FRIEND_TEST(WiMaxServiceTest, StartStop);
+ static const char kAutoConnBusy[];
+
+ // Inherited from Service.
virtual std::string GetDeviceRpcId(Error *error);
+ virtual bool IsAutoConnectable(const char **reason) const;
void OnSignalStrengthChanged(int strength);