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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc

Issue 12210109: Call batch/incremental fetch with more strict conditions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fixes Created 7 years, 10 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_file_system/drive_file_sync_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc b/chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc
index 289823e284ed7e096a24de18a99d43de9e5b83b3..9776776aa45f6c56f169b2e582a4cb32d663f0d0 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc
@@ -36,6 +36,7 @@
using ::testing::AnyNumber;
using ::testing::AtLeast;
using ::testing::InSequence;
+using ::testing::Sequence;
using ::testing::StrictMock;
using ::testing::_;
@@ -575,8 +576,11 @@ TEST_F(DriveFileSyncServiceTest, BatchSyncOnInitialization) {
metadata_store()->AddBatchSyncOrigin(kOrigin2, kDirectoryResourceId2);
metadata_store()->MoveBatchSyncOriginToIncremental(kOrigin2);
+ Sequence change_queue_seq;
+ EXPECT_CALL(*mock_remote_observer(), OnRemoteChangeQueueUpdated(0))
+ .InSequence(change_queue_seq);
EXPECT_CALL(*mock_remote_observer(), OnRemoteChangeQueueUpdated(3))
- .Times(AnyNumber());
+ .InSequence(change_queue_seq);
InSequence sequence;
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698