• Home
  • Raw
  • Download

Lines Matching refs:prefs

111   NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs();  in TEST()  local
112 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST()
113 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST()
115 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST()
117 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, 0)).Times(AtLeast(1)); in TEST()
118 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST()
119 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST()
121 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateTimestampStart, _)) in TEST()
123 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateDurationUptime, _)) in TEST()
125 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST()
127 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST()
129 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttpPeer, 0)) in TEST()
131 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 0)).Times(AtLeast(1)); in TEST()
154 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); in TEST() local
155 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST()
156 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST()
158 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST()
160 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, 0)).Times(AtLeast(1)); in TEST()
161 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST()
162 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST()
164 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateTimestampStart, _)) in TEST()
166 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateDurationUptime, _)) in TEST()
168 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST()
170 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST()
172 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttpPeer, 0)) in TEST()
174 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 0)).Times(AtLeast(1)); in TEST()
206 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); in TEST() local
207 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST()
208 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST()
210 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST()
212 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, 0)).Times(AtLeast(1)); in TEST()
213 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST()
214 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST()
216 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST()
218 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST()
220 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttpPeer, 0)) in TEST()
222 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 0)).Times(AtLeast(1)); in TEST()
250 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); in TEST() local
253 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST()
255 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST()
257 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 1)) in TEST()
259 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST()
261 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 1)) in TEST()
263 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, _)).Times(AtLeast(2)); in TEST()
266 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, _)).Times(AtLeast(1)); in TEST()
269 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST()
270 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 1)).Times(AtLeast(1)); in TEST()
274 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST()
354 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); in TEST() local
356 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST()
357 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST()
359 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 1)) in TEST()
361 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 2)) in TEST()
364 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST()
366 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 1)) in TEST()
368 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 2)) in TEST()
371 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, _)).Times(AtLeast(4)); in TEST()
373 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(4)); in TEST()
374 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 1)).Times(AtLeast(2)); in TEST()
376 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST()
378 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 1)) in TEST()
380 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 2)) in TEST()
383 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateTimestampStart, _)) in TEST()
385 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateDurationUptime, _)) in TEST()
388 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST()
390 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST()
392 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttpPeer, 0)) in TEST()
394 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, progress_bytes)) in TEST()
396 EXPECT_CALL(*prefs, SetInt64(kTotalBytesDownloadedFromHttp, progress_bytes)) in TEST()
398 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 0)).Times(AtLeast(1)); in TEST()
499 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); in TEST() local
501 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST()
502 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST()
504 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 1)) in TEST()
507 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST()
509 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 1)) in TEST()
512 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, _)).Times(AtLeast(2)); in TEST()
514 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST()
515 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST()
538 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); in TEST() local
540 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST()
541 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST()
543 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 1)) in TEST()
547 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST()
550 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, _)).Times(1); in TEST()
552 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST()
553 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST()
954 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); in TEST() local
955 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AtLeast(0)); in TEST()
956 EXPECT_CALL(*prefs, SetInt64(kPrefsNumReboots, 1)).Times(AtLeast(1)); in TEST()
1162 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); in TEST() local
1167 EXPECT_CALL(*prefs, Exists(_)).Times(0); in TEST()
1168 EXPECT_CALL(*prefs, SetString(_, _)).Times(0); in TEST()
1169 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(0); in TEST()
1170 EXPECT_CALL(*prefs, SetBoolean(_, _)).Times(0); in TEST()
1171 EXPECT_CALL(*prefs, GetString(_, _)).Times(0); in TEST()
1172 EXPECT_CALL(*prefs, GetInt64(_, _)).Times(0); in TEST()
1173 EXPECT_CALL(*prefs, GetBoolean(_, _)).Times(0); in TEST()
1174 EXPECT_CALL(*prefs, GetBoolean(kPrefsAttemptInProgress, _)); in TEST()