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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_service.cc

Issue 417443002: [SyncFS] Inhibit change report throttling on test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | 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/local/local_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_service.cc b/chrome/browser/sync_file_system/local/local_file_sync_service.cc
index f49d0007d537bfdc9de6c5f434dfb4716d157178..a5cafcb7cba6323ebbe778012cc2896789936005 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/local/local_file_sync_service.cc
@@ -113,7 +113,10 @@ scoped_ptr<LocalFileSyncService> LocalFileSyncService::Create(
scoped_ptr<LocalFileSyncService> LocalFileSyncService::CreateForTesting(
Profile* profile,
leveldb::Env* env) {
- return make_scoped_ptr(new LocalFileSyncService(profile, env));
+ scoped_ptr<LocalFileSyncService> sync_service(
+ new LocalFileSyncService(profile, env));
+ sync_service->sync_context_->set_mock_notify_changes_duration_in_sec(0);
+ return sync_service.Pass();
}
LocalFileSyncService::~LocalFileSyncService() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698