pref_service_mock_factory.h 869 B

12345678910111213141516171819202122232425
  1. // Copyright 2013 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. #ifndef COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_MOCK_FACTORY_H_
  5. #define COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_MOCK_FACTORY_H_
  6. #include "components/sync_preferences/pref_service_syncable_factory.h"
  7. namespace sync_preferences {
  8. // A helper that allows convenient building of custom PrefServices in tests.
  9. class PrefServiceMockFactory : public PrefServiceSyncableFactory {
  10. public:
  11. PrefServiceMockFactory();
  12. PrefServiceMockFactory(const PrefServiceMockFactory&) = delete;
  13. PrefServiceMockFactory& operator=(const PrefServiceMockFactory&) = delete;
  14. ~PrefServiceMockFactory() override;
  15. };
  16. } // namespace sync_preferences
  17. #endif // COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_MOCK_FACTORY_H_