blob: 69c4b97bf80ce0331f21608acde8459417deb033 [file] [log] [blame]
//
// Copyright (C) 2013 The Android Open Source Project
//
// 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.
//
#ifndef SHILL_MOCK_EAP_CREDENTIALS_H_
#define SHILL_MOCK_EAP_CREDENTIALS_H_
#include <string>
#include "shill/eap_credentials.h"
#include <gmock/gmock.h>
namespace shill {
class MockEapCredentials : public EapCredentials {
public:
MockEapCredentials();
~MockEapCredentials() override;
MOCK_CONST_METHOD0(IsConnectable, bool());
MOCK_CONST_METHOD0(IsConnectableUsingPassphrase, bool());
MOCK_METHOD2(Load, void(StoreInterface* store, const std::string& id));
MOCK_CONST_METHOD2(OutputConnectionMetrics,
void(Metrics* metrics, Technology::Identifier technology));
MOCK_CONST_METHOD2(PopulateSupplicantProperties,
void(CertificateFile* certificate_file,
KeyValueStore* params));
MOCK_CONST_METHOD1(PopulateWiMaxProperties, void(KeyValueStore* params));
MOCK_CONST_METHOD3(Save, void(
StoreInterface* store, const std::string& id, bool save_credentials));
MOCK_METHOD0(Reset, void());
MOCK_METHOD2(SetKeyManagement, bool(const std::string& key_management,
Error* error));
MOCK_CONST_METHOD0(identity, const std::string&());
MOCK_CONST_METHOD0(key_management, const std::string&());
MOCK_METHOD1(set_password, void(const std::string& password));
MOCK_CONST_METHOD0(pin, const std::string&());
private:
std::string kDefaultKeyManagement;
DISALLOW_COPY_AND_ASSIGN(MockEapCredentials);
};
} // namespace shill
#endif // SHILL_MOCK_EAP_CREDENTIALS_H_