Lines Matching refs:prefs
43 #include "update_engine/common/prefs.h"
168 // OmahaRequestAction. |prefs| may be null, in which case a local MockPrefs
1155 NiceMock<MockPrefs> prefs;
1156 fake_system_state_.set_prefs(&prefs);
1158 EXPECT_CALL(prefs, GetString(kPrefsPreviousVersion, _))
1162 EXPECT_CALL(prefs, SetString(kPrefsPreviousVersion, _)).Times(0);
1356 NiceMock<MockPrefs> prefs;
1357 fake_system_state_.set_prefs(&prefs);
1358 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _))
1360 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber());
1366 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _))
1368 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _))
1370 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _))
1405 NiceMock<MockPrefs> prefs;
1406 fake_system_state_.set_prefs(&prefs);
1407 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _))
1409 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber());
1413 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _))
1415 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _))
1417 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _))
1437 NiceMock<MockPrefs> prefs;
1438 fake_system_state_.set_prefs(&prefs);
1439 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _))
1441 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber());
1445 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _))
1447 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _))
1449 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _))
1469 NiceMock<MockPrefs> prefs;
1470 fake_system_state_.set_prefs(&prefs);
1471 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _))
1473 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber());
1476 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _))
1478 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _))
1480 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _))
1484 EXPECT_CALL(prefs, SetInt64(kPrefsLastActivePingDay, _))
1486 EXPECT_CALL(prefs, SetInt64(kPrefsLastRollCallPingDay, _))
1506 NiceMock<MockPrefs> prefs;
1507 fake_system_state_.set_prefs(&prefs);
1509 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _))
1511 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _))
1513 EXPECT_CALL(prefs, SetInt64(kPrefsLastActivePingDay, _)).Times(0);
1514 EXPECT_CALL(prefs, SetInt64(kPrefsLastRollCallPingDay, _)).Times(0);
1531 NiceMock<MockPrefs> prefs;
1532 fake_system_state_.set_prefs(&prefs);
1533 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _))
1535 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber());
1538 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _))
1540 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _))
1542 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _))
1544 EXPECT_CALL(prefs, SetInt64(kPrefsLastActivePingDay, _))
1546 EXPECT_CALL(prefs, SetInt64(kPrefsLastRollCallPingDay, _))
1576 NiceMock<MockPrefs> prefs;
1577 fake_system_state_.set_prefs(&prefs);
1578 EXPECT_CALL(prefs, GetInt64(_, _)).Times(AnyNumber());
1579 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber());
1580 EXPECT_CALL(prefs, SetInt64(kPrefsLastActivePingDay,
1583 EXPECT_CALL(prefs, SetInt64(kPrefsLastRollCallPingDay,
1603 NiceMock<MockPrefs> prefs;
1604 fake_system_state_.set_prefs(&prefs);
1605 EXPECT_CALL(prefs, GetInt64(_, _)).Times(AnyNumber());
1606 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber());
1607 EXPECT_CALL(prefs, SetInt64(kPrefsLastActivePingDay, _)).Times(0);
1608 EXPECT_CALL(prefs, SetInt64(kPrefsLastRollCallPingDay, _)).Times(0);
1626 NiceMock<MockPrefs> prefs;
1627 fake_system_state_.set_prefs(&prefs);
1628 EXPECT_CALL(prefs, GetInt64(_, _)).Times(AnyNumber());
1629 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber());
1630 EXPECT_CALL(prefs, SetInt64(kPrefsLastActivePingDay, _)).Times(0);
1631 EXPECT_CALL(prefs, SetInt64(kPrefsLastRollCallPingDay, _)).Times(0);
1785 NiceMock<MockPrefs> prefs;
1786 fake_system_state_.set_prefs(&prefs);
1833 NiceMock<MockPrefs> prefs;
1834 fake_system_state_.set_prefs(&prefs);
2126 // If there is no prefs and OOBE is not complete, we should not
2135 // prefs. However, first try with an invalid date and check we do
2157 // Now that we have a valid date in prefs, check that we keep using
2160 // there's a prefs file, we should still get 14.
2162 // Set a valid date in the prefs first.
2173 // If we delete the prefs file, we should get 28 days.