shill: Purge service/wifi_service state on Unload

Clear relevant state from Service and WiFiService when manager
notifies the service that it is no longer backed by a Profile.

BUG=chromium-os:22947
TEST=New unit tests

Change-Id: I048d2692fade5b883332e727be39f86caf4ed7f0
Reviewed-on: https://gerrit.chromium.org/gerrit/13880
Commit-Ready: Paul Stewart <pstew@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
6 files changed
tree: 8eae564238bee20c122723047ff1e280465e399f
  1. dbus_bindings/
  2. accessor_interface.h
  3. adaptor_interfaces.h
  4. async_connection.cc
  5. async_connection.h
  6. async_connection_unittest.cc
  7. byte_string.cc
  8. byte_string.h
  9. byte_string_unittest.cc
  10. cellular.cc
  11. cellular.h
  12. cellular_capability.cc
  13. cellular_capability.h
  14. cellular_capability_cdma.cc
  15. cellular_capability_cdma.h
  16. cellular_capability_cdma_unittest.cc
  17. cellular_capability_gsm.cc
  18. cellular_capability_gsm.h
  19. cellular_capability_gsm_unittest.cc
  20. cellular_service.cc
  21. cellular_service.h
  22. cellular_service_unittest.cc
  23. cellular_unittest.cc
  24. connection.cc
  25. connection.h
  26. connection_unittest.cc
  27. control_interface.h
  28. crypto_des_cbc.cc
  29. crypto_des_cbc.h
  30. crypto_des_cbc_unittest.cc
  31. crypto_interface.h
  32. crypto_provider.cc
  33. crypto_provider.h
  34. crypto_provider_unittest.cc
  35. crypto_rot47.cc
  36. crypto_rot47.h
  37. crypto_rot47_unittest.cc
  38. dbus_adaptor.cc
  39. dbus_adaptor.h
  40. dbus_adaptor_unittest.cc
  41. dbus_control.cc
  42. dbus_control.h
  43. dbus_properties.cc
  44. dbus_properties.h
  45. dbus_properties_proxy.cc
  46. dbus_properties_proxy.h
  47. dbus_properties_proxy_interface.h
  48. dbus_properties_unittest.cc
  49. default_profile.cc
  50. default_profile.h
  51. default_profile_unittest.cc
  52. device.cc
  53. device.h
  54. device_dbus_adaptor.cc
  55. device_dbus_adaptor.h
  56. device_info.cc
  57. device_info.h
  58. device_info_unittest.cc
  59. device_stub.h
  60. device_unittest.cc
  61. dhcp_config.cc
  62. dhcp_config.h
  63. dhcp_config_unittest.cc
  64. dhcp_provider.cc
  65. dhcp_provider.h
  66. dhcp_provider_unittest.cc
  67. dhcp_proxy_interface.h
  68. dhcpcd_proxy.cc
  69. dhcpcd_proxy.h
  70. dns_client.cc
  71. dns_client.h
  72. dns_client_unittest.cc
  73. endpoint.cc
  74. endpoint.h
  75. ephemeral_profile.cc
  76. ephemeral_profile.h
  77. error.cc
  78. error.h
  79. error_unittest.cc
  80. ethernet.cc
  81. ethernet.h
  82. ethernet_service.cc
  83. ethernet_service.h
  84. event_dispatcher.cc
  85. event_dispatcher.h
  86. glib.cc
  87. glib.h
  88. glib_io_input_handler.cc
  89. glib_io_input_handler.h
  90. glib_io_ready_handler.cc
  91. glib_io_ready_handler.h
  92. HACKING
  93. http_proxy.cc
  94. http_proxy.h
  95. http_proxy_unittest.cc
  96. ieee80211.h
  97. io_handler.h
  98. ip_address.cc
  99. ip_address.h
  100. ip_address_unittest.cc
  101. ipconfig.cc
  102. ipconfig.h
  103. ipconfig_dbus_adaptor.cc
  104. ipconfig_dbus_adaptor.h
  105. ipconfig_unittest.cc
  106. key_file_store.cc
  107. key_file_store.h
  108. key_file_store_unittest.cc
  109. key_value_store.cc
  110. key_value_store.h
  111. LICENSE
  112. Makefile
  113. manager.cc
  114. manager.h
  115. manager_dbus_adaptor.cc
  116. manager_dbus_adaptor.h
  117. manager_unittest.cc
  118. metrics.cc
  119. metrics.h
  120. metrics_unittest.cc
  121. mock_adaptors.cc
  122. mock_adaptors.h
  123. mock_ares.cc
  124. mock_ares.h
  125. mock_async_connection.cc
  126. mock_async_connection.h
  127. mock_connection.cc
  128. mock_connection.h
  129. mock_control.cc
  130. mock_control.h
  131. mock_dbus_properties_proxy.cc
  132. mock_dbus_properties_proxy.h
  133. mock_device.cc
  134. mock_device.h
  135. mock_device_info.cc
  136. mock_device_info.h
  137. mock_dhcp_config.cc
  138. mock_dhcp_config.h
  139. mock_dhcp_provider.cc
  140. mock_dhcp_provider.h
  141. mock_dhcp_proxy.cc
  142. mock_dhcp_proxy.h
  143. mock_dns_client.cc
  144. mock_dns_client.h
  145. mock_event_dispatcher.cc
  146. mock_event_dispatcher.h
  147. mock_glib.cc
  148. mock_glib.h
  149. mock_ipconfig.cc
  150. mock_ipconfig.h
  151. mock_manager.cc
  152. mock_manager.h
  153. mock_modem_cdma_proxy.cc
  154. mock_modem_cdma_proxy.h
  155. mock_modem_gsm_card_proxy.cc
  156. mock_modem_gsm_card_proxy.h
  157. mock_modem_gsm_network_proxy.cc
  158. mock_modem_gsm_network_proxy.h
  159. mock_modem_manager_proxy.cc
  160. mock_modem_manager_proxy.h
  161. mock_modem_proxy.cc
  162. mock_modem_proxy.h
  163. mock_modem_simple_proxy.cc
  164. mock_modem_simple_proxy.h
  165. mock_power_manager_proxy.cc
  166. mock_power_manager_proxy.h
  167. mock_profile.cc
  168. mock_profile.h
  169. mock_property_store.cc
  170. mock_property_store.h
  171. mock_resolver.cc
  172. mock_resolver.h
  173. mock_routing_table.cc
  174. mock_routing_table.h
  175. mock_rtnl_handler.cc
  176. mock_rtnl_handler.h
  177. mock_service.cc
  178. mock_service.h
  179. mock_sockets.cc
  180. mock_sockets.h
  181. mock_store.cc
  182. mock_store.h
  183. mock_supplicant_interface_proxy.cc
  184. mock_supplicant_interface_proxy.h
  185. mock_supplicant_process_proxy.cc
  186. mock_supplicant_process_proxy.h
  187. mock_time.cc
  188. mock_time.h
  189. mock_wifi.cc
  190. mock_wifi.h
  191. mock_wifi_service.cc
  192. mock_wifi_service.h
  193. modem.cc
  194. modem.h
  195. modem_cdma_proxy.cc
  196. modem_cdma_proxy.h
  197. modem_cdma_proxy_interface.h
  198. modem_gsm_card_proxy.cc
  199. modem_gsm_card_proxy.h
  200. modem_gsm_card_proxy_interface.h
  201. modem_gsm_network_proxy.cc
  202. modem_gsm_network_proxy.h
  203. modem_gsm_network_proxy_interface.h
  204. modem_info.cc
  205. modem_info.h
  206. modem_info_unittest.cc
  207. modem_manager.cc
  208. modem_manager.h
  209. modem_manager_proxy.cc
  210. modem_manager_proxy.h
  211. modem_manager_proxy_interface.h
  212. modem_manager_unittest.cc
  213. modem_proxy.cc
  214. modem_proxy.h
  215. modem_proxy_interface.h
  216. modem_simple_proxy.cc
  217. modem_simple_proxy.h
  218. modem_simple_proxy_interface.h
  219. modem_unittest.cc
  220. nice_mock_control.cc
  221. nice_mock_control.h
  222. power_manager_proxy.cc
  223. power_manager_proxy.h
  224. power_manager_proxy_interface.h
  225. profile.cc
  226. profile.h
  227. profile_dbus_adaptor.cc
  228. profile_dbus_adaptor.h
  229. profile_unittest.cc
  230. property_accessor.h
  231. property_accessor_unittest.cc
  232. property_iterator.h
  233. property_store.cc
  234. property_store.h
  235. property_store_unittest.cc
  236. property_store_unittest.h
  237. provider_db_unittest.bfd
  238. proxy_factory.cc
  239. proxy_factory.h
  240. refptr_types.h
  241. resolver.cc
  242. resolver.h
  243. resolver_unittest.cc
  244. routing_table.cc
  245. routing_table.h
  246. routing_table_entry.h
  247. routing_table_unittest.cc
  248. rtnl_handler.cc
  249. rtnl_handler.h
  250. rtnl_handler_unittest.cc
  251. rtnl_listener.cc
  252. rtnl_listener.h
  253. rtnl_listener_unittest.cc
  254. rtnl_message.cc
  255. rtnl_message.h
  256. rtnl_message_unittest.cc
  257. service.cc
  258. service.h
  259. service_dbus_adaptor.cc
  260. service_dbus_adaptor.h
  261. service_sorter.h
  262. service_under_test.cc
  263. service_under_test.h
  264. service_unittest.cc
  265. shill.conf
  266. shill_ares.cc
  267. shill_ares.h
  268. shill_config.cc
  269. shill_config.h
  270. shill_daemon.cc
  271. shill_daemon.h
  272. shill_main.cc
  273. shill_test_config.cc
  274. shill_test_config.h
  275. shill_time.cc
  276. shill_time.h
  277. shill_unittest.cc
  278. sockets.cc
  279. sockets.h
  280. store_interface.h
  281. supplicant_interface_proxy.cc
  282. supplicant_interface_proxy.h
  283. supplicant_interface_proxy_interface.h
  284. supplicant_process_proxy.cc
  285. supplicant_process_proxy.h
  286. supplicant_process_proxy_interface.h
  287. technology.cc
  288. technology.h
  289. TESTING
  290. testrunner.cc
  291. wifi.cc
  292. wifi.h
  293. wifi_endpoint.cc
  294. wifi_endpoint.h
  295. wifi_endpoint_unittest.cc
  296. wifi_service.cc
  297. wifi_service.h
  298. wifi_service_unittest.cc
  299. wifi_unittest.cc
  300. wpa_supplicant.cc
  301. wpa_supplicant.h