/*
Copyright 2015 The Kubernetes Authors All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package schedulercache

import (
	"k8s.io/kubernetes/pkg/api"
	"k8s.io/kubernetes/pkg/labels"
	"k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache"
)

// FakeCache is used for testing
type FakeCache struct {
	AssumeFunc func(*api.Pod)
}

func (f *FakeCache) AssumePod(pod *api.Pod) error {
	f.AssumeFunc(pod)
	return nil
}

func (f *FakeCache) AddPod(pod *api.Pod) error { return nil }

func (f *FakeCache) UpdatePod(oldPod, newPod *api.Pod) error { return nil }

func (f *FakeCache) RemovePod(pod *api.Pod) error { return nil }

func (f *FakeCache) AddNode(node *api.Node) error { return nil }

func (f *FakeCache) UpdateNode(oldNode, newNode *api.Node) error { return nil }

func (f *FakeCache) RemoveNode(node *api.Node) error { return nil }

func (f *FakeCache) GetNodeNameToInfoMap() (map[string]*schedulercache.NodeInfo, error) {
	return nil, nil
}

func (f *FakeCache) List(s labels.Selector) ([]*api.Pod, error) { return nil, nil }
