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

Unified Diff: chrome/browser/sync/sessions/test_util.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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 | « chrome/browser/sync/sessions/test_util.h ('k') | chrome/browser/sync/sync_js_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sessions/test_util.cc
diff --git a/chrome/browser/sync/sessions/test_util.cc b/chrome/browser/sync/sessions/test_util.cc
deleted file mode 100644
index fdd553770dcb624ec1b924f04e89bd8e5830e511..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/sessions/test_util.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/sync/sessions/test_util.h"
-
-namespace browser_sync {
-namespace sessions {
-namespace test_util {
-
-void SimulateHasMoreToSync(sessions::SyncSession* session,
- SyncerStep begin, SyncerStep end) {
- session->mutable_status_controller()->update_conflicts_resolved(true);
- ASSERT_TRUE(session->HasMoreToSync());
-}
-
-void SimulateDownloadUpdatesFailed(sessions::SyncSession* session,
- SyncerStep begin, SyncerStep end) {
- session->mutable_status_controller()->set_last_download_updates_result(
- SERVER_RETURN_TRANSIENT_ERROR);
-}
-
-void SimulateCommitFailed(sessions::SyncSession* session,
- SyncerStep begin, SyncerStep end) {
- session->mutable_status_controller()->set_last_post_commit_result(
- SERVER_RETURN_TRANSIENT_ERROR);
-}
-
-void SimulateSuccess(sessions::SyncSession* session,
- SyncerStep begin, SyncerStep end) {
- if (session->HasMoreToSync()) {
- ADD_FAILURE() << "Shouldn't have more to sync";
- }
- ASSERT_EQ(0U, session->status_controller().num_server_changes_remaining());
- ASSERT_EQ(0U, session->status_controller().unsynced_handles().size());
-}
-
-void SimulateThrottledImpl(sessions::SyncSession* session,
- const base::TimeDelta& delta) {
- session->delegate()->OnSilencedUntil(base::TimeTicks::Now() + delta);
-}
-
-void SimulatePollIntervalUpdateImpl(sessions::SyncSession* session,
- const base::TimeDelta& new_poll) {
- session->delegate()->OnReceivedLongPollIntervalUpdate(new_poll);
-}
-
-void SimulateSessionsCommitDelayUpdateImpl(sessions::SyncSession* session,
- const base::TimeDelta& new_delay) {
- session->delegate()->OnReceivedSessionsCommitDelay(new_delay);
-}
-
-} // namespace test_util
-} // namespace sessions
-} // namespace browser_sync
« no previous file with comments | « chrome/browser/sync/sessions/test_util.h ('k') | chrome/browser/sync/sync_js_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698