Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sync/test/engine/fake_model_worker.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SYNC_TEST_ENGINE_FAKE_MODEL_WORKER_H_
6 #define SYNC_TEST_ENGINE_FAKE_MODEL_WORKER_H_
7
8 #include <vector>
9
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "base/threading/non_thread_safe.h"
13 #include "sync/internal_api/public/engine/model_safe_worker.h"
14 #include "sync/internal_api/public/util/syncer_error.h"
15
16 namespace syncer {
17
18 // Fake implementation of ModelSafeWorker that does work on the
19 // current thread regardless of the group.
20 class FakeModelWorker : public ModelSafeWorker, public base::NonThreadSafe {
21 public:
22 explicit FakeModelWorker(ModelSafeGroup group);
23
24 // ModelSafeWorker implementation.
25 void RegisterForLoopDestruction() override;
26 ModelSafeGroup GetModelSafeGroup() override;
27
28 protected:
29 SyncerError DoWorkAndWaitUntilDoneImpl(const WorkCallback& work) override;
30
31 private:
32 ~FakeModelWorker() override;
33
34 const ModelSafeGroup group_;
35
36 DISALLOW_COPY_AND_ASSIGN(FakeModelWorker);
37 };
38
39 } // namespace syncer
40
41 #endif // SYNC_TEST_ENGINE_FAKE_MODEL_WORKER_H_
42
OLDNEW
« no previous file with comments | « sync/test/directory_backing_store_corruption_testing.cc ('k') | sync/test/engine/fake_model_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698