This source file includes following definitions.
- group_
- RegisterForLoopDestruction
- DoWorkAndWaitUntilDoneImpl
- GetModelSafeGroup
#include "sync/test/engine/fake_model_worker.h"
namespace syncer {
FakeModelWorker::FakeModelWorker(ModelSafeGroup group)
: ModelSafeWorker(NULL),
group_(group) {}
FakeModelWorker::~FakeModelWorker() {
DCHECK(CalledOnValidThread());
}
void FakeModelWorker::RegisterForLoopDestruction() {
NOTREACHED();
}
SyncerError FakeModelWorker::DoWorkAndWaitUntilDoneImpl(
const WorkCallback& work) {
DCHECK(CalledOnValidThread());
return work.Run();
}
ModelSafeGroup FakeModelWorker::GetModelSafeGroup() {
DCHECK(CalledOnValidThread());
return group_;
}
}