Lines Matching refs:UpdateAttempterTest

221 class UpdateAttempterTest : public ::testing::Test {  class
340 void UpdateAttempterTest::TestCheckForUpdate() { in TestCheckForUpdate()
363 void UpdateAttempterTest::TestProcessingDone() { in TestProcessingDone()
395 void UpdateAttempterTest::ScheduleQuitMainLoop() { in ScheduleQuitMainLoop()
402 void UpdateAttempterTest::SessionIdTestChange() { in SessionIdTestChange()
410 TEST_F(UpdateAttempterTest, SessionIdTestChange) { in TEST_F() argument
412 base::Bind(&UpdateAttempterTest::SessionIdTestChange, in TEST_F()
417 void UpdateAttempterTest::SessionIdTestEnforceEmptyStrPingOmaha() { in SessionIdTestEnforceEmptyStrPingOmaha()
438 TEST_F(UpdateAttempterTest, SessionIdTestEnforceEmptyStrPingOmaha) { in TEST_F() argument
441 base::Bind(&UpdateAttempterTest::SessionIdTestEnforceEmptyStrPingOmaha, in TEST_F()
446 void UpdateAttempterTest::SessionIdTestConsistencyInUpdateFlow() { in SessionIdTestConsistencyInUpdateFlow()
463 TEST_F(UpdateAttempterTest, SessionIdTestConsistencyInUpdateFlow) { in TEST_F() argument
466 base::Bind(&UpdateAttempterTest::SessionIdTestConsistencyInUpdateFlow, in TEST_F()
471 void UpdateAttempterTest::SessionIdTestInDownloadAction() { in SessionIdTestInDownloadAction()
490 TEST_F(UpdateAttempterTest, SessionIdTestInDownloadAction) { in TEST_F() argument
492 base::Bind(&UpdateAttempterTest::SessionIdTestInDownloadAction, in TEST_F()
497 TEST_F(UpdateAttempterTest, ActionCompletedDownloadTest) { in TEST_F() argument
509 TEST_F(UpdateAttempterTest, ActionCompletedErrorTest) { in TEST_F() argument
517 TEST_F(UpdateAttempterTest, DownloadProgressAccumulationTest) { in TEST_F() argument
555 TEST_F(UpdateAttempterTest, ChangeToDownloadingOnReceivedBytesTest) { in TEST_F() argument
576 TEST_F(UpdateAttempterTest, BroadcastCompleteDownloadTest) { in TEST_F() argument
596 TEST_F(UpdateAttempterTest, ActionCompletedOmahaRequestTest) { in TEST_F() argument
613 TEST_F(UpdateAttempterTest, ConstructWithUpdatedMarkerTest) { in TEST_F() argument
622 TEST_F(UpdateAttempterTest, GetErrorCodeForActionTest) { in TEST_F() argument
650 TEST_F(UpdateAttempterTest, DisableDeltaUpdateIfNeededTest) { in TEST_F() argument
666 TEST_F(UpdateAttempterTest, MarkDeltaUpdateFailureTest) { in TEST_F() argument
686 TEST_F(UpdateAttempterTest, ScheduleErrorEventActionNoEventTest) { in TEST_F() argument
702 TEST_F(UpdateAttempterTest, ScheduleErrorEventActionTest) { in TEST_F() argument
740 void UpdateAttempterTest::UpdateTestStart() { in UpdateTestStart()
764 base::Bind(&UpdateAttempterTest::UpdateTestVerify, in UpdateTestStart()
768 void UpdateAttempterTest::UpdateTestVerify() { in UpdateTestVerify()
775 void UpdateAttempterTest::RollbackTestStart(bool enterprise_rollback, in RollbackTestStart()
822 base::Bind(&UpdateAttempterTest::RollbackTestVerify, in RollbackTestStart()
830 void UpdateAttempterTest::RollbackTestVerify() { in RollbackTestVerify()
839 TEST_F(UpdateAttempterTest, UpdateTest) { in TEST_F() argument
844 TEST_F(UpdateAttempterTest, RollbackTest) { in TEST_F() argument
846 base::Bind(&UpdateAttempterTest::RollbackTestStart, in TEST_F()
853 TEST_F(UpdateAttempterTest, InvalidSlotRollbackTest) { in TEST_F() argument
855 base::Bind(&UpdateAttempterTest::RollbackTestStart, in TEST_F()
862 TEST_F(UpdateAttempterTest, EnterpriseRollbackTest) { in TEST_F() argument
864 base::Bind(&UpdateAttempterTest::RollbackTestStart, in TEST_F()
871 void UpdateAttempterTest::PingOmahaTestStart() { in PingOmahaTestStart()
880 TEST_F(UpdateAttempterTest, PingOmahaTest) { in TEST_F() argument
887 base::Bind(&UpdateAttempterTest::PingOmahaTestStart, in TEST_F()
894 TEST_F(UpdateAttempterTest, CreatePendingErrorEventTest) { in TEST_F() argument
907 TEST_F(UpdateAttempterTest, CreatePendingErrorEventResumedTest) { in TEST_F() argument
923 TEST_F(UpdateAttempterTest, P2PNotStartedAtStartupWhenNotEnabled) { in TEST_F() argument
931 TEST_F(UpdateAttempterTest, P2PNotStartedAtStartupWhenEnabledButNotSharing) { in TEST_F() argument
939 TEST_F(UpdateAttempterTest, P2PStartedAtStartupWhenEnabledAndSharing) { in TEST_F() argument
948 TEST_F(UpdateAttempterTest, P2PNotEnabled) { in TEST_F() argument
950 base::Bind(&UpdateAttempterTest::P2PNotEnabledStart, in TEST_F()
955 void UpdateAttempterTest::P2PNotEnabledStart() { in P2PNotEnabledStart()
968 TEST_F(UpdateAttempterTest, P2PEnabledStartingFails) { in TEST_F() argument
970 base::Bind(&UpdateAttempterTest::P2PEnabledStartingFailsStart, in TEST_F()
975 void UpdateAttempterTest::P2PEnabledStartingFailsStart() { in P2PEnabledStartingFailsStart()
990 TEST_F(UpdateAttempterTest, P2PEnabledHousekeepingFails) { in TEST_F() argument
993 base::Bind(&UpdateAttempterTest::P2PEnabledHousekeepingFailsStart, in TEST_F()
998 void UpdateAttempterTest::P2PEnabledHousekeepingFailsStart() { in P2PEnabledHousekeepingFailsStart()
1013 TEST_F(UpdateAttempterTest, P2PEnabled) { in TEST_F() argument
1015 base::Bind(&UpdateAttempterTest::P2PEnabledStart, in TEST_F()
1020 void UpdateAttempterTest::P2PEnabledStart() { in P2PEnabledStart()
1035 TEST_F(UpdateAttempterTest, P2PEnabledInteractive) { in TEST_F() argument
1037 base::Bind(&UpdateAttempterTest::P2PEnabledInteractiveStart, in TEST_F()
1042 void UpdateAttempterTest::P2PEnabledInteractiveStart() { in P2PEnabledInteractiveStart()
1058 TEST_F(UpdateAttempterTest, ReadScatterFactorFromPolicy) { in TEST_F() argument
1061 base::Bind(&UpdateAttempterTest::ReadScatterFactorFromPolicyTestStart, in TEST_F()
1068 void UpdateAttempterTest::ReadScatterFactorFromPolicyTestStart() { in ReadScatterFactorFromPolicyTestStart()
1088 TEST_F(UpdateAttempterTest, DecrementUpdateCheckCountTest) { in TEST_F() argument
1091 base::Bind(&UpdateAttempterTest::DecrementUpdateCheckCountTestStart, in TEST_F()
1096 void UpdateAttempterTest::DecrementUpdateCheckCountTestStart() { in DecrementUpdateCheckCountTestStart()
1142 TEST_F(UpdateAttempterTest, NoScatteringDoneDuringManualUpdateTestStart) { in TEST_F() argument
1146 &UpdateAttempterTest::NoScatteringDoneDuringManualUpdateTestStart, in TEST_F()
1151 void UpdateAttempterTest::NoScatteringDoneDuringManualUpdateTestStart() { in NoScatteringDoneDuringManualUpdateTestStart()
1194 void UpdateAttempterTest::SetUpStagingTest(const StagingSchedule& schedule) { in SetUpStagingTest()
1211 TEST_F(UpdateAttempterTest, StagingSetsPrefsAndTurnsOffScattering) { in TEST_F() argument
1215 &UpdateAttempterTest::StagingSetsPrefsAndTurnsOffScatteringStart, in TEST_F()
1220 void UpdateAttempterTest::StagingSetsPrefsAndTurnsOffScatteringStart() { in StagingSetsPrefsAndTurnsOffScatteringStart()
1253 void UpdateAttempterTest::CheckStagingOff() { in CheckStagingOff()
1270 TEST_F(UpdateAttempterTest, StagingOffIfInteractive) { in TEST_F() argument
1272 base::Bind(&UpdateAttempterTest::StagingOffIfInteractiveStart, in TEST_F()
1277 void UpdateAttempterTest::StagingOffIfInteractiveStart() { in StagingOffIfInteractiveStart()
1288 TEST_F(UpdateAttempterTest, StagingOffIfOobe) { in TEST_F() argument
1290 base::Bind(&UpdateAttempterTest::StagingOffIfOobeStart, in TEST_F()
1295 void UpdateAttempterTest::StagingOffIfOobeStart() { in StagingOffIfOobeStart()
1308 TEST_F(UpdateAttempterTest, ReportDailyMetrics) { in TEST_F() argument
1366 TEST_F(UpdateAttempterTest, BootTimeInUpdateMarkerFile) { in TEST_F() argument
1379 TEST_F(UpdateAttempterTest, AnyUpdateSourceAllowedUnofficial) { in TEST_F() argument
1384 TEST_F(UpdateAttempterTest, AnyUpdateSourceAllowedOfficialDevmode) { in TEST_F() argument
1390 TEST_F(UpdateAttempterTest, AnyUpdateSourceDisallowedOfficialNormal) { in TEST_F() argument
1398 TEST_F(UpdateAttempterTest, CheckForInstallNotIdleFails) { in TEST_F() argument
1407 TEST_F(UpdateAttempterTest, CheckForUpdateNotIdleFails) { in TEST_F() argument
1421 TEST_F(UpdateAttempterTest, CheckForUpdateOfficalBuildClearsSource) { in TEST_F() argument
1429 TEST_F(UpdateAttempterTest, CheckForUpdateUnofficialBuildChangesSource) { in TEST_F() argument
1441 TEST_F(UpdateAttempterTest, CheckForUpdateOfficialBuildScheduledAUTest) { in TEST_F() argument
1452 TEST_F(UpdateAttempterTest, CheckForUpdateUnofficialBuildScheduledAUTest) { in TEST_F() argument
1467 TEST_F(UpdateAttempterTest, CheckForUpdateOfficialBuildAUTest) { in TEST_F() argument
1478 TEST_F(UpdateAttempterTest, CheckForUpdateUnofficialBuildAUTest) { in TEST_F() argument
1493 TEST_F(UpdateAttempterTest, in TEST_F() argument
1507 TEST_F(UpdateAttempterTest, in TEST_F() argument
1525 TEST_F(UpdateAttempterTest, CheckForUpdateNonInteractiveOfficialBuildAUTest) { in TEST_F() argument
1538 TEST_F(UpdateAttempterTest, CheckForUpdateNonInteractiveUnofficialBuildAUTest) { in TEST_F() argument
1555 TEST_F(UpdateAttempterTest, CheckForUpdateMissingForcedCallback1) { in TEST_F() argument
1567 TEST_F(UpdateAttempterTest, CheckForUpdateMissingForcedCallback2) { in TEST_F() argument
1583 TEST_F(UpdateAttempterTest, CheckForInstallTest) { in TEST_F() argument
1596 TEST_F(UpdateAttempterTest, InstallSetsStatusIdle) { in TEST_F() argument
1607 TEST_F(UpdateAttempterTest, RollbackAfterInstall) { in TEST_F() argument
1613 TEST_F(UpdateAttempterTest, UpdateAfterInstall) { in TEST_F() argument
1619 TEST_F(UpdateAttempterTest, TargetVersionPrefixSetAndReset) { in TEST_F() argument
1632 TEST_F(UpdateAttempterTest, TargetChannelHintSetAndReset) { in TEST_F() argument
1640 TEST_F(UpdateAttempterTest, RollbackAllowedSetAndReset) { in TEST_F() argument
1661 TEST_F(UpdateAttempterTest, ChannelDowngradeNoRollback) { in TEST_F() argument
1672 TEST_F(UpdateAttempterTest, ChannelDowngradeRollback) { in TEST_F() argument
1683 TEST_F(UpdateAttempterTest, UpdateDeferredByPolicyTest) { in TEST_F() argument
1725 TEST_F(UpdateAttempterTest, UpdateIsNotRunningWhenUpdateAvailable) { in TEST_F() argument
1733 TEST_F(UpdateAttempterTest, UpdateAttemptFlagsCachedAtUpdateStart) { in TEST_F() argument
1743 TEST_F(UpdateAttempterTest, RollbackNotAllowed) { in TEST_F() argument
1750 TEST_F(UpdateAttempterTest, RollbackAllowed) { in TEST_F() argument
1757 TEST_F(UpdateAttempterTest, InteractiveUpdateUsesPassedRestrictions) { in TEST_F() argument
1765 TEST_F(UpdateAttempterTest, NonInteractiveUpdateUsesSetRestrictions) { in TEST_F() argument
1778 void UpdateAttempterTest::ResetRollbackHappenedStart(bool is_consumer, in ResetRollbackHappenedStart()
1801 TEST_F(UpdateAttempterTest, ResetRollbackHappenedOobe) { in TEST_F() argument
1803 base::Bind(&UpdateAttempterTest::ResetRollbackHappenedStart, in TEST_F()
1811 TEST_F(UpdateAttempterTest, ResetRollbackHappenedConsumer) { in TEST_F() argument
1813 base::Bind(&UpdateAttempterTest::ResetRollbackHappenedStart, in TEST_F()
1821 TEST_F(UpdateAttempterTest, ResetRollbackHappenedEnterprise) { in TEST_F() argument
1823 base::Bind(&UpdateAttempterTest::ResetRollbackHappenedStart, in TEST_F()
1831 TEST_F(UpdateAttempterTest, SetRollbackHappenedRollback) { in TEST_F() argument
1841 TEST_F(UpdateAttempterTest, SetRollbackHappenedNotRollback) { in TEST_F() argument
1851 TEST_F(UpdateAttempterTest, RollbackMetricsRollbackSuccess) { in TEST_F() argument
1862 TEST_F(UpdateAttempterTest, RollbackMetricsNotRollbackSuccess) { in TEST_F() argument
1873 TEST_F(UpdateAttempterTest, RollbackMetricsRollbackFailure) { in TEST_F() argument
1886 TEST_F(UpdateAttempterTest, RollbackMetricsNotRollbackFailure) { in TEST_F() argument
1899 TEST_F(UpdateAttempterTest, TimeToUpdateAppliedMetricFailure) { in TEST_F() argument
1906 TEST_F(UpdateAttempterTest, TimeToUpdateAppliedOnNonEnterprise) { in TEST_F() argument
1919 TEST_F(UpdateAttempterTest, in TEST_F() argument
1944 TEST_F(UpdateAttempterTest, in TEST_F() argument
1969 TEST_F(UpdateAttempterTest, ProcessingDoneUpdated) { in TEST_F() argument
1981 TEST_F(UpdateAttempterTest, ProcessingDoneUpdatedDlcFilter) { in TEST_F() argument
1998 TEST_F(UpdateAttempterTest, ProcessingDoneInstalled) { in TEST_F() argument
2010 TEST_F(UpdateAttempterTest, ProcessingDoneInstalledDlcFilter) { in TEST_F() argument
2027 TEST_F(UpdateAttempterTest, ProcessingDoneInstallReportingError) { in TEST_F() argument
2040 TEST_F(UpdateAttempterTest, ProcessingDoneNoUpdate) { in TEST_F() argument
2052 TEST_F(UpdateAttempterTest, ProcessingDoneNoInstall) { in TEST_F() argument
2065 TEST_F(UpdateAttempterTest, ProcessingDoneUpdateError) { in TEST_F() argument
2088 TEST_F(UpdateAttempterTest, ProcessingDoneInstallError) { in TEST_F() argument
2112 TEST_F(UpdateAttempterTest, QuickFixTokenWhenDeviceIsEnterpriseEnrolled) { in TEST_F() argument
2122 TEST_F(UpdateAttempterTest, ScheduleUpdateSpamHandlerTest) { in TEST_F() argument
2138 void UpdateAttempterTest::TestOnUpdateScheduled() { in TestOnUpdateScheduled()
2154 TEST_F(UpdateAttempterTest, OnUpdatesScheduledFailed) { in TEST_F() argument
2163 TEST_F(UpdateAttempterTest, OnUpdatesScheduledAskMeAgainLater) { in TEST_F() argument
2173 TEST_F(UpdateAttempterTest, OnUpdatesScheduledContinue) { in TEST_F() argument
2183 TEST_F(UpdateAttempterTest, OnUpdatesScheduledSucceededButUpdateDisabledFails) { in TEST_F() argument
2194 TEST_F(UpdateAttempterTest, OnUpdatesScheduledSucceeded) { in TEST_F() argument
2207 TEST_F(UpdateAttempterTest, IsEnterpriseRollbackInGetStatusDefault) { in TEST_F() argument
2213 TEST_F(UpdateAttempterTest, IsEnterpriseRollbackInGetStatusFalse) { in TEST_F() argument
2222 TEST_F(UpdateAttempterTest, IsEnterpriseRollbackInGetStatusTrue) { in TEST_F() argument
2231 TEST_F(UpdateAttempterTest, PowerwashInGetStatusDefault) { in TEST_F() argument
2237 TEST_F(UpdateAttempterTest, PowerwashInGetStatusTrueBecausePowerwashRequired) { in TEST_F() argument
2246 TEST_F(UpdateAttempterTest, PowerwashInGetStatusTrueBecauseRollback) { in TEST_F() argument
2255 TEST_F(UpdateAttempterTest, FutureEolTest) { in TEST_F() argument
2263 TEST_F(UpdateAttempterTest, PastEolTest) { in TEST_F() argument
2271 TEST_F(UpdateAttempterTest, MissingEolTest) { in TEST_F() argument
2277 TEST_F(UpdateAttempterTest, CalculateDlcParamsInstallTest) { in TEST_F() argument
2299 TEST_F(UpdateAttempterTest, CalculateDlcParamsNoPrefFilesTest) { in TEST_F() argument
2320 TEST_F(UpdateAttempterTest, CalculateDlcParamsNonParseableValuesTest) { in TEST_F() argument
2353 TEST_F(UpdateAttempterTest, CalculateDlcParamsValidValuesTest) { in TEST_F() argument
2385 TEST_F(UpdateAttempterTest, CalculateDlcParamsRemoveStaleMetadata) { in TEST_F() argument
2413 TEST_F(UpdateAttempterTest, SetDlcActiveValue) { in TEST_F() argument
2424 TEST_F(UpdateAttempterTest, SetDlcInactive) { in TEST_F() argument
2440 TEST_F(UpdateAttempterTest, GetSuccessfulDlcIds) { in TEST_F() argument
2449 TEST_F(UpdateAttempterTest, MoveToPrefs) { in TEST_F() argument