2016-03-24 09:09:13 +01: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,
|
|
|
|
// You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/syncthing/syncthing/lib/config"
|
|
|
|
"github.com/syncthing/syncthing/lib/protocol"
|
|
|
|
)
|
|
|
|
|
2016-04-18 22:24:38 +02:00
|
|
|
type mockedConfig struct {
|
|
|
|
gui config.GUIConfiguration
|
|
|
|
}
|
2016-03-24 09:09:13 +01:00
|
|
|
|
|
|
|
func (c *mockedConfig) GUI() config.GUIConfiguration {
|
2016-04-18 22:24:38 +02:00
|
|
|
return c.gui
|
2016-03-24 09:09:13 +01:00
|
|
|
}
|
|
|
|
|
2016-05-04 21:38:12 +02:00
|
|
|
func (c *mockedConfig) ListenAddresses() []string {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-03-24 09:09:13 +01:00
|
|
|
func (c *mockedConfig) Raw() config.Configuration {
|
|
|
|
return config.Configuration{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *mockedConfig) Options() config.OptionsConfiguration {
|
|
|
|
return config.OptionsConfiguration{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *mockedConfig) Replace(cfg config.Configuration) config.CommitResponse {
|
|
|
|
return config.CommitResponse{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *mockedConfig) Subscribe(cm config.Committer) {}
|
|
|
|
|
|
|
|
func (c *mockedConfig) Folders() map[string]config.FolderConfiguration {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *mockedConfig) Devices() map[protocol.DeviceID]config.DeviceConfiguration {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *mockedConfig) Save() error {
|
|
|
|
return nil
|
|
|
|
}
|