| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/sync/test/engine/fake_model_worker.h" | 5 #include "components/sync/test/engine/fake_model_worker.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 namespace syncer { | 9 namespace syncer { |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 DCHECK(thread_checker_.CalledOnValidThread()); | 22 DCHECK(thread_checker_.CalledOnValidThread()); |
| 23 // Simply do the work on the current thread. | 23 // Simply do the work on the current thread. |
| 24 std::move(work).Run(); | 24 std::move(work).Run(); |
| 25 } | 25 } |
| 26 | 26 |
| 27 ModelSafeGroup FakeModelWorker::GetModelSafeGroup() { | 27 ModelSafeGroup FakeModelWorker::GetModelSafeGroup() { |
| 28 DCHECK(thread_checker_.CalledOnValidThread()); | 28 DCHECK(thread_checker_.CalledOnValidThread()); |
| 29 return group_; | 29 return group_; |
| 30 } | 30 } |
| 31 | 31 |
| 32 bool FakeModelWorker::IsOnModelThread() { | 32 bool FakeModelWorker::IsOnModelSequence() { |
| 33 return thread_checker_.CalledOnValidThread(); | 33 return thread_checker_.CalledOnValidThread(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace syncer | 36 } // namespace syncer |
| OLD | NEW |