shill: Add a mockable layer for socket.h.

Mock the layer in device_info_unittest.cc. Some cleanup.

BUG=chromium-os:17394
TEST=unit tests

Change-Id: I2ddcb2fd0e01418a463596bf4e3a804b3e3023b2
Reviewed-on: http://gerrit.chromium.org/gerrit/3807
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
15 files changed
tree: a557eff232ad068b342177ca32bb8a326d2565f5
  1. accessor_interface.h
  2. adaptor_interfaces.h
  3. cellular.cc
  4. cellular.h
  5. cellular_service.cc
  6. cellular_service.h
  7. cellular_unittest.cc
  8. control_interface.h
  9. crypto_des_cbc.cc
  10. crypto_des_cbc.h
  11. crypto_des_cbc_unittest.cc
  12. crypto_interface.h
  13. crypto_provider.cc
  14. crypto_provider.h
  15. crypto_provider_unittest.cc
  16. crypto_rot47.cc
  17. crypto_rot47.h
  18. crypto_rot47_unittest.cc
  19. dbus_adaptor.cc
  20. dbus_adaptor.h
  21. dbus_adaptor_unittest.cc
  22. dbus_control.cc
  23. dbus_control.h
  24. default_profile.cc
  25. default_profile.h
  26. default_profile_unittest.cc
  27. device.cc
  28. device.h
  29. device_dbus_adaptor.cc
  30. device_dbus_adaptor.h
  31. device_info.cc
  32. device_info.h
  33. device_info_unittest.cc
  34. device_stub.h
  35. device_unittest.cc
  36. dhcp_config.cc
  37. dhcp_config.h
  38. dhcp_config_unittest.cc
  39. dhcp_provider.cc
  40. dhcp_provider.h
  41. dhcp_provider_unittest.cc
  42. dhcp_proxy_interface.h
  43. dhcpcd.xml
  44. dhcpcd_proxy.cc
  45. dhcpcd_proxy.h
  46. endpoint.cc
  47. endpoint.h
  48. entry.h
  49. ephemeral_profile.cc
  50. ephemeral_profile.h
  51. error.cc
  52. error.h
  53. ethernet.cc
  54. ethernet.h
  55. ethernet_service.cc
  56. ethernet_service.h
  57. flimflam-device.xml
  58. flimflam-ipconfig.xml
  59. flimflam-manager.xml
  60. flimflam-profile.xml
  61. flimflam-service.xml
  62. glib.cc
  63. glib.h
  64. glib_io_handler.cc
  65. glib_io_handler.h
  66. inherit-review-settings-ok
  67. io_handler.h
  68. ipconfig.cc
  69. ipconfig.h
  70. ipconfig_dbus_adaptor.cc
  71. ipconfig_dbus_adaptor.h
  72. ipconfig_unittest.cc
  73. key_file_store.cc
  74. key_file_store.h
  75. key_file_store_unittest.cc
  76. Makefile
  77. manager.cc
  78. manager.h
  79. manager_dbus_adaptor.cc
  80. manager_dbus_adaptor.h
  81. manager_unittest.cc
  82. mock_adaptors.cc
  83. mock_adaptors.h
  84. mock_control.cc
  85. mock_control.h
  86. mock_device.cc
  87. mock_device.h
  88. mock_dhcp_proxy.h
  89. mock_glib.h
  90. mock_profile.cc
  91. mock_profile.h
  92. mock_property_store.h
  93. mock_service.cc
  94. mock_service.h
  95. mock_sockets.h
  96. profile.cc
  97. profile.h
  98. profile_dbus_adaptor.cc
  99. profile_dbus_adaptor.h
  100. profile_unittest.cc
  101. property_accessor.h
  102. property_accessor_unittest.cc
  103. property_iterator.h
  104. property_store.cc
  105. property_store.h
  106. property_store_unittest.cc
  107. property_store_unittest.h
  108. refptr_types.h
  109. rtnl_handler.cc
  110. rtnl_handler.h
  111. rtnl_listener.cc
  112. rtnl_listener.h
  113. service.cc
  114. service.h
  115. service_dbus_adaptor.cc
  116. service_dbus_adaptor.h
  117. service_unittest.cc
  118. shill.conf
  119. shill_config.cc
  120. shill_config.h
  121. shill_daemon.cc
  122. shill_daemon.h
  123. shill_event.cc
  124. shill_event.h
  125. shill_main.cc
  126. shill_unittest.cc
  127. sockets.cc
  128. sockets.h
  129. store_interface.h
  130. supplicant-bss.xml
  131. supplicant-interface.xml
  132. supplicant-network.xml
  133. supplicant-process.xml
  134. testrunner.cc
  135. WATCHLISTS
  136. wifi.cc
  137. wifi.h
  138. wifi_endpoint.cc
  139. wifi_endpoint.h
  140. wifi_service.cc
  141. wifi_service.h
  142. wifi_unittest.cc