You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
993 B

// Copyright 2014 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 LIBBRILLO_POLICY_MOCK_LIBPOLICY_H_
#define LIBBRILLO_POLICY_MOCK_LIBPOLICY_H_
#include <gmock/gmock.h>
#include <set>
#include "policy/libpolicy.h"
#pragma GCC visibility push(default)
namespace policy {
// This is a generic mock of the PolicyProvider class.
class MockPolicyProvider : public PolicyProvider {
public:
MockPolicyProvider() = default;
~MockPolicyProvider() override = default;
MOCK_METHOD(bool, Reload, (), (override));
MOCK_METHOD(bool, device_policy_is_loaded, (), (const, override));
MOCK_METHOD(const DevicePolicy&, GetDevicePolicy, (), (const, override));
MOCK_METHOD(bool, IsConsumerDevice, (), (const, override));
private:
DISALLOW_COPY_AND_ASSIGN(MockPolicyProvider);
};
} // namespace policy
#pragma GCC visibility pop
#endif // LIBBRILLO_POLICY_MOCK_LIBPOLICY_H_