summaryrefslogtreecommitdiffstats
path: root/components/syncable_prefs/pref_service_mock_factory.h
blob: 9ff937f4e250776602f5f0d1072acbfbf4795be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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_SYNCABLE_PREFS_PREF_SERVICE_MOCK_FACTORY_H_
#define COMPONENTS_SYNCABLE_PREFS_PREF_SERVICE_MOCK_FACTORY_H_

#include "base/macros.h"
#include "components/syncable_prefs/pref_service_syncable_factory.h"

namespace syncable_prefs {

// A helper that allows convenient building of custom PrefServices in tests.
class PrefServiceMockFactory : public PrefServiceSyncableFactory {
 public:
  PrefServiceMockFactory();
  ~PrefServiceMockFactory() override;

 private:
  DISALLOW_COPY_AND_ASSIGN(PrefServiceMockFactory);
};

}  // namespace syncable_prefs

#endif  // COMPONENTS_SYNCABLE_PREFS_PREF_SERVICE_MOCK_FACTORY_H_