Lines Matching refs:Get
226 FakeSystemState::Get()->set_connection_manager(&mock_connection_manager); in SetUp()
227 FakeSystemState::Get()->set_update_attempter(&attempter_); in SetUp()
228 FakeSystemState::Get()->set_dlcservice(&mock_dlcservice_); in SetUp()
229 FakeSystemState::Get()->set_update_manager(&mock_update_manager_); in SetUp()
232 prefs_ = FakeSystemState::Get()->fake_prefs(); in SetUp()
253 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in SetUp()
256 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in SetUp()
260 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in SetUp()
263 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in SetUp()
343 FakeSystemState::Get()->fake_hardware()->SetIsOfficialBuild( in TestCheckForUpdate()
345 FakeSystemState::Get()->fake_hardware()->SetAreDevFeaturesEnabled( in TestCheckForUpdate()
616 FakeSystemState::Get()->fake_prefs()->SetString(kPrefsUpdateCompletedOnBootId, in TEST_F()
639 FakeSystemState::Get()->fake_boot_control(), in TEST_F()
640 FakeSystemState::Get()->fake_hardware()); in TEST_F()
689 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), UpdateFailed(_)) in TEST_F()
694 EXPECT_CALL(*(FakeSystemState::Get()->mock_payload_state()), GetCurrentUrl()) in TEST_F()
696 FakeSystemState::Get()->mock_payload_state()->SetResponse(response); in TEST_F()
699 FakeSystemState::Get()->mock_payload_state()->GetCurrentUrl()); in TEST_F()
708 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), UpdateFailed(err)); in TEST_F()
780 FakeSystemState::Get()->set_device_policy(device_policy.get()); in RollbackTestStart()
799 FakeSystemState::Get()->fake_boot_control()->SetSlotBootable(rollback_slot, in RollbackTestStart()
925 FakeSystemState::Get()->set_p2p_manager(&mock_p2p_manager); in TEST_F()
933 FakeSystemState::Get()->set_p2p_manager(&mock_p2p_manager); in TEST_F()
941 FakeSystemState::Get()->set_p2p_manager(&mock_p2p_manager); in TEST_F()
959 FakeSystemState::Get()->set_p2p_manager(&mock_p2p_manager); in P2PNotEnabledStart()
979 FakeSystemState::Get()->set_p2p_manager(&mock_p2p_manager); in P2PEnabledStartingFailsStart()
1002 FakeSystemState::Get()->set_p2p_manager(&mock_p2p_manager); in P2PEnabledHousekeepingFailsStart()
1022 FakeSystemState::Get()->set_p2p_manager(&mock_p2p_manager); in P2PEnabledStart()
1044 FakeSystemState::Get()->set_p2p_manager(&mock_p2p_manager); in P2PEnabledInteractiveStart()
1073 FakeSystemState::Get()->set_device_policy(device_policy.get()); in ReadScatterFactorFromPolicyTestStart()
1100 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in DecrementUpdateCheckCountTestStart()
1101 FakeSystemState::Get()->fake_hardware()->SetIsOOBEComplete(Time::UnixEpoch()); in DecrementUpdateCheckCountTestStart()
1109 FakeSystemState::Get()->set_device_policy(device_policy.get()); in DecrementUpdateCheckCountTestStart()
1155 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in NoScatteringDoneDuringManualUpdateTestStart()
1156 FakeSystemState::Get()->fake_hardware()->SetIsOOBEComplete(Time::UnixEpoch()); in NoScatteringDoneDuringManualUpdateTestStart()
1168 FakeSystemState::Get()->set_device_policy(device_policy.get()); in NoScatteringDoneDuringManualUpdateTestStart()
1203 FakeSystemState::Get()->set_device_policy(device_policy.get()); in SetUpStagingTest()
1222 FakeSystemState::Get()->fake_hardware()->SetIsOOBEComplete(Time::UnixEpoch()); in StagingSetsPrefsAndTurnsOffScatteringStart()
1226 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in StagingSetsPrefsAndTurnsOffScatteringStart()
1279 FakeSystemState::Get()->fake_hardware()->SetIsOOBEComplete(Time::UnixEpoch()); in StagingOffIfInteractiveStart()
1297 FakeSystemState::Get()->fake_hardware()->SetIsOOBEEnabled(true); in StagingOffIfOobeStart()
1298 FakeSystemState::Get()->fake_hardware()->UnsetIsOOBEComplete(); in StagingOffIfOobeStart()
1309 auto* fake_clock = FakeSystemState::Get()->fake_clock(); in TEST_F()
1367 FakeSystemState::Get()->fake_clock()->SetBootTime(Time::FromTimeT(42)); in TEST_F()
1380 FakeSystemState::Get()->fake_hardware()->SetIsOfficialBuild(false); in TEST_F()
1385 FakeSystemState::Get()->fake_hardware()->SetIsOfficialBuild(true); in TEST_F()
1386 FakeSystemState::Get()->fake_hardware()->SetAreDevFeaturesEnabled(true); in TEST_F()
1391 FakeSystemState::Get()->fake_hardware()->SetIsOfficialBuild(true); in TEST_F()
1392 FakeSystemState::Get()->fake_hardware()->SetAreDevFeaturesEnabled(false); in TEST_F()
1584 FakeSystemState::Get()->fake_hardware()->SetIsOfficialBuild(true); in TEST_F()
1585 FakeSystemState::Get()->fake_hardware()->SetAreDevFeaturesEnabled(false); in TEST_F()
1623 FakeSystemState::Get()->request_params()->target_version_prefix()); in TEST_F()
1626 EXPECT_TRUE(FakeSystemState::Get() in TEST_F()
1634 EXPECT_EQ("hint", FakeSystemState::Get()->request_params()->lts_tag()); in TEST_F()
1637 EXPECT_TRUE(FakeSystemState::Get()->request_params()->lts_tag().empty()); in TEST_F()
1646 EXPECT_TRUE(FakeSystemState::Get()->request_params()->rollback_allowed()); in TEST_F()
1649 FakeSystemState::Get()->request_params()->rollback_allowed_milestones()); in TEST_F()
1655 EXPECT_FALSE(FakeSystemState::Get()->request_params()->rollback_allowed()); in TEST_F()
1658 FakeSystemState::Get()->request_params()->rollback_allowed_milestones()); in TEST_F()
1664 FakeSystemState::Get()->request_params()->set_root(tempdir.GetPath().value()); in TEST_F()
1669 FakeSystemState::Get()->request_params()->is_powerwash_allowed()); in TEST_F()
1675 FakeSystemState::Get()->request_params()->set_root(tempdir.GetPath().value()); in TEST_F()
1680 EXPECT_TRUE(FakeSystemState::Get()->request_params()->is_powerwash_allowed()); in TEST_F()
1747 EXPECT_FALSE(FakeSystemState::Get()->request_params()->rollback_allowed()); in TEST_F()
1754 EXPECT_TRUE(FakeSystemState::Get()->request_params()->rollback_allowed()); in TEST_F()
1781 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in ResetRollbackHappenedStart()
1793 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in ResetRollbackHappenedStart()
1835 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in TEST_F()
1845 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in TEST_F()
1856 EXPECT_CALL(*FakeSystemState::Get()->mock_metrics_reporter(), in TEST_F()
1867 EXPECT_CALL(*FakeSystemState::Get()->mock_metrics_reporter(), in TEST_F()
1878 EXPECT_CALL(*FakeSystemState::Get()->mock_metrics_reporter(), in TEST_F()
1891 EXPECT_CALL(*FakeSystemState::Get()->mock_metrics_reporter(), in TEST_F()
1900 EXPECT_CALL(*FakeSystemState::Get()->mock_metrics_reporter(), in TEST_F()
1908 FakeSystemState::Get()->set_device_policy(device_policy.get()); in TEST_F()
1913 EXPECT_CALL(*FakeSystemState::Get()->mock_metrics_reporter(), in TEST_F()
1923 FakeSystemState::Get()->set_device_policy(device_policy.get()); in TEST_F()
1931 FakeSystemState::Get()->fake_prefs()->SetInt64( in TEST_F()
1936 FakeSystemState::Get()->fake_clock()->SetWallclockTime(update_finished_at); in TEST_F()
1938 EXPECT_CALL(*FakeSystemState::Get()->mock_metrics_reporter(), in TEST_F()
1948 FakeSystemState::Get()->set_device_policy(device_policy.get()); in TEST_F()
1956 FakeSystemState::Get()->fake_prefs()->SetInt64( in TEST_F()
1961 FakeSystemState::Get()->fake_clock()->SetWallclockTime(update_finished_at); in TEST_F()
1963 EXPECT_CALL(*FakeSystemState::Get()->mock_metrics_reporter(), in TEST_F()
2115 FakeSystemState::Get()->request_params()->autoupdate_token()); in TEST_F()
2119 FakeSystemState::Get()->request_params()->autoupdate_token().empty()); in TEST_F()
2283 OmahaRequestParams* params = FakeSystemState::Get()->request_params(); in TEST_F()
2293 EXPECT_FALSE(FakeSystemState::Get()->prefs()->Exists(last_active_key)); in TEST_F()
2296 EXPECT_FALSE(FakeSystemState::Get()->prefs()->Exists(last_rollcall_key)); in TEST_F()
2308 OmahaRequestParams* params = FakeSystemState::Get()->request_params(); in TEST_F()
2323 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
2335 FakeSystemState::Get()->prefs()->SetString(active_key, "z2yz"); in TEST_F()
2336 FakeSystemState::Get()->prefs()->SetString(last_active_key, "z2yz"); in TEST_F()
2337 FakeSystemState::Get()->prefs()->SetString(last_rollcall_key, "z2yz"); in TEST_F()
2341 OmahaRequestParams* params = FakeSystemState::Get()->request_params(); in TEST_F()
2367 FakeSystemState::Get()->prefs()->SetInt64(active_key, 1); in TEST_F()
2368 FakeSystemState::Get()->prefs()->SetInt64(last_active_key, 78); in TEST_F()
2369 FakeSystemState::Get()->prefs()->SetInt64(last_rollcall_key, 99); in TEST_F()
2373 OmahaRequestParams* params = FakeSystemState::Get()->request_params(); in TEST_F()
2393 FakeSystemState::Get()->prefs()->SetInt64(active_key, kPingInactiveValue); in TEST_F()
2394 FakeSystemState::Get()->prefs()->SetInt64(last_active_key, 0); in TEST_F()
2395 FakeSystemState::Get()->prefs()->SetInt64(last_rollcall_key, 0); in TEST_F()
2396 EXPECT_TRUE(FakeSystemState::Get()->prefs()->Exists(active_key)); in TEST_F()
2397 EXPECT_TRUE(FakeSystemState::Get()->prefs()->Exists(last_active_key)); in TEST_F()
2398 EXPECT_TRUE(FakeSystemState::Get()->prefs()->Exists(last_rollcall_key)); in TEST_F()
2404 EXPECT_FALSE(FakeSystemState::Get()->prefs()->Exists(last_active_key)); in TEST_F()
2405 EXPECT_FALSE(FakeSystemState::Get()->prefs()->Exists(last_rollcall_key)); in TEST_F()
2407 EXPECT_TRUE(FakeSystemState::Get()->prefs()->Exists(active_key)); in TEST_F()
2409 EXPECT_TRUE(FakeSystemState::Get()->prefs()->GetInt64(active_key, &temp_int)); in TEST_F()
2419 EXPECT_TRUE(FakeSystemState::Get()->prefs()->Exists(active_key)); in TEST_F()
2420 EXPECT_TRUE(FakeSystemState::Get()->prefs()->GetInt64(active_key, &temp_int)); in TEST_F()
2430 FakeSystemState::Get()->prefs()->SetInt64(key, 1); in TEST_F()
2431 EXPECT_TRUE(FakeSystemState::Get()->prefs()->Exists(key)); in TEST_F()
2436 EXPECT_FALSE(FakeSystemState::Get()->prefs()->Exists(key)); in TEST_F()
2455 FakeSystemState::Get()->set_prefs(&fake_prefs); in TEST_F()
2460 FakeSystemState::Get()->set_powerwash_safe_prefs(&powerwash_safe_prefs); in TEST_F()
2475 EXPECT_FALSE(FakeSystemState::Get()->powerwash_safe_prefs()->Exists(key1)); in TEST_F()
2476 EXPECT_FALSE(FakeSystemState::Get()->powerwash_safe_prefs()->Exists(key2)); in TEST_F()