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

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

Issue 11421125: Implement polling part of DriveFileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/NotifyRemoteChangeAvailable/NotifyRemoteChangeQueueUpdated/ Created 8 years 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
Index: chrome/browser/sync_file_system/sync_file_system_service_unittest.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service_unittest.cc b/chrome/browser/sync_file_system/sync_file_system_service_unittest.cc
index 7cf12a782063e42e3dfaaf328471c7a59732361d..895ed169be9e2c3ee1d00be4ba2563da523f33fa 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service_unittest.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <vector>
+
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/run_loop.h"
@@ -484,7 +486,7 @@ TEST_F(SyncFileSystemServiceTest, SimpleRemoteSyncFlow) {
.WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit));
// This should trigger a remote sync.
- mock_remote_service()->NotifyRemoteChangeAvailable(1);
+ mock_remote_service()->NotifyRemoteChangeQueueUpdated(1);
run_loop.Run();
}
@@ -530,7 +532,7 @@ TEST_F(SyncFileSystemServiceTest, SimpleSyncFlowWithFileBusy) {
.Times(AnyNumber());
// This should trigger a remote sync.
- mock_remote_service()->NotifyRemoteChangeAvailable(1);
+ mock_remote_service()->NotifyRemoteChangeQueueUpdated(1);
// Start a local operation on the same file (to make it BUSY).
base::WaitableEvent event(false, false);
@@ -541,7 +543,7 @@ TEST_F(SyncFileSystemServiceTest, SimpleSyncFlowWithFileBusy) {
run_loop.Run();
- mock_remote_service()->NotifyRemoteChangeAvailable(0);
+ mock_remote_service()->NotifyRemoteChangeQueueUpdated(0);
event.Wait();
}

Powered by Google App Engine
This is Rietveld 408576698