Add a few more unittest for parsing global_progress.

Postinstall program can occasionally return garbage instead of a
fraction. Add two more test cases.

Bug: None
TEST=unittests still pass.

Change-Id: Ia444acada78eaa124c618b68d3f0880b2348c8f6
1 file changed
tree: 8859af10f6efe7715e60ee5cbfad972b5a1befa2
  1. binder_bindings/
  2. client_library/
  3. common/
  4. dbus_bindings/
  5. include/
  6. init/
  7. payload_consumer/
  8. payload_generator/
  9. sample_images/
  10. scripts/
  11. update_manager/
  12. update_payload_key/
  13. weaved/
  14. .gitignore
  15. Android.mk
  16. binder_service_android.cc
  17. binder_service_android.h
  18. binder_service_brillo.cc
  19. binder_service_brillo.h
  20. boot_control_android.cc
  21. boot_control_android.h
  22. boot_control_chromeos.cc
  23. boot_control_chromeos.h
  24. boot_control_chromeos_unittest.cc
  25. chrome_browser_proxy_resolver.cc
  26. chrome_browser_proxy_resolver.h
  27. chrome_browser_proxy_resolver_unittest.cc
  28. common_service.cc
  29. common_service.h
  30. common_service_unittest.cc
  31. connection_manager.cc
  32. connection_manager.h
  33. connection_manager_interface.h
  34. connection_manager_unittest.cc
  35. connection_utils.cc
  36. connection_utils.h
  37. daemon.cc
  38. daemon.h
  39. daemon_state_android.cc
  40. daemon_state_android.h
  41. daemon_state_interface.h
  42. dbus_service.cc
  43. dbus_service.h
  44. dbus_test_utils.h
  45. fake_file_writer.h
  46. fake_p2p_manager.h
  47. fake_p2p_manager_configuration.h
  48. fake_shill_proxy.cc
  49. fake_shill_proxy.h
  50. fake_system_state.cc
  51. fake_system_state.h
  52. generate_pc_file.sh
  53. hardware_android.cc
  54. hardware_android.h
  55. hardware_chromeos.cc
  56. hardware_chromeos.h
  57. hardware_chromeos_unittest.cc
  58. image_properties.h
  59. image_properties_android.cc
  60. image_properties_chromeos.cc
  61. image_properties_chromeos_unittest.cc
  62. libcros_proxy.cc
  63. libcros_proxy.h
  64. libupdate_engine-client-test.pc.in
  65. libupdate_engine-client.pc.in
  66. local_coverage_rate
  67. main.cc
  68. metrics.cc
  69. metrics.h
  70. metrics_utils.cc
  71. metrics_utils.h
  72. metrics_utils_unittest.cc
  73. mock_connection_manager.h
  74. mock_file_writer.h
  75. mock_omaha_request_params.h
  76. mock_p2p_manager.h
  77. mock_payload_state.h
  78. mock_proxy_resolver.h
  79. mock_update_attempter.h
  80. MODULE_LICENSE_APACHE2
  81. NOTICE
  82. omaha_request_action.cc
  83. omaha_request_action.h
  84. omaha_request_action_unittest.cc
  85. omaha_request_params.cc
  86. omaha_request_params.h
  87. omaha_request_params_unittest.cc
  88. omaha_response.h
  89. omaha_response_handler_action.cc
  90. omaha_response_handler_action.h
  91. omaha_response_handler_action_unittest.cc
  92. omaha_utils.cc
  93. omaha_utils.h
  94. omaha_utils_unittest.cc
  95. OWNERS
  96. p2p_manager.cc
  97. p2p_manager.h
  98. p2p_manager_unittest.cc
  99. parcelable_update_engine_status.cc
  100. parcelable_update_engine_status.h
  101. payload_state.cc
  102. payload_state.h
  103. payload_state_interface.h
  104. payload_state_unittest.cc
  105. PRESUBMIT.cfg
  106. proxy_resolver.cc
  107. proxy_resolver.h
  108. real_system_state.cc
  109. real_system_state.h
  110. run_unittests
  111. sample_omaha_v3_response.xml
  112. service_delegate_android_interface.h
  113. service_observer_interface.h
  114. shill_proxy.cc
  115. shill_proxy.h
  116. shill_proxy_interface.h
  117. system_state.h
  118. tar_bunzip2.gypi
  119. test_http_server.cc
  120. test_subprocess.cc
  121. testrunner.cc
  122. unittest_key.pem
  123. unittest_key2.pem
  124. update_attempter.cc
  125. update_attempter.h
  126. update_attempter_android.cc
  127. update_attempter_android.h
  128. update_attempter_unittest.cc
  129. update_engine-client.gyp
  130. update_engine.conf
  131. update_engine.gyp
  132. update_engine.rc
  133. update_engine_client.cc
  134. update_engine_client_android.cc
  135. update_metadata.proto
  136. update_status_utils.cc
  137. update_status_utils.h
  138. UpdateEngine.conf
  139. utils_android.cc
  140. utils_android.h
  141. WATCHLISTS
  142. weave_service.cc
  143. weave_service.h
  144. weave_service_factory.cc
  145. weave_service_factory.h
  146. weave_service_interface.h