Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Unified Diff: chrome/browser/sync/test/integration/retry_verifier.cc

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/retry_verifier.cc
diff --git a/chrome/browser/sync/test/integration/retry_verifier.cc b/chrome/browser/sync/test/integration/retry_verifier.cc
index bddb9d1c741d786eb038bc67e9f45213259d2129..7b832d69e14b2b63fcf3935d767713bb588f333e 100644
--- a/chrome/browser/sync/test/integration/retry_verifier.cc
+++ b/chrome/browser/sync/test/integration/retry_verifier.cc
@@ -9,8 +9,8 @@
#include <algorithm>
#include "base/logging.h"
+#include "components/sync/engine/cycle/sync_cycle_snapshot.h"
#include "components/sync/engine/polling_constants.h"
-#include "components/sync/sessions/sync_session_snapshot.h"
namespace {
// Given the current delay calculate the minimum and maximum wait times for
@@ -81,8 +81,7 @@ RetryVerifier::~RetryVerifier() {
}
// Initializes the state for verification.
-void RetryVerifier::Initialize(
- const syncer::sessions::SyncSessionSnapshot& snap) {
+void RetryVerifier::Initialize(const syncer::SyncCycleSnapshot& snap) {
retry_count_ = 0;
last_sync_time_ = snap.sync_start_time();
FillDelayTable(delay_table_, kMaxRetry);
@@ -90,8 +89,7 @@ void RetryVerifier::Initialize(
success_ = false;
}
-void RetryVerifier::VerifyRetryInterval(
- const syncer::sessions::SyncSessionSnapshot& snap) {
+void RetryVerifier::VerifyRetryInterval(const syncer::SyncCycleSnapshot& snap) {
DCHECK(retry_count_ < kMaxRetry);
if (retry_count_ == 0) {
if (snap.sync_start_time() != last_sync_time_) {

Powered by Google App Engine
This is Rietveld 408576698