| Index: sync/sessions/sync_session_unittest.cc
|
| diff --git a/sync/sessions/sync_session_unittest.cc b/sync/sessions/sync_session_unittest.cc
|
| index 48524a4167476da834bf51278bf8692f479030f5..b9eceee5c302bd5e6214dd63febc6e581c9fbdbf 100644
|
| --- a/sync/sessions/sync_session_unittest.cc
|
| +++ b/sync/sessions/sync_session_unittest.cc
|
| @@ -212,94 +212,6 @@ TEST_F(SyncSessionTest, MoreToSyncIfUnsyncedGreaterThanCommitted) {
|
| EXPECT_TRUE(session_->HasMoreToSync());
|
| }
|
|
|
| -TEST_F(SyncSessionTest, MoreToDownloadIfDownloadFailed) {
|
| - status()->set_updates_request_types(ParamsMeaningAllEnabledTypes());
|
| -
|
| - // When DownloadUpdatesCommand fails, these should be false.
|
| - EXPECT_FALSE(status()->ServerSaysNothingMoreToDownload());
|
| - EXPECT_FALSE(status()->download_updates_succeeded());
|
| -
|
| - // Download updates has its own loop in the syncer; it shouldn't factor
|
| - // into HasMoreToSync.
|
| - EXPECT_FALSE(session_->HasMoreToSync());
|
| -}
|
| -
|
| -TEST_F(SyncSessionTest, MoreToDownloadIfGotChangesRemaining) {
|
| - status()->set_updates_request_types(ParamsMeaningAllEnabledTypes());
|
| -
|
| - // When the server returns changes_remaining, that means there's
|
| - // more to download.
|
| - status()->mutable_updates_response()->mutable_get_updates()
|
| - ->set_changes_remaining(1000L);
|
| - EXPECT_FALSE(status()->ServerSaysNothingMoreToDownload());
|
| - EXPECT_TRUE(status()->download_updates_succeeded());
|
| -
|
| - // Download updates has its own loop in the syncer; it shouldn't factor
|
| - // into HasMoreToSync.
|
| - EXPECT_FALSE(session_->HasMoreToSync());
|
| -}
|
| -
|
| -TEST_F(SyncSessionTest, MoreToDownloadIfGotNoChangesRemaining) {
|
| - status()->set_updates_request_types(ParamsMeaningAllEnabledTypes());
|
| -
|
| - // When the server returns a timestamp, that means we're up to date.
|
| - status()->mutable_updates_response()->mutable_get_updates()
|
| - ->set_changes_remaining(0);
|
| - EXPECT_TRUE(status()->ServerSaysNothingMoreToDownload());
|
| - EXPECT_TRUE(status()->download_updates_succeeded());
|
| -
|
| - // Download updates has its own loop in the syncer; it shouldn't factor
|
| - // into HasMoreToSync.
|
| - EXPECT_FALSE(session_->HasMoreToSync());
|
| -}
|
| -
|
| -TEST_F(SyncSessionTest, MoreToDownloadIfGotNoChangesRemainingForSubset) {
|
| - status()->set_updates_request_types(ParamsMeaningJustOneEnabledType());
|
| -
|
| - // When the server returns a timestamp, that means we're up to date for that
|
| - // type. But there may still be more to download if there are other
|
| - // datatypes that we didn't request on this go-round.
|
| - status()->mutable_updates_response()->mutable_get_updates()
|
| - ->set_changes_remaining(0);
|
| -
|
| - EXPECT_TRUE(status()->ServerSaysNothingMoreToDownload());
|
| - EXPECT_TRUE(status()->download_updates_succeeded());
|
| -
|
| - // Download updates has its own loop in the syncer; it shouldn't factor
|
| - // into HasMoreToSync.
|
| - EXPECT_FALSE(session_->HasMoreToSync());
|
| -}
|
| -
|
| -TEST_F(SyncSessionTest, MoreToDownloadIfGotChangesRemainingAndEntries) {
|
| - status()->set_updates_request_types(ParamsMeaningAllEnabledTypes());
|
| - // The actual entry count should not factor into the HasMoreToSync
|
| - // determination.
|
| - status()->mutable_updates_response()->mutable_get_updates()->add_entries();
|
| - status()->mutable_updates_response()->mutable_get_updates()
|
| - ->set_changes_remaining(1000000L);;
|
| - EXPECT_FALSE(status()->ServerSaysNothingMoreToDownload());
|
| - EXPECT_TRUE(status()->download_updates_succeeded());
|
| -
|
| - // Download updates has its own loop in the syncer; it shouldn't factor
|
| - // into HasMoreToSync.
|
| - EXPECT_FALSE(session_->HasMoreToSync());
|
| -}
|
| -
|
| -TEST_F(SyncSessionTest, MoreToDownloadIfGotNoChangesRemainingAndEntries) {
|
| - status()->set_updates_request_types(ParamsMeaningAllEnabledTypes());
|
| - // The actual entry count should not factor into the HasMoreToSync
|
| - // determination.
|
| - status()->mutable_updates_response()->mutable_get_updates()->add_entries();
|
| - status()->mutable_updates_response()->mutable_get_updates()
|
| - ->set_changes_remaining(0);
|
| - EXPECT_TRUE(status()->ServerSaysNothingMoreToDownload());
|
| - EXPECT_TRUE(status()->download_updates_succeeded());
|
| -
|
| - // Download updates has its own loop in the syncer; it shouldn't factor
|
| - // into HasMoreToSync.
|
| - EXPECT_FALSE(session_->HasMoreToSync());
|
| -}
|
| -
|
| TEST_F(SyncSessionTest, MoreToSyncIfConflictsResolved) {
|
| // Conflict resolution happens after get updates and commit,
|
| // so we need to loop back and get updates / commit again now
|
|
|