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

Unified Diff: components/sync/sessions_impl/test_util.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « components/sync/sessions_impl/test_util.h ('k') | components/sync/sync_android.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/sessions_impl/test_util.cc
diff --git a/sync/sessions/test_util.cc b/components/sync/sessions_impl/test_util.cc
similarity index 88%
rename from sync/sessions/test_util.cc
rename to components/sync/sessions_impl/test_util.cc
index 2b7fa0d9a23590e71ad5c2a6cd0d48fe7277acb0..7e8ef52957f02e3b69865ce944b54eb91342e75e 100644
--- a/sync/sessions/test_util.cc
+++ b/components/sync/sessions_impl/test_util.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/sessions/test_util.h"
+#include "components/sync/sessions_impl/test_util.h"
#include <map>
@@ -86,32 +86,29 @@ void SimulatePollSuccess(ModelTypeSet requested_types,
}
void SimulatePollFailed(ModelTypeSet requested_types,
- sessions::SyncSession* session) {
+ sessions::SyncSession* session) {
session->mutable_status_controller()->set_last_download_updates_result(
SERVER_RETURN_TRANSIENT_ERROR);
}
-void SimulateThrottledImpl(
- sessions::SyncSession* session,
- const base::TimeDelta& delta) {
+void SimulateThrottledImpl(sessions::SyncSession* session,
+ const base::TimeDelta& delta) {
session->mutable_status_controller()->set_last_download_updates_result(
SERVER_RETURN_THROTTLED);
session->delegate()->OnThrottled(delta);
}
-void SimulateTypesThrottledImpl(
- sessions::SyncSession* session,
- ModelTypeSet types,
- const base::TimeDelta& delta) {
+void SimulateTypesThrottledImpl(sessions::SyncSession* session,
+ ModelTypeSet types,
+ const base::TimeDelta& delta) {
session->mutable_status_controller()->set_last_download_updates_result(
SERVER_RETURN_THROTTLED);
session->delegate()->OnTypesThrottled(types, delta);
}
-void SimulatePollIntervalUpdateImpl(
- ModelTypeSet requested_types,
- sessions::SyncSession* session,
- const base::TimeDelta& new_poll) {
+void SimulatePollIntervalUpdateImpl(ModelTypeSet requested_types,
+ sessions::SyncSession* session,
+ const base::TimeDelta& new_poll) {
SimulatePollSuccess(requested_types, session);
session->delegate()->OnReceivedLongPollIntervalUpdate(new_poll);
}
« no previous file with comments | « components/sync/sessions_impl/test_util.h ('k') | components/sync/sync_android.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698