shill: fix DHCPv6Config typo and unittest

Fix a typo (missing semicolon) that was introduced by CL:288288.

Also update the unittest to use a mocked DHCPProvider instead of a
real one.

BUG=None
TEST=USE="asan clang dhcpv6" FEATURES=test emerge-$BOARD shill

Change-Id: I96d9f91906c66040d2cd317ae5d9d98d2e2c640c
Reviewed-on: https://chromium-review.googlesource.com/289952
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Zeping Qiu <zqiu@chromium.org>
Tested-by: Zeping Qiu <zqiu@chromium.org>
2 files changed
tree: 13ce2b4f9233bc25cc219d242557ded869175494
  1. bin/
  2. cellular/
  3. dbus/
  4. dbus_bindings/
  5. dhcp/
  6. doc/
  7. ethernet/
  8. init/
  9. mobile_operator_db/
  10. net/
  11. pppoe/
  12. setup_wifi/
  13. shims/
  14. supplicant/
  15. test-scripts/
  16. udev/
  17. upstart/
  18. vpn/
  19. wifi/
  20. wimax/
  21. .gitignore
  22. accessor_interface.h
  23. active_link_monitor.cc
  24. active_link_monitor.h
  25. active_link_monitor_unittest.cc
  26. adaptor_interfaces.h
  27. arp_client.cc
  28. arp_client.h
  29. arp_client_test_helper.cc
  30. arp_client_test_helper.h
  31. arp_client_unittest.cc
  32. arp_packet.cc
  33. arp_packet.h
  34. arp_packet_unittest.cc
  35. async_connection.cc
  36. async_connection.h
  37. async_connection_unittest.cc
  38. callbacks.h
  39. certificate_file.cc
  40. certificate_file.h
  41. certificate_file_unittest.cc
  42. chromeos_daemon.cc
  43. chromeos_daemon.h
  44. chromeos_daemon_unittest.cc
  45. connection.cc
  46. connection.h
  47. connection_health_checker.cc
  48. connection_health_checker.h
  49. connection_health_checker_unittest.cc
  50. connection_info.cc
  51. connection_info.h
  52. connection_info_reader.cc
  53. connection_info_reader.h
  54. connection_info_reader_unittest.cc
  55. connection_info_unittest.cc
  56. connection_tester.cc
  57. connection_tester.h
  58. connection_tester_unittest.cc
  59. connection_unittest.cc
  60. connectivity_trial.cc
  61. connectivity_trial.h
  62. connectivity_trial_unittest.cc
  63. control_interface.h
  64. crypto_des_cbc.cc
  65. crypto_des_cbc.h
  66. crypto_des_cbc_unittest.cc
  67. crypto_interface.h
  68. crypto_provider.cc
  69. crypto_provider.h
  70. crypto_provider_unittest.cc
  71. crypto_rot47.cc
  72. crypto_rot47.h
  73. crypto_rot47_unittest.cc
  74. crypto_util_proxy.cc
  75. crypto_util_proxy.h
  76. crypto_util_proxy_unittest.cc
  77. dbus_adaptor.cc
  78. dbus_adaptor.h
  79. dbus_adaptor_unittest.cc
  80. dbus_async_call_helper.h
  81. dbus_control.cc
  82. dbus_control.h
  83. dbus_manager.cc
  84. dbus_manager.h
  85. dbus_manager_unittest.cc
  86. dbus_name_watcher.cc
  87. dbus_name_watcher.h
  88. dbus_name_watcher_unittest.cc
  89. dbus_properties.cc
  90. dbus_properties.h
  91. dbus_properties_proxy.cc
  92. dbus_properties_proxy.h
  93. dbus_properties_proxy_interface.h
  94. dbus_properties_unittest.cc
  95. dbus_property_matchers.h
  96. dbus_service_proxy.cc
  97. dbus_service_proxy.h
  98. dbus_service_proxy_interface.h
  99. dbus_variant_gmock_printer.cc
  100. dbus_variant_gmock_printer.h
  101. default_profile.cc
  102. default_profile.h
  103. default_profile_unittest.cc
  104. device.cc
  105. device.h
  106. device_claimer.cc
  107. device_claimer.h
  108. device_claimer_unittest.cc
  109. device_dbus_adaptor.cc
  110. device_dbus_adaptor.h
  111. device_info.cc
  112. device_info.h
  113. device_info_unittest.cc
  114. device_stub.h
  115. device_unittest.cc
  116. diagnostics_reporter.cc
  117. diagnostics_reporter.h
  118. diagnostics_reporter_unittest.cc
  119. dns_client.cc
  120. dns_client.h
  121. dns_client_factory.cc
  122. dns_client_factory.h
  123. dns_client_unittest.cc
  124. dns_server_tester.cc
  125. dns_server_tester.h
  126. dns_server_tester_unittest.cc
  127. eap_credentials.cc
  128. eap_credentials.h
  129. eap_credentials_unittest.cc
  130. eap_listener.cc
  131. eap_listener.h
  132. eap_listener_unittest.cc
  133. eap_protocol.h
  134. ephemeral_profile.cc
  135. ephemeral_profile.h
  136. error.cc
  137. error.h
  138. error_unittest.cc
  139. event_dispatcher.cc
  140. event_dispatcher.h
  141. external_task.cc
  142. external_task.h
  143. external_task_unittest.cc
  144. file_io.cc
  145. file_io.h
  146. file_reader.cc
  147. file_reader.h
  148. file_reader_unittest.cc
  149. geolocation_info.cc
  150. geolocation_info.h
  151. glib.cc
  152. glib.h
  153. glib_io_handler_factory.cc
  154. glib_io_handler_factory.h
  155. glib_io_input_handler.cc
  156. glib_io_input_handler.h
  157. glib_io_ready_handler.cc
  158. glib_io_ready_handler.h
  159. HACKING
  160. hook_table.cc
  161. hook_table.h
  162. hook_table_unittest.cc
  163. http_proxy.cc
  164. http_proxy.h
  165. http_proxy_unittest.cc
  166. http_request.cc
  167. http_request.h
  168. http_request_unittest.cc
  169. http_url.cc
  170. http_url.h
  171. http_url_unittest.cc
  172. icmp.cc
  173. icmp.h
  174. icmp_session.cc
  175. icmp_session.h
  176. icmp_session_factory.cc
  177. icmp_session_factory.h
  178. icmp_session_unittest.cc
  179. icmp_unittest.cc
  180. ip_address_store.cc
  181. ip_address_store.h
  182. ip_address_store_unittest.cc
  183. ipconfig.cc
  184. ipconfig.h
  185. ipconfig_dbus_adaptor.cc
  186. ipconfig_dbus_adaptor.h
  187. ipconfig_unittest.cc
  188. key_file_store.cc
  189. key_file_store.h
  190. key_file_store_unittest.cc
  191. key_value_store.cc
  192. key_value_store.h
  193. key_value_store_unittest.cc
  194. link_monitor.cc
  195. link_monitor.h
  196. link_monitor_unittest.cc
  197. logging.cc
  198. logging.h
  199. manager.cc
  200. manager.h
  201. manager_dbus_adaptor.cc
  202. manager_dbus_adaptor.h
  203. manager_unittest.cc
  204. metrics.cc
  205. metrics.h
  206. metrics_unittest.cc
  207. mock_active_link_monitor.cc
  208. mock_active_link_monitor.h
  209. mock_adaptors.cc
  210. mock_adaptors.h
  211. mock_ares.cc
  212. mock_ares.h
  213. mock_arp_client.cc
  214. mock_arp_client.h
  215. mock_async_connection.cc
  216. mock_async_connection.h
  217. mock_certificate_file.cc
  218. mock_certificate_file.h
  219. mock_connection.cc
  220. mock_connection.h
  221. mock_connection_health_checker.cc
  222. mock_connection_health_checker.h
  223. mock_connection_info_reader.cc
  224. mock_connection_info_reader.h
  225. mock_connectivity_trial.cc
  226. mock_connectivity_trial.h
  227. mock_control.cc
  228. mock_control.h
  229. mock_crypto_util_proxy.cc
  230. mock_crypto_util_proxy.h
  231. mock_dbus_manager.cc
  232. mock_dbus_manager.h
  233. mock_dbus_properties_proxy.cc
  234. mock_dbus_properties_proxy.h
  235. mock_dbus_service_proxy.cc
  236. mock_dbus_service_proxy.h
  237. mock_device.cc
  238. mock_device.h
  239. mock_device_claimer.cc
  240. mock_device_claimer.h
  241. mock_device_info.cc
  242. mock_device_info.h
  243. mock_diagnostics_reporter.cc
  244. mock_diagnostics_reporter.h
  245. mock_dns_client.cc
  246. mock_dns_client.h
  247. mock_dns_client_factory.cc
  248. mock_dns_client_factory.h
  249. mock_dns_server_tester.cc
  250. mock_dns_server_tester.h
  251. mock_eap_credentials.cc
  252. mock_eap_credentials.h
  253. mock_eap_listener.cc
  254. mock_eap_listener.h
  255. mock_event_dispatcher.cc
  256. mock_event_dispatcher.h
  257. mock_external_task.cc
  258. mock_external_task.h
  259. mock_file_io.h
  260. mock_glib.cc
  261. mock_glib.h
  262. mock_http_request.cc
  263. mock_http_request.h
  264. mock_icmp.cc
  265. mock_icmp.h
  266. mock_icmp_session.cc
  267. mock_icmp_session.h
  268. mock_icmp_session_factory.cc
  269. mock_icmp_session_factory.h
  270. mock_ip_address_store.cc
  271. mock_ip_address_store.h
  272. mock_ipconfig.cc
  273. mock_ipconfig.h
  274. mock_link_monitor.cc
  275. mock_link_monitor.h
  276. mock_log.cc
  277. mock_log.h
  278. mock_log_unittest.cc
  279. mock_manager.cc
  280. mock_manager.h
  281. mock_metrics.cc
  282. mock_metrics.h
  283. mock_passive_link_monitor.cc
  284. mock_passive_link_monitor.h
  285. mock_pending_activation_store.cc
  286. mock_pending_activation_store.h
  287. mock_permission_broker_proxy.h
  288. mock_portal_detector.cc
  289. mock_portal_detector.h
  290. mock_portal_detector_factory.cc
  291. mock_portal_detector_factory.h
  292. mock_power_manager.cc
  293. mock_power_manager.h
  294. mock_power_manager_proxy.cc
  295. mock_power_manager_proxy.h
  296. mock_ppp_device.cc
  297. mock_ppp_device.h
  298. mock_ppp_device_factory.cc
  299. mock_ppp_device_factory.h
  300. mock_process_killer.cc
  301. mock_process_killer.h
  302. mock_profile.cc
  303. mock_profile.h
  304. mock_property_store.cc
  305. mock_property_store.h
  306. mock_proxy_factory.cc
  307. mock_proxy_factory.h
  308. mock_resolver.cc
  309. mock_resolver.h
  310. mock_routing_table.cc
  311. mock_routing_table.h
  312. mock_service.cc
  313. mock_service.h
  314. mock_socket_info_reader.cc
  315. mock_socket_info_reader.h
  316. mock_store.cc
  317. mock_store.h
  318. mock_traffic_monitor.cc
  319. mock_traffic_monitor.h
  320. mock_virtual_device.cc
  321. mock_virtual_device.h
  322. NETLINK_MESSAGES.txt
  323. nice_mock_control.cc
  324. nice_mock_control.h
  325. OWNERS
  326. passive_link_monitor.cc
  327. passive_link_monitor.h
  328. passive_link_monitor_unittest.cc
  329. pending_activation_store.cc
  330. pending_activation_store.h
  331. pending_activation_store_unittest.cc
  332. permission_broker_proxy.cc
  333. permission_broker_proxy.h
  334. portal_detector.cc
  335. portal_detector.h
  336. portal_detector_factory.cc
  337. portal_detector_factory.h
  338. portal_detector_unittest.cc
  339. power_manager.cc
  340. power_manager.h
  341. power_manager_proxy.cc
  342. power_manager_proxy.h
  343. power_manager_proxy_interface.h
  344. power_manager_unittest.cc
  345. ppp_daemon.cc
  346. ppp_daemon.h
  347. ppp_daemon_unittest.cc
  348. ppp_device.cc
  349. ppp_device.h
  350. ppp_device_factory.cc
  351. ppp_device_factory.h
  352. ppp_device_unittest.cc
  353. process_killer.cc
  354. process_killer.h
  355. process_killer_unittest.cc
  356. profile.cc
  357. profile.h
  358. profile_dbus_adaptor.cc
  359. profile_dbus_adaptor.h
  360. profile_unittest.cc
  361. property_accessor.h
  362. property_accessor_unittest.cc
  363. property_iterator.h
  364. property_observer.h
  365. property_observer_interface.h
  366. property_observer_unittest.cc
  367. property_store.cc
  368. property_store.h
  369. property_store_unittest.cc
  370. property_store_unittest.h
  371. protobuf_lite_streams.cc
  372. protobuf_lite_streams.h
  373. provider_db_unittest.bfd
  374. provider_interface.h
  375. proxy_factory.cc
  376. proxy_factory.h
  377. refptr_types.h
  378. resolver.cc
  379. resolver.h
  380. resolver_unittest.cc
  381. result_aggregator.cc
  382. result_aggregator.h
  383. result_aggregator_unittest.cc
  384. routing_table.cc
  385. routing_table.h
  386. routing_table_entry.h
  387. routing_table_unittest.cc
  388. rpc_task.cc
  389. rpc_task.h
  390. rpc_task_dbus_adaptor.cc
  391. rpc_task_dbus_adaptor.h
  392. rpc_task_unittest.cc
  393. scope_logger.cc
  394. scope_logger.h
  395. scope_logger_unittest.cc
  396. scoped_umask.cc
  397. scoped_umask.h
  398. service.cc
  399. service.h
  400. service_dbus_adaptor.cc
  401. service_dbus_adaptor.h
  402. service_property_change_notifier.cc
  403. service_property_change_notifier.h
  404. service_property_change_test.cc
  405. service_property_change_test.h
  406. service_sorter.h
  407. service_under_test.cc
  408. service_under_test.h
  409. service_unittest.cc
  410. shared_dbus_connection.cc
  411. shared_dbus_connection.h
  412. shill.gyp
  413. shill.gypi
  414. shill_ares.cc
  415. shill_ares.h
  416. shill_config.cc
  417. shill_config.h
  418. shill_daemon.cc
  419. shill_daemon.h
  420. shill_export.h
  421. shill_main.cc
  422. shill_test_config.cc
  423. shill_test_config.h
  424. shill_unittest.cc
  425. socket_info.cc
  426. socket_info.h
  427. socket_info_reader.cc
  428. socket_info_reader.h
  429. socket_info_reader_unittest.cc
  430. socket_info_unittest.cc
  431. static_ip_parameters.cc
  432. static_ip_parameters.h
  433. static_ip_parameters_unittest.cc
  434. store_interface.h
  435. stub_storage.h
  436. technology.cc
  437. technology.h
  438. technology_unittest.cc
  439. TESTING
  440. testing.h
  441. testrunner.cc
  442. tethering.cc
  443. tethering.h
  444. traffic_monitor.cc
  445. traffic_monitor.h
  446. traffic_monitor_unittest.cc
  447. virtual_device.cc
  448. virtual_device.h
  449. virtual_device_unittest.cc