12345678910111213141516171819202122232425 |
- // Copyright 2013 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_MOCK_FACTORY_H_
- #define COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_MOCK_FACTORY_H_
- #include "components/sync_preferences/pref_service_syncable_factory.h"
- namespace sync_preferences {
- // A helper that allows convenient building of custom PrefServices in tests.
- class PrefServiceMockFactory : public PrefServiceSyncableFactory {
- public:
- PrefServiceMockFactory();
- PrefServiceMockFactory(const PrefServiceMockFactory&) = delete;
- PrefServiceMockFactory& operator=(const PrefServiceMockFactory&) = delete;
- ~PrefServiceMockFactory() override;
- };
- } // namespace sync_preferences
- #endif // COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_MOCK_FACTORY_H_
|