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