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

Side by Side Diff: chrome/browser/sync/engine/mock_model_safe_workers.h

Issue 6812004: sync: Make nudge + config jobs reliable in SyncerThread2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CR feedback and all the unittests. Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_SYNC_ENGINE_MOCK_MODEL_SAFE_WORKERS_H_ 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_MOCK_MODEL_SAFE_WORKERS_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_MOCK_MODEL_SAFE_WORKERS_H_ 6 #define CHROME_BROWSER_SYNC_ENGINE_MOCK_MODEL_SAFE_WORKERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 class MockDBModelWorker : public ModelSafeWorker { 23 class MockDBModelWorker : public ModelSafeWorker {
24 public: 24 public:
25 virtual ModelSafeGroup GetModelSafeGroup(); 25 virtual ModelSafeGroup GetModelSafeGroup();
26 virtual bool CurrentThreadIsWorkThread(); 26 virtual bool CurrentThreadIsWorkThread();
27 }; 27 };
28 28
29 class MockModelSafeWorkerRegistrar : public ModelSafeWorkerRegistrar { 29 class MockModelSafeWorkerRegistrar : public ModelSafeWorkerRegistrar {
30 public: 30 public:
31 virtual ~MockModelSafeWorkerRegistrar(); 31 virtual ~MockModelSafeWorkerRegistrar();
32 static MockModelSafeWorkerRegistrar* PassiveBookmarks(); 32 static MockModelSafeWorkerRegistrar* PassiveBookmarks();
33 static MockModelSafeWorkerRegistrar* SetPassiveTypes(
tim (not reviewing) 2011/04/09 23:52:58 s/SetPassiveTypes/WithPassiveTypes or FromPassiveT
lipalani1 2011/04/12 02:33:00 Done.
34 const syncable::ModelTypeBitSet& set);
33 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out); 35 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out);
34 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out); 36 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out);
35 37
36 private: 38 private:
37 explicit MockModelSafeWorkerRegistrar(const ModelSafeRoutingInfo& routes); 39 explicit MockModelSafeWorkerRegistrar(const ModelSafeRoutingInfo& routes);
38 40
39 scoped_refptr<ModelSafeWorker> passive_worker_; 41 scoped_refptr<ModelSafeWorker> passive_worker_;
40 ModelSafeRoutingInfo routes_; 42 ModelSafeRoutingInfo routes_;
41 }; 43 };
42 44
43 } // namespace browser_sync 45 } // namespace browser_sync
44 46
45 #endif // CHROME_BROWSER_SYNC_ENGINE_MOCK_MODEL_SAFE_WORKERS_H_ 47 #endif // CHROME_BROWSER_SYNC_ENGINE_MOCK_MODEL_SAFE_WORKERS_H_
46 48
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/engine/mock_model_safe_workers.cc » ('j') | chrome/browser/sync/engine/syncer_thread2.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698