summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prefs/pref_service_mock_factory.h
blob: 44617e896ee76545f4aa1e04477ab8c9bac5739d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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 CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_FACTORY_H_
#define CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_FACTORY_H_

#include "chrome/browser/prefs/pref_service_syncable_factory.h"

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

 private:
  DISALLOW_COPY_AND_ASSIGN(PrefServiceMockFactory);
};

#endif  // CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_FACTORY_H_