blob: 7c7b5512156f3150a86e79d3527bb5639c7a39da [file] [log] [blame]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync/test/mock_nudge_handler.h"
namespace syncer {
MockNudgeHandler::MockNudgeHandler()
: num_initial_nudges_(0), num_commit_nudges_(0) {}
MockNudgeHandler::~MockNudgeHandler() = default;
void MockNudgeHandler::NudgeForInitialDownload(ModelType type) {
num_initial_nudges_++;
}
void MockNudgeHandler::NudgeForCommit(ModelType type) {
num_commit_nudges_++;
}
void MockNudgeHandler::SetHasPendingInvalidations(
ModelType type,
bool has_pending_invalidations) {}
int MockNudgeHandler::GetNumInitialDownloadNudges() const {
return num_initial_nudges_;
}
int MockNudgeHandler::GetNumCommitNudges() const {
return num_commit_nudges_;
}
void MockNudgeHandler::ClearCounters() {
num_initial_nudges_ = 0;
num_commit_nudges_ = 0;
}
} // namespace syncer