shill: Create DBusPropertiesProxy for Modem.

Since the ModemManagerClassic/ModemManager1 split happened, modems had
not been creating a DBusPropertiesProxy, so they have not been getting
PropertyChanged or MmPropertiesChanged signals. As a result, shill
hasn't been handling updates to network technology or SIM lock status.
This change adds creation of the proxy to the Modem intialization
path, and moves the inheritance from DBusPropertiesProxyDelegate
up to the base Modem class from ModemClassic.

BUG=chromium-os:29230
TEST=Disable and enable the modem. Use list-services and mm-status
to check whether shill's view of the network technology matches
ModemManager's AccessTechnology property. Also enable and disable
the SIM lock PIN, and make sure that the device SIMLockStatus
property gets updated properly.

Change-Id: I1f03935cb05e1ad0edf057b5bb64e993b9ccd977
Reviewed-on: https://gerrit.chromium.org/gerrit/19928
Reviewed-by: Jason Glasgow <jglasgow@chromium.org>
Commit-Ready: Eric Shienbrood <ers@chromium.org>
Tested-by: Eric Shienbrood <ers@chromium.org>
4 files changed
tree: fea801f5ba0b1ab73f06e53cdd0bf98b2b342b97
  1. dbus_bindings/
  2. .gitignore
  3. accessor_interface.h
  4. adaptor_interfaces.h
  5. async_connection.cc
  6. async_connection.h
  7. async_connection_unittest.cc
  8. byte_string.cc
  9. byte_string.h
  10. byte_string_unittest.cc
  11. callbacks.h
  12. cellular.cc
  13. cellular.h
  14. cellular_capability.cc
  15. cellular_capability.h
  16. cellular_capability_cdma.cc
  17. cellular_capability_cdma.h
  18. cellular_capability_cdma_unittest.cc
  19. cellular_capability_gsm.cc
  20. cellular_capability_gsm.h
  21. cellular_capability_gsm_unittest.cc
  22. cellular_capability_unittest.cc
  23. cellular_error.cc
  24. cellular_error.h
  25. cellular_service.cc
  26. cellular_service.h
  27. cellular_service_unittest.cc
  28. cellular_unittest.cc
  29. connection.cc
  30. connection.h
  31. connection_unittest.cc
  32. control_interface.h
  33. crypto_des_cbc.cc
  34. crypto_des_cbc.h
  35. crypto_des_cbc_unittest.cc
  36. crypto_interface.h
  37. crypto_provider.cc
  38. crypto_provider.h
  39. crypto_provider_unittest.cc
  40. crypto_rot47.cc
  41. crypto_rot47.h
  42. crypto_rot47_unittest.cc
  43. dbus_adaptor.cc
  44. dbus_adaptor.h
  45. dbus_adaptor_unittest.cc
  46. dbus_control.cc
  47. dbus_control.h
  48. dbus_objectmanager_proxy.cc
  49. dbus_objectmanager_proxy.h
  50. dbus_objectmanager_proxy_interface.h
  51. dbus_properties.cc
  52. dbus_properties.h
  53. dbus_properties_proxy.cc
  54. dbus_properties_proxy.h
  55. dbus_properties_proxy_interface.h
  56. dbus_properties_unittest.cc
  57. dbus_property_matchers.h
  58. default_profile.cc
  59. default_profile.h
  60. default_profile_unittest.cc
  61. device.cc
  62. device.h
  63. device_dbus_adaptor.cc
  64. device_dbus_adaptor.h
  65. device_info.cc
  66. device_info.h
  67. device_info_unittest.cc
  68. device_stub.h
  69. device_unittest.cc
  70. dhcp_config.cc
  71. dhcp_config.h
  72. dhcp_config_unittest.cc
  73. dhcp_provider.cc
  74. dhcp_provider.h
  75. dhcp_provider_unittest.cc
  76. dhcp_proxy_interface.h
  77. dhcpcd_proxy.cc
  78. dhcpcd_proxy.h
  79. dns_client.cc
  80. dns_client.h
  81. dns_client_unittest.cc
  82. endpoint.cc
  83. endpoint.h
  84. ephemeral_profile.cc
  85. ephemeral_profile.h
  86. error.cc
  87. error.h
  88. error_unittest.cc
  89. ethernet.cc
  90. ethernet.h
  91. ethernet_service.cc
  92. ethernet_service.h
  93. event_dispatcher.cc
  94. event_dispatcher.h
  95. glib.cc
  96. glib.h
  97. glib_io_input_handler.cc
  98. glib_io_input_handler.h
  99. glib_io_ready_handler.cc
  100. glib_io_ready_handler.h
  101. HACKING
  102. http_proxy.cc
  103. http_proxy.h
  104. http_proxy_unittest.cc
  105. http_request.cc
  106. http_request.h
  107. http_request_unittest.cc
  108. http_url.cc
  109. http_url.h
  110. http_url_unittest.cc
  111. ieee80211.h
  112. io_handler.h
  113. ip_address.cc
  114. ip_address.h
  115. ip_address_unittest.cc
  116. ipconfig.cc
  117. ipconfig.h
  118. ipconfig_dbus_adaptor.cc
  119. ipconfig_dbus_adaptor.h
  120. ipconfig_unittest.cc
  121. key_file_store.cc
  122. key_file_store.h
  123. key_file_store_unittest.cc
  124. key_value_store.cc
  125. key_value_store.h
  126. key_value_store_unittest.cc
  127. LICENSE
  128. Makefile
  129. manager.cc
  130. manager.h
  131. manager_dbus_adaptor.cc
  132. manager_dbus_adaptor.h
  133. manager_unittest.cc
  134. metrics.cc
  135. metrics.h
  136. metrics_unittest.cc
  137. mm1_modem_modem3gpp_proxy.cc
  138. mm1_modem_modem3gpp_proxy.h
  139. mm1_modem_modem3gpp_proxy_interface.h
  140. mm1_modem_modemcdma_proxy.cc
  141. mm1_modem_modemcdma_proxy.h
  142. mm1_modem_modemcdma_proxy_interface.h
  143. mm1_modem_proxy.cc
  144. mm1_modem_proxy.h
  145. mm1_modem_proxy_interface.h
  146. mm1_modem_simple_proxy.cc
  147. mm1_modem_simple_proxy.h
  148. mm1_modem_simple_proxy_interface.h
  149. mm1_sim_proxy.cc
  150. mm1_sim_proxy.h
  151. mm1_sim_proxy_interface.h
  152. mock_adaptors.cc
  153. mock_adaptors.h
  154. mock_ares.cc
  155. mock_ares.h
  156. mock_async_connection.cc
  157. mock_async_connection.h
  158. mock_cellular.cc
  159. mock_cellular.h
  160. mock_connection.cc
  161. mock_connection.h
  162. mock_control.cc
  163. mock_control.h
  164. mock_dbus_objectmanager_proxy.cc
  165. mock_dbus_objectmanager_proxy.h
  166. mock_dbus_properties_proxy.cc
  167. mock_dbus_properties_proxy.h
  168. mock_device.cc
  169. mock_device.h
  170. mock_device_info.cc
  171. mock_device_info.h
  172. mock_dhcp_config.cc
  173. mock_dhcp_config.h
  174. mock_dhcp_provider.cc
  175. mock_dhcp_provider.h
  176. mock_dhcp_proxy.cc
  177. mock_dhcp_proxy.h
  178. mock_dns_client.cc
  179. mock_dns_client.h
  180. mock_event_dispatcher.cc
  181. mock_event_dispatcher.h
  182. mock_glib.cc
  183. mock_glib.h
  184. mock_http_request.cc
  185. mock_http_request.h
  186. mock_ipconfig.cc
  187. mock_ipconfig.h
  188. mock_manager.cc
  189. mock_manager.h
  190. mock_metrics.cc
  191. mock_metrics.h
  192. mock_modem.cc
  193. mock_modem.h
  194. mock_modem_cdma_proxy.cc
  195. mock_modem_cdma_proxy.h
  196. mock_modem_gsm_card_proxy.cc
  197. mock_modem_gsm_card_proxy.h
  198. mock_modem_gsm_network_proxy.cc
  199. mock_modem_gsm_network_proxy.h
  200. mock_modem_manager_proxy.cc
  201. mock_modem_manager_proxy.h
  202. mock_modem_proxy.cc
  203. mock_modem_proxy.h
  204. mock_modem_simple_proxy.cc
  205. mock_modem_simple_proxy.h
  206. mock_nss.cc
  207. mock_nss.h
  208. mock_openvpn_driver.cc
  209. mock_openvpn_driver.h
  210. mock_openvpn_management_server.cc
  211. mock_openvpn_management_server.h
  212. mock_portal_detector.cc
  213. mock_portal_detector.h
  214. mock_power_manager.cc
  215. mock_power_manager.h
  216. mock_power_manager_proxy.cc
  217. mock_power_manager_proxy.h
  218. mock_profile.cc
  219. mock_profile.h
  220. mock_property_store.cc
  221. mock_property_store.h
  222. mock_proxy_factory.cc
  223. mock_proxy_factory.h
  224. mock_resolver.cc
  225. mock_resolver.h
  226. mock_routing_table.cc
  227. mock_routing_table.h
  228. mock_rtnl_handler.cc
  229. mock_rtnl_handler.h
  230. mock_service.cc
  231. mock_service.h
  232. mock_sockets.cc
  233. mock_sockets.h
  234. mock_store.cc
  235. mock_store.h
  236. mock_supplicant_bss_proxy.cc
  237. mock_supplicant_bss_proxy.h
  238. mock_supplicant_interface_proxy.cc
  239. mock_supplicant_interface_proxy.h
  240. mock_supplicant_process_proxy.cc
  241. mock_supplicant_process_proxy.h
  242. mock_time.cc
  243. mock_time.h
  244. mock_vpn.cc
  245. mock_vpn.h
  246. mock_vpn_driver.cc
  247. mock_vpn_driver.h
  248. mock_vpn_service.cc
  249. mock_vpn_service.h
  250. mock_wifi.cc
  251. mock_wifi.h
  252. mock_wifi_service.cc
  253. mock_wifi_service.h
  254. modem.cc
  255. modem.h
  256. modem_1.cc
  257. modem_cdma_proxy.cc
  258. modem_cdma_proxy.h
  259. modem_cdma_proxy_interface.h
  260. modem_classic.cc
  261. modem_gsm_card_proxy.cc
  262. modem_gsm_card_proxy.h
  263. modem_gsm_card_proxy_interface.h
  264. modem_gsm_network_proxy.cc
  265. modem_gsm_network_proxy.h
  266. modem_gsm_network_proxy_interface.h
  267. modem_info.cc
  268. modem_info.h
  269. modem_info_unittest.cc
  270. modem_manager.cc
  271. modem_manager.h
  272. modem_manager_proxy.cc
  273. modem_manager_proxy.h
  274. modem_manager_proxy_interface.h
  275. modem_manager_unittest.cc
  276. modem_proxy.cc
  277. modem_proxy.h
  278. modem_proxy_interface.h
  279. modem_simple_proxy.cc
  280. modem_simple_proxy.h
  281. modem_simple_proxy_interface.h
  282. modem_unittest.cc
  283. nice_mock_control.cc
  284. nice_mock_control.h
  285. nss.cc
  286. nss.h
  287. nss_unittest.cc
  288. openvpn_driver.cc
  289. openvpn_driver.h
  290. openvpn_driver_unittest.cc
  291. openvpn_management_server.cc
  292. openvpn_management_server.h
  293. openvpn_management_server_unittest.cc
  294. portal_detector.cc
  295. portal_detector.h
  296. portal_detector_unittest.cc
  297. power_manager.cc
  298. power_manager.h
  299. power_manager_proxy.cc
  300. power_manager_proxy.h
  301. power_manager_proxy_interface.h
  302. power_manager_unittest.cc
  303. profile.cc
  304. profile.h
  305. profile_dbus_adaptor.cc
  306. profile_dbus_adaptor.h
  307. profile_dbus_property_exporter.cc
  308. profile_dbus_property_exporter.h
  309. profile_dbus_property_exporter_unittest.cc
  310. profile_unittest.cc
  311. property_accessor.h
  312. property_accessor_unittest.cc
  313. property_iterator.h
  314. property_store.cc
  315. property_store.h
  316. property_store_unittest.cc
  317. property_store_unittest.h
  318. provider_db_unittest.bfd
  319. proxy_factory.cc
  320. proxy_factory.h
  321. refptr_types.h
  322. resolver.cc
  323. resolver.h
  324. resolver_unittest.cc
  325. routing_table.cc
  326. routing_table.h
  327. routing_table_entry.h
  328. routing_table_unittest.cc
  329. rpc_task.cc
  330. rpc_task.h
  331. rpc_task_dbus_adaptor.cc
  332. rpc_task_dbus_adaptor.h
  333. rpc_task_unittest.cc
  334. rtnl_handler.cc
  335. rtnl_handler.h
  336. rtnl_handler_unittest.cc
  337. rtnl_listener.cc
  338. rtnl_listener.h
  339. rtnl_listener_unittest.cc
  340. rtnl_message.cc
  341. rtnl_message.h
  342. rtnl_message_unittest.cc
  343. service.cc
  344. service.h
  345. service_dbus_adaptor.cc
  346. service_dbus_adaptor.h
  347. service_sorter.h
  348. service_under_test.cc
  349. service_under_test.h
  350. service_unittest.cc
  351. shill.conf
  352. shill_ares.cc
  353. shill_ares.h
  354. shill_config.cc
  355. shill_config.h
  356. shill_daemon.cc
  357. shill_daemon.h
  358. shill_main.cc
  359. shill_test_config.cc
  360. shill_test_config.h
  361. shill_time.cc
  362. shill_time.h
  363. shill_unittest.cc
  364. sockets.cc
  365. sockets.h
  366. store_interface.h
  367. supplicant_bss_proxy.cc
  368. supplicant_bss_proxy.h
  369. supplicant_bss_proxy_interface.h
  370. supplicant_interface_proxy.cc
  371. supplicant_interface_proxy.h
  372. supplicant_interface_proxy_interface.h
  373. supplicant_process_proxy.cc
  374. supplicant_process_proxy.h
  375. supplicant_process_proxy_interface.h
  376. technology.cc
  377. technology.h
  378. technology_unittest.cc
  379. TESTING
  380. testrunner.cc
  381. vpn.cc
  382. vpn.h
  383. vpn_driver.h
  384. vpn_provider.cc
  385. vpn_provider.h
  386. vpn_provider_unittest.cc
  387. vpn_service.cc
  388. vpn_service.h
  389. vpn_service_unittest.cc
  390. vpn_unittest.cc
  391. wifi.cc
  392. wifi.h
  393. wifi_endpoint.cc
  394. wifi_endpoint.h
  395. wifi_endpoint_unittest.cc
  396. wifi_service.cc
  397. wifi_service.h
  398. wifi_service_unittest.cc
  399. wifi_unittest.cc
  400. wpa_supplicant.cc
  401. wpa_supplicant.h