blob: 811b3956e09fe81e92e8c90bfe14cf31699270e5 [file] [log] [blame]
// Copyright 2017 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.
#include <memory>
class PrefService;
namespace payments {
// Common utilities shared amongst Payments tests.
namespace test {
// Return a PrefService that can be used for Payments-related testing in
// contexts where the PrefService would otherwise have to be constructed
// manually (e.g., in unit tests within Autofill core code). The returned
// PrefService has had Autofill preferences registered on its associated
// registry.
std::unique_ptr<PrefService> PrefServiceForTesting();
} // namespace test
} // namespace payments