Searched refs:payload_state (Results 1 – 9 of 9) sorted by relevance
67 PayloadState* payload_state, in SetupPayloadStateWith2Urls() argument77 payload_state->SetResponse(*response); in SetupPayloadStateWith2Urls()78 string stored_response_sign = payload_state->GetResponseSignature(); in SetupPayloadStateWith2Urls()139 PayloadState payload_state; in TEST_F() local140 EXPECT_TRUE(payload_state.Initialize()); in TEST_F()141 payload_state.SetResponse(response); in TEST_F()142 string stored_response_sign = payload_state.GetResponseSignature(); in TEST_F()147 EXPECT_EQ("", payload_state.GetCurrentUrl()); in TEST_F()148 EXPECT_EQ(0U, payload_state.GetUrlFailureCount()); in TEST_F()149 EXPECT_EQ(0U, payload_state.GetUrlSwitchCount()); in TEST_F()[all …]
62 string current_url = SystemState::Get()->payload_state()->GetCurrentUrl(); in PerformAction()79 PayloadStateInterface* const payload_state = in PerformAction() local80 SystemState::Get()->payload_state(); in PerformAction()83 if (payload_state->GetUsingP2PForDownloading() && in PerformAction()84 !payload_state->GetP2PUrl().empty()) { in PerformAction()86 << " with local URL " << payload_state->GetP2PUrl() in PerformAction()88 install_plan_.download_url = payload_state->GetP2PUrl(); in PerformAction()89 payload_state->SetUsingP2PForDownloading(true); in PerformAction()119 payload_state->UpdateResumed(); in PerformAction()121 payload_state->UpdateRestarted(); in PerformAction()[all …]
362 PayloadStateInterface* const payload_state = in CalculateP2PParams() local363 SystemState::Get()->payload_state(); in CalculateP2PParams()364 payload_state->SetUsingP2PForDownloading(use_p2p_for_downloading); in CalculateP2PParams()365 payload_state->SetUsingP2PForSharing(use_p2p_for_sharing); in CalculateP2PParams()370 PayloadStateInterface* const payload_state = in CalculateUpdateParams() local371 SystemState::Get()->payload_state(); in CalculateUpdateParams()387 if (payload_state->GetUsingP2PForDownloading() || in CalculateUpdateParams()388 payload_state->GetUsingP2PForSharing()) { in CalculateUpdateParams()394 payload_state->SetUsingP2PForDownloading(false); in CalculateUpdateParams()395 payload_state->SetUsingP2PForSharing(false); in CalculateUpdateParams()[all …]
300 const PayloadStateInterface* payload_state = in StartDownloading() local301 SystemState::Get()->payload_state(); in StartDownloading()303 if (payload_state->GetUsingP2PForSharing()) { in StartDownloading()327 if (payload_state->GetUsingP2PForDownloading() && in StartDownloading()328 payload_state->GetP2PUrl() == install_plan_.download_url) { in StartDownloading()422 SystemState::Get()->payload_state()->NextPayload()) { in TransferComplete()431 SystemState::Get()->payload_state()->GetCurrentUrl(); in TransferComplete()
92 inline PayloadStateInterface* payload_state() override { in payload_state() function155 inline void set_payload_state(PayloadStateInterface* payload_state) { in set_payload_state() argument156 payload_state_ = payload_state ? payload_state : &mock_payload_state_; in set_payload_state()
958 PayloadStateInterface* const payload_state = in TransferComplete() local959 SystemState::Get()->payload_state(); in TransferComplete()1077 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()1082 payload_state->SetUsingP2PForSharing(false); in TransferComplete()1091 payload_state->SetResponse(output_object); in TransferComplete()1095 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()1096 payload_state->P2PNewAttempt(); in TransferComplete()1097 if (!payload_state->P2PAttemptAllowed()) { in TransferComplete()1100 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()1113 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()[all …]
91 PayloadStateInterface* payload_state() override { return &payload_state_; } in payload_state() function
97 virtual PayloadStateInterface* payload_state() = 0;
207 "cros/payload_state.cc",