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

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: Comments Created 8 years, 6 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 | « sync/engine/sync_scheduler.cc ('k') | sync/engine/sync_scheduler_whitebox_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/sync_scheduler_unittest.cc
diff --git a/sync/engine/sync_scheduler_unittest.cc b/sync/engine/sync_scheduler_unittest.cc
index c5de28ef7e78595148c055e97b816112d36725ce..eb6dbc66386224807470941ebae2625dfdb847fc 100644
--- a/sync/engine/sync_scheduler_unittest.cc
+++ b/sync/engine/sync_scheduler_unittest.cc
@@ -10,6 +10,7 @@
#include "base/test/test_timeouts.h"
#include "sync/engine/sync_scheduler.h"
#include "sync/engine/syncer.h"
+#include "sync/engine/throttled_data_type_tracker.h"
#include "sync/sessions/test_util.h"
#include "sync/test/engine/fake_model_worker.h"
#include "sync/test/engine/mock_connection_manager.h"
@@ -106,9 +107,10 @@ class SyncSchedulerTest : public testing::Test {
connection_.reset(new MockConnectionManager(directory()));
connection_->SetServerReachable();
+ throttled_data_type_tracker_.reset(new ThrottledDataTypeTracker(NULL));
context_.reset(new SyncSessionContext(
connection_.get(), directory(), routing_info, workers,
- &extensions_activity_monitor_,
+ &extensions_activity_monitor_, throttled_data_type_tracker_.get(),
std::vector<SyncEngineEventListener*>(), NULL, NULL));
context_->set_notifications_enabled(true);
context_->set_account_name("Test");
@@ -213,6 +215,7 @@ class SyncSchedulerTest : public testing::Test {
MockDelayProvider* delay_;
std::vector<scoped_refptr<FakeModelWorker> > workers_;
FakeExtensionsActivityMonitor extensions_activity_monitor_;
+ scoped_ptr<ThrottledDataTypeTracker> throttled_data_type_tracker_;
};
class BackoffTriggersSyncSchedulerTest : public SyncSchedulerTest {
« no previous file with comments | « sync/engine/sync_scheduler.cc ('k') | sync/engine/sync_scheduler_whitebox_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698