Commit 4f5e5f1b authored by Sky Malice's avatar Sky Malice Committed by Commit Bot

Remove dead SimulateSessionsCommitDelayUpdateImpl.

Bug: 
Change-Id: Id0b90f07d3be8355a29063519a95c1f6ca5e710a
Reviewed-on: https://chromium-review.googlesource.com/691152Reviewed-by: default avatarPatrick Noland <pnoland@google.com>
Commit-Queue: Sky Malice <skym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505385}
parent bc6a5226
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
#include "components/sync/engine_impl/cycle/test_util.h" #include "components/sync/engine_impl/cycle/test_util.h"
#include <map>
namespace syncer { namespace syncer {
namespace test_util { namespace test_util {
...@@ -113,16 +111,6 @@ void SimulatePollIntervalUpdateImpl(ModelTypeSet requested_types, ...@@ -113,16 +111,6 @@ void SimulatePollIntervalUpdateImpl(ModelTypeSet requested_types,
cycle->delegate()->OnReceivedLongPollIntervalUpdate(new_poll); cycle->delegate()->OnReceivedLongPollIntervalUpdate(new_poll);
} }
void SimulateSessionsCommitDelayUpdateImpl(ModelTypeSet requested_types,
NudgeTracker* nudge_tracker,
SyncCycle* cycle,
const base::TimeDelta& new_delay) {
SimulateNormalSuccess(requested_types, nudge_tracker, cycle);
std::map<ModelType, base::TimeDelta> delay_map;
delay_map[SESSIONS] = new_delay;
cycle->delegate()->OnReceivedCustomNudgeDelays(delay_map);
}
void SimulateGuRetryDelayCommandImpl(SyncCycle* cycle, base::TimeDelta delay) { void SimulateGuRetryDelayCommandImpl(SyncCycle* cycle, base::TimeDelta delay) {
cycle->mutable_status_controller()->set_last_download_updates_result( cycle->mutable_status_controller()->set_last_download_updates_result(
SYNCER_OK); SYNCER_OK);
......
...@@ -66,12 +66,6 @@ void SimulatePollIntervalUpdateImpl(ModelTypeSet requested_types, ...@@ -66,12 +66,6 @@ void SimulatePollIntervalUpdateImpl(ModelTypeSet requested_types,
SyncCycle* cycle, SyncCycle* cycle,
const base::TimeDelta& new_poll); const base::TimeDelta& new_poll);
// Works with normal cycles.
void SimulateSessionsCommitDelayUpdateImpl(ModelTypeSet requested_types,
NudgeTracker* nudge_tracker,
SyncCycle* cycle,
const base::TimeDelta& new_delay);
ACTION_P(SimulateThrottled, throttle) { ACTION_P(SimulateThrottled, throttle) {
SimulateThrottledImpl(arg0, throttle); SimulateThrottledImpl(arg0, throttle);
} }
...@@ -88,10 +82,6 @@ ACTION_P(SimulatePollIntervalUpdate, poll) { ...@@ -88,10 +82,6 @@ ACTION_P(SimulatePollIntervalUpdate, poll) {
SimulatePollIntervalUpdateImpl(arg0, arg1, poll); SimulatePollIntervalUpdateImpl(arg0, arg1, poll);
} }
ACTION_P(SimulateSessionsCommitDelayUpdate, poll) {
SimulateSessionsCommitDelayUpdateImpl(arg0, arg1, arg2, poll);
}
ACTION_P(SimulateGuRetryDelayCommand, delay) { ACTION_P(SimulateGuRetryDelayCommand, delay) {
SimulateGuRetryDelayCommandImpl(arg0, delay); SimulateGuRetryDelayCommandImpl(arg0, delay);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment