Lines Matching defs:response

67                                        OmahaResponse* response) {
68 response->packages.clear();
69 response->packages.push_back({.payload_urls = {"http://test", "https://test"},
75 response->max_failure_count_per_url = 3;
76 payload_state->SetResponse(*response);
99 response->packages[0].is_delta,
101 response->max_failure_count_per_url,
102 response->disable_payload_backoff);
109 OmahaResponse response;
134 payload_state.SetResponse(response);
147 OmahaResponse response;
148 response.packages.push_back({.payload_urls = {"https://single.url.test"},
180 payload_state.SetResponse(response);
201 OmahaResponse response;
202 response.packages.push_back({.payload_urls = {"http://multiple.url.test",
232 payload_state.SetResponse(response);
254 OmahaResponse response;
288 "Hash1235", true, false, &payload_state, &response);
309 OmahaResponse response;
315 // Set the first response.
317 "Hash5823", true, false, &payload_state, &response);
326 // Now, slightly change the response and set it again.
328 "Hash8225", true, false, &payload_state, &response);
336 // Return a third different response.
338 "Hash9999", true, false, &payload_state, &response);
341 // Make sure the url index was reset to 0 because of the new response.
356 OmahaResponse response;
410 "Hash5873", true, false, &payload_state, &response);
488 // Now, slightly change the response and set it again.
490 "Hash8532", true, false, &payload_state, &response);
493 // Make sure the url index was reset to 0 because of the new response.
503 OmahaResponse response;
530 "Hash8593", true, false, &payload_state, &response);
544 OmahaResponse response;
569 SetupPayloadStateWith2Urls("Hash8593", true, true, &payload_state, &response);
583 OmahaResponse response;
589 "Hash4427", true, false, &payload_state, &response);
620 // Note: This will be a different payload object, but the response should
622 // response was different. We want to specifically test that even if the
623 // response is same, we should reset the state if we find it corrupted.
626 "Hash4427", true, false, &payload_state, &response);
638 OmahaResponse response;
647 "Hash6437", true, false, &payload_state, &response);
661 OmahaResponse response;
670 "Hash6437", true, false, &payload_state, &response);
692 OmahaResponse response;
697 SetupPayloadStateWith2Urls("Hash6437", true, true, &payload_state, &response);
736 OmahaResponse response;
742 "Hash8939", true, false, &payload_state, &response);
757 OmahaResponse response;
758 response.disable_payload_backoff = true;
764 "Hash8939", true, false, &payload_state, &response);
784 OmahaResponse response;
785 response.disable_payload_backoff = true;
793 "Hash3286", true, false, &payload_state, &response);
808 // Change the response hash so as to simulate a new response which will
811 "Hash9904", true, false, &payload_state, &response);
891 OmahaResponse response;
897 "Hash3286", true, false, &payload_state, &response);
930 OmahaResponse response;
936 // Set the first response.
938 "Hash5823", true, false, &payload_state, &response);
1031 OmahaResponse response;
1032 response.packages.resize(1);
1051 "Hash8593", true, false, &payload_state, &response);
1058 // Check that durations are reset when a new response comes in.
1060 "Hash8594", true, false, &payload_state, &response);
1078 payload_state2.SetResponse(response);
1094 OmahaResponse response;
1110 "Hash8593", true, false, &payload_state, &response);
1203 OmahaResponse response;
1204 response.packages.resize(1);
1205 payload_state.SetResponse(response);
1226 OmahaResponse response;
1238 // Set the first response.
1240 "Hash8433", true, false, &payload_state, &response);
1252 "Hash8433", false, false, &payload_state, &response);
1265 // Now, slightly change the response and set it again.
1267 "Hash2399", false, false, &payload_state, &response);
1279 // Now, set the same response using the same hash
1284 "Hash2399", true, false, &payload_state, &response);
1299 OmahaResponse response;
1304 SetupPayloadStateWith2Urls("Hash6437", true, true, &payload_state, &response);
1320 SetupPayloadStateWith2Urls("Hash6437", true, true, &payload_state, &response);
1331 OmahaResponse response;
1337 "Hash6437", true, false, &payload_state, &response);
1354 OmahaResponse response;
1360 "Hash6437", true, false, &payload_state, &response);
1379 OmahaResponse response;
1386 "Hash3141", true, false, &payload_state, &response);
1419 OmahaResponse response;
1429 "Hash3141", true, false, &payload_state, &response);
1452 OmahaResponse response;
1459 "Hash3141", true, false, &payload_state, &response);
1494 OmahaResponse response;
1502 "Hash8593", true, false, &payload_state, &response);
1515 OmahaResponse response;
1525 "Hash8593", true, false, &payload_state, &response);
1561 OmahaResponse response;
1569 "Hash8593", true, false, &payload_state, &response);
1577 OmahaResponse response;
1586 "Hash8593", true, false, &payload_state, &response);
1606 OmahaResponse response;
1616 "Hash8593", true, false, &payload_state, &response);
1627 // Set a new response...
1629 "Hash9904", true, false, &payload_state, &response);