Searched refs:payload_state (Results 1 – 9 of 9) sorted by relevance
66 PayloadState* payload_state, in SetupPayloadStateWith2Urls() argument76 payload_state->SetResponse(*response); in SetupPayloadStateWith2Urls()77 string stored_response_sign = payload_state->GetResponseSignature(); in SetupPayloadStateWith2Urls()132 PayloadState payload_state; in TEST() local133 EXPECT_TRUE(payload_state.Initialize(&fake_system_state)); in TEST()134 payload_state.SetResponse(response); in TEST()135 string stored_response_sign = payload_state.GetResponseSignature(); in TEST()140 EXPECT_EQ("", payload_state.GetCurrentUrl()); in TEST()141 EXPECT_EQ(0U, payload_state.GetUrlFailureCount()); in TEST()142 EXPECT_EQ(0U, payload_state.GetUrlSwitchCount()); in TEST()[all …]
61 string current_url = system_state_->payload_state()->GetCurrentUrl(); in PerformAction()76 PayloadStateInterface* const payload_state = system_state_->payload_state(); in PerformAction() local79 if (payload_state->GetUsingP2PForDownloading() && in PerformAction()80 !payload_state->GetP2PUrl().empty()) { in PerformAction()82 << " with local URL " << payload_state->GetP2PUrl() in PerformAction()84 install_plan_.download_url = payload_state->GetP2PUrl(); in PerformAction()85 payload_state->SetUsingP2PForDownloading(true); in PerformAction()112 payload_state->UpdateResumed(); in PerformAction()114 payload_state->UpdateRestarted(); in PerformAction()190 if (payload_state->GetRollbackHappened()) { in PerformAction()
340 PayloadStateInterface* const payload_state = system_state_->payload_state(); in CalculateP2PParams() local341 payload_state->SetUsingP2PForDownloading(use_p2p_for_downloading); in CalculateP2PParams()342 payload_state->SetUsingP2PForSharing(use_p2p_for_sharing); in CalculateP2PParams()353 PayloadStateInterface* const payload_state = system_state_->payload_state(); in CalculateUpdateParams() local375 if (payload_state->GetUsingP2PForDownloading() || in CalculateUpdateParams()376 payload_state->GetUsingP2PForSharing()) { in CalculateUpdateParams()382 payload_state->SetUsingP2PForDownloading(false); in CalculateUpdateParams()383 payload_state->SetUsingP2PForSharing(false); in CalculateUpdateParams()432 << payload_state->GetUsingP2PForDownloading() in CalculateUpdateParams()434 << payload_state->GetUsingP2PForSharing(); in CalculateUpdateParams()[all …]
81 inline PayloadStateInterface* payload_state() override { in payload_state() function144 inline void set_payload_state(PayloadStateInterface* payload_state) { in set_payload_state() argument145 payload_state_ = payload_state ? payload_state : &mock_payload_state_; in set_payload_state()
1217 PayloadStateInterface* const payload_state = system_state_->payload_state(); in TransferComplete() local1315 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()1320 payload_state->SetUsingP2PForSharing(false); in TransferComplete()1329 payload_state->SetResponse(output_object); in TransferComplete()1333 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()1334 payload_state->P2PNewAttempt(); in TransferComplete()1335 if (!payload_state->P2PAttemptAllowed()) { in TransferComplete()1338 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()1351 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()1361 PayloadStateInterface* payload_state = system_state_->payload_state(); in CompleteProcessing() local[all …]
91 virtual PayloadStateInterface* payload_state() = 0;
106 inline PayloadStateInterface* payload_state() override { in payload_state() function
276 'payload_state.cc',
257 const PayloadStateInterface* payload_state = system_state_->payload_state(); in StartDownloading() local259 if (payload_state->GetUsingP2PForSharing()) { in StartDownloading()283 if (payload_state->GetUsingP2PForDownloading() && in StartDownloading()284 payload_state->GetP2PUrl() == install_plan_.download_url) { in StartDownloading()377 system_state_->payload_state()->NextPayload()) { in TransferComplete()386 system_state_->payload_state()->GetCurrentUrl(); in TransferComplete()