Lines Matching refs:prefs
118 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
119 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
120 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST_F()
122 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST_F()
124 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, 0)).Times(AtLeast(1)); in TEST_F()
125 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST_F()
126 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST_F()
128 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateTimestampStart, _)) in TEST_F()
130 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateDurationUptime, _)) in TEST_F()
132 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST_F()
134 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST_F()
136 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttpPeer, 0)) in TEST_F()
138 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 0)).Times(AtLeast(1)); in TEST_F()
161 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
162 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
163 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST_F()
165 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST_F()
167 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, 0)).Times(AtLeast(1)); in TEST_F()
168 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST_F()
169 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST_F()
171 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateTimestampStart, _)) in TEST_F()
173 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateDurationUptime, _)) in TEST_F()
175 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST_F()
177 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST_F()
179 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttpPeer, 0)) in TEST_F()
181 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 0)).Times(AtLeast(1)); in TEST_F()
213 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
214 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
215 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST_F()
217 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST_F()
219 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, 0)).Times(AtLeast(1)); in TEST_F()
220 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST_F()
221 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST_F()
223 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST_F()
225 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST_F()
227 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttpPeer, 0)) in TEST_F()
229 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 0)).Times(AtLeast(1)); in TEST_F()
257 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
260 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
262 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST_F()
264 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 1)) in TEST_F()
266 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST_F()
268 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 1)) in TEST_F()
270 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, _)).Times(AtLeast(2)); in TEST_F()
273 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, _)).Times(AtLeast(1)); in TEST_F()
276 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST_F()
277 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 1)).Times(AtLeast(1)); in TEST_F()
281 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST_F()
360 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
362 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
363 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST_F()
365 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 1)) in TEST_F()
367 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 2)) in TEST_F()
370 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST_F()
372 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 1)) in TEST_F()
374 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 2)) in TEST_F()
377 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, _)).Times(AtLeast(4)); in TEST_F()
379 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(4)); in TEST_F()
380 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 1)).Times(AtLeast(2)); in TEST_F()
382 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST_F()
384 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 1)) in TEST_F()
386 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 2)) in TEST_F()
389 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateTimestampStart, _)) in TEST_F()
391 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateDurationUptime, _)) in TEST_F()
394 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST_F()
396 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST_F()
398 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttpPeer, 0)) in TEST_F()
400 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, progress_bytes)) in TEST_F()
402 EXPECT_CALL(*prefs, SetInt64(kTotalBytesDownloadedFromHttp, progress_bytes)) in TEST_F()
404 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 0)).Times(AtLeast(1)); in TEST_F()
506 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
508 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
509 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST_F()
511 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 1)) in TEST_F()
514 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST_F()
516 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 1)) in TEST_F()
519 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, _)).Times(AtLeast(2)); in TEST_F()
521 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST_F()
522 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST_F()
546 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
548 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
549 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST_F()
551 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 1)) in TEST_F()
555 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST_F()
558 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, _)).Times(1); in TEST_F()
560 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST_F()
561 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST_F()
601 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
602 EXPECT_CALL(*prefs, Exists(_)).WillRepeatedly(Return(true)); in TEST_F()
603 EXPECT_CALL(*prefs, GetInt64(_, _)).Times(AtLeast(1)); in TEST_F()
604 EXPECT_CALL(*prefs, GetInt64(kPrefsPayloadAttemptNumber, _)) in TEST_F()
606 EXPECT_CALL(*prefs, GetInt64(kPrefsFullPayloadAttemptNumber, _)) in TEST_F()
608 EXPECT_CALL(*prefs, GetInt64(kPrefsCurrentUrlIndex, _)) in TEST_F()
610 EXPECT_CALL(*prefs, GetInt64(kPrefsCurrentUrlFailureCount, _)) in TEST_F()
612 EXPECT_CALL(*prefs, GetInt64(kPrefsUrlSwitchCount, _)).Times(AtLeast(1)); in TEST_F()
950 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
951 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AtLeast(0)); in TEST_F()
952 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 1)).Times(AtLeast(1)); in TEST_F()
1151 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F() local
1156 EXPECT_CALL(*prefs, Exists(_)).Times(0); in TEST_F()
1157 EXPECT_CALL(*prefs, SetString(_, _)).Times(0); in TEST_F()
1158 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(0); in TEST_F()
1159 EXPECT_CALL(*prefs, SetBoolean(_, _)).Times(0); in TEST_F()
1160 EXPECT_CALL(*prefs, GetString(_, _)).Times(0); in TEST_F()
1161 EXPECT_CALL(*prefs, GetInt64(_, _)).Times(0); in TEST_F()
1162 EXPECT_CALL(*prefs, GetBoolean(_, _)).Times(0); in TEST_F()
1163 EXPECT_CALL(*prefs, GetBoolean(kPrefsAttemptInProgress, _)); in TEST_F()