| 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
|
|
|