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); |
} |