blob: f8ecfc636c1635c848cd01a822fac39afdfafe3b [file] [log] [blame]
// 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.
#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 {
MockPolicyProvider() = default;
MockPolicyProvider(const MockPolicyProvider&) = delete;
MockPolicyProvider& operator=(const MockPolicyProvider&) = delete;
~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));
} // namespace policy
#pragma GCC visibility pop