blob: 121f942b1affebe9fc618555806bf5177cb4aafd [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.
namespace base {
namespace test {
class TaskEnvironment;
} // namespace base
class PersistentPrefStore;
// Calls CommitPendingWrite() on |store| with a callback. Verifies that the
// callback runs on the appropriate sequence. |task_environment| is the
// test's TaskEnvironment. This function is meant to be reused in the
// tests of various PersistentPrefStore implementations.
void TestCommitPendingWriteWithCallback(
PersistentPrefStore* store,
base::test::TaskEnvironment* task_environment);