Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |