#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_POLICY_STORE_H_
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_POLICY_STORE_H_
#include "components/policy/core/common/cloud/cloud_policy_store.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace policy {
class MockCloudPolicyStore : public CloudPolicyStore {
public:
MockCloudPolicyStore();
virtual ~MockCloudPolicyStore();
MOCK_METHOD1(Store, void(const enterprise_management::PolicyFetchResponse&));
MOCK_METHOD0(Load, void(void));
using CloudPolicyStore::NotifyStoreLoaded;
using CloudPolicyStore::NotifyStoreError;
using CloudPolicyStore::policy_map_;
using CloudPolicyStore::policy_;
using CloudPolicyStore::status_;
using CloudPolicyStore::invalidation_version_;
private:
DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyStore);
};
class MockCloudPolicyStoreObserver : public CloudPolicyStore::Observer {
public:
MockCloudPolicyStoreObserver();
virtual ~MockCloudPolicyStoreObserver();
MOCK_METHOD1(OnStoreLoaded, void(CloudPolicyStore* store));
MOCK_METHOD1(OnStoreError, void(CloudPolicyStore* store));
private:
DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyStoreObserver);
};
}
#endif