Searched refs:update_state (Results 1 – 7 of 7) sorted by relevance
145 UpdateState update_state = UpdateState(); in GetDefaultUpdateState() local150 update_state.is_interactive = false; in GetDefaultUpdateState()151 update_state.is_delta_payload = false; in GetDefaultUpdateState()152 update_state.first_seen = first_seen_time; in GetDefaultUpdateState()153 update_state.num_checks = 1; in GetDefaultUpdateState()154 update_state.num_failures = 0; in GetDefaultUpdateState()155 update_state.failures_last_updated = Time(); // Needs to be zero. in GetDefaultUpdateState()157 update_state.download_urls = vector<string>{"http://fake/url/"}; in GetDefaultUpdateState()158 update_state.download_errors_max = 10; in GetDefaultUpdateState()160 update_state.last_download_url_idx = -1; in GetDefaultUpdateState()[all …]
189 UpdateState update_state = UpdateState(); in TEST_F() local190 update_state.is_interactive = true; in TEST_F()191 update_state.is_delta_payload = false; in TEST_F()192 update_state.first_seen = FixedTime(); in TEST_F()193 update_state.num_checks = 1; in TEST_F()194 update_state.num_failures = 0; in TEST_F()195 update_state.failures_last_updated = Time(); in TEST_F()196 update_state.download_urls = vector<string>{"http://fake/url/"}; in TEST_F()197 update_state.download_errors_max = 10; in TEST_F()198 update_state.p2p_downloading_disabled = false; in TEST_F()[all …]
331 const UpdateState update_state) const { in UpdateCanStart()345 result->backoff_expiry = update_state.backoff_expiry; in UpdateCanStart()346 result->scatter_wait_period = update_state.scatter_wait_period; in UpdateCanStart()347 result->scatter_check_threshold = update_state.scatter_check_threshold; in UpdateCanStart()362 ec, state, error, &backoff_url_result, update_state); in UpdateCanStart()391 if (!update_state.is_interactive) { in UpdateCanStart()407 update_state); in UpdateCanStart()429 if (update_state.p2p_sharing_disabled) { in UpdateCanStart()437 if (update_state.p2p_downloading_disabled) { in UpdateCanStart()439 } else if (update_state.is_interactive) { in UpdateCanStart()[all …]
67 UpdateState update_state) const override;179 const UpdateState& update_state) const;196 const UpdateState& update_state) const;
75 UpdateState update_state) const override;
61 const UpdateState update_state) const { in UpdateCanStart()
249 UpdateState update_state) const = 0;