This source file includes following definitions.
- last_retrieved_state_
- GetLastRetrievedState
- OnInvalidatorStateChange
#include "sync/notifier/invalidator_test_template.h"
namespace syncer {
namespace internal {
BoundFakeInvalidationHandler::BoundFakeInvalidationHandler(
const Invalidator& invalidator)
: invalidator_(invalidator),
last_retrieved_state_(DEFAULT_INVALIDATION_ERROR) {}
BoundFakeInvalidationHandler::~BoundFakeInvalidationHandler() {}
InvalidatorState BoundFakeInvalidationHandler::GetLastRetrievedState() const {
return last_retrieved_state_;
}
void BoundFakeInvalidationHandler::OnInvalidatorStateChange(
InvalidatorState state) {
FakeInvalidationHandler::OnInvalidatorStateChange(state);
last_retrieved_state_ = invalidator_.GetInvalidatorState();
}
}
}