blob: fe4c16534a48c4853d2f5c8e190fef82eb5f7c98 [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHAPS_TOKEN_MANAGER_CLIENT_MOCK_H_
#define CHAPS_TOKEN_MANAGER_CLIENT_MOCK_H_
#include "chaps/token_manager_client.h"
#include <string>
#include <chromeos/secure_blob.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace chaps {
class TokenManagerClientMock : public TokenManagerClient {
public:
MOCK_METHOD2(OpenIsolate, bool (chromeos::SecureBlob*, bool*));
MOCK_METHOD1(CloseIsolate, void (const chromeos::SecureBlob&));
MOCK_METHOD5(LoadToken, bool (const chromeos::SecureBlob&,
const FilePath&,
const chromeos::SecureBlob&,
const std::string&,
int*));
MOCK_METHOD2(UnloadToken, void (const chromeos::SecureBlob&,
const FilePath&));
MOCK_METHOD3(ChangeTokenAuthData, void (const FilePath&,
const chromeos::SecureBlob&,
const chromeos::SecureBlob&));
MOCK_METHOD3(GetTokenPath, bool(const chromeos::SecureBlob&,
int,
FilePath*));
MOCK_METHOD2(GetTokenList, bool(const chromeos::SecureBlob&,
std::vector<std::string>*));
};
} // namespace chaps
#endif // CHAPS_TOKEN_MANAGER_CLIENT_MOCK_H_