2016-03-24 08:09:13 +00:00
|
|
|
// Copyright (C) 2016 The Syncthing Authors.
|
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
2017-02-09 07:52:18 +01:00
|
|
|
// You can obtain one at https://mozilla.org/MPL/2.0/.
|
2016-03-24 08:09:13 +00:00
|
|
|
|
2019-03-26 20:53:58 +01:00
|
|
|
package api
|
2016-03-24 08:09:13 +00:00
|
|
|
|
|
|
|
import (
|
2021-03-03 08:53:50 +01:00
|
|
|
"github.com/syncthing/syncthing/lib/config/mocks"
|
2016-03-24 08:09:13 +00:00
|
|
|
)
|
|
|
|
|
2021-03-03 08:53:50 +01:00
|
|
|
func newMockedConfig() *mocks.Wrapper {
|
|
|
|
m := &mocks.Wrapper{}
|
|
|
|
m.ModifyReturns(noopWaiter{}, nil)
|
|
|
|
m.RemoveFolderReturns(noopWaiter{}, nil)
|
|
|
|
m.RemoveDeviceReturns(noopWaiter{}, nil)
|
|
|
|
return m
|
2020-11-20 14:21:54 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 10:26:25 +02:00
|
|
|
type noopWaiter struct{}
|
|
|
|
|
|
|
|
func (noopWaiter) Wait() {}
|