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

Unified Diff: sync/engine/sync_scheduler_unittest.cc

Issue 10454105: sync: Refactor per-datatype throttling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up and rebased Created 8 years, 7 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
Index: sync/engine/sync_scheduler_unittest.cc
diff --git a/sync/engine/sync_scheduler_unittest.cc b/sync/engine/sync_scheduler_unittest.cc
index e8bbd65d89cf327f34d5af6b5243b842073c6a7d..f6be8a114f0994f38b58fb9559673a59dabb6f7d 100644
--- a/sync/engine/sync_scheduler_unittest.cc
+++ b/sync/engine/sync_scheduler_unittest.cc
@@ -8,6 +8,7 @@
#include "base/memory/weak_ptr.h"
#include "base/message_loop.h"
#include "base/test/test_timeouts.h"
+#include "sync/engine/throttled_data_type_tracker.h"
#include "sync/engine/sync_scheduler.h"
#include "sync/engine/syncer.h"
#include "sync/sessions/test_util.h"
@@ -98,6 +99,7 @@ class SyncSchedulerTest : public testing::Test {
context_ = new SyncSessionContext(
connection_.get(), directory(), registrar_.get(),
&extensions_activity_monitor_,
+ &throttled_data_type_tracker_,
std::vector<SyncEngineEventListener*>(), NULL, NULL);
context_->set_notifications_enabled(true);
context_->set_account_name("Test");
@@ -202,6 +204,7 @@ class SyncSchedulerTest : public testing::Test {
MockDelayProvider* delay_;
scoped_ptr<FakeModelSafeWorkerRegistrar> registrar_;
FakeExtensionsActivityMonitor extensions_activity_monitor_;
+ ThrottledDataTypeTracker throttled_data_type_tracker_;
};
class BackoffTriggersSyncSchedulerTest : public SyncSchedulerTest {

Powered by Google App Engine
This is Rietveld 408576698