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

Unified Diff: chrome/test/sync/engine/syncer_command_test.h

Issue 7604019: [Sync] Add client-side plumbing for server control of sessions commit delay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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: chrome/test/sync/engine/syncer_command_test.h
diff --git a/chrome/test/sync/engine/syncer_command_test.h b/chrome/test/sync/engine/syncer_command_test.h
index 34da2313e17bc2062f3fd4606d401843d3190669..c29c0dcee0226c6440b730b843c19c062b803aa9 100644
--- a/chrome/test/sync/engine/syncer_command_test.h
+++ b/chrome/test/sync/engine/syncer_command_test.h
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include "base/compiler_specific.h"
#include "chrome/browser/sync/engine/model_safe_worker.h"
#include "chrome/browser/sync/sessions/sync_session.h"
#include "chrome/browser/sync/sessions/sync_session_context.h"
@@ -32,35 +33,40 @@ class SyncerCommandTestWithParam : public testing::TestWithParam<T>,
};
// SyncSession::Delegate implementation.
- virtual void OnSilencedUntil(const base::TimeTicks& silenced_until) {
+ virtual void OnSilencedUntil(
+ const base::TimeTicks& silenced_until) OVERRIDE {
FAIL() << "Should not get silenced.";
}
- virtual bool IsSyncingCurrentlySilenced() {
+ virtual bool IsSyncingCurrentlySilenced() OVERRIDE {
ADD_FAILURE() << "No requests for silenced state should be made.";
return false;
}
virtual void OnReceivedLongPollIntervalUpdate(
- const base::TimeDelta& new_interval) {
+ const base::TimeDelta& new_interval) OVERRIDE {
FAIL() << "Should not get poll interval update.";
}
virtual void OnReceivedShortPollIntervalUpdate(
- const base::TimeDelta& new_interval) {
+ const base::TimeDelta& new_interval) OVERRIDE {
FAIL() << "Should not get poll interval update.";
}
- virtual void OnShouldStopSyncingPermanently() {
+ virtual void OnReceivedSessionsCommitDelay(
+ const base::TimeDelta& new_delay) OVERRIDE {
+ FAIL() << "Should not get sessions commit delay.";
+ }
+ virtual void OnShouldStopSyncingPermanently() OVERRIDE {
FAIL() << "Shouldn't be forced to stop syncing.";
}
- virtual void SignalUpdatedToken(const std::string& token) {
+ virtual void SignalUpdatedToken(const std::string& token) OVERRIDE {
FAIL() << "Should never update token.";
}
// ModelSafeWorkerRegistrar implementation.
- virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) {
+ virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE {
std::vector<scoped_refptr<ModelSafeWorker> >::iterator it;
for (it = workers_.begin(); it != workers_.end(); ++it)
out->push_back(*it);
}
- virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) {
+ virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE {
ModelSafeRoutingInfo copy(routing_info_);
out->swap(copy);
}
« chrome/browser/sync/engine/sync_scheduler.cc ('K') | « chrome/browser/sync/sessions/test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698