chromium/extensions/browser/policy_check_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/browser/policy_check.h"

#include <string>
#include <vector>

#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/test/test_browser_context.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/extensions_test.h"
#include "extensions/browser/management_policy.h"
#include "extensions/browser/mock_extension_system.h"
#include "extensions/browser/preload_check.h"
#include "extensions/browser/preload_check_test_util.h"
#include "extensions/browser/test_extensions_browser_client.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace extensions {

namespace {

const char16_t kDummyPolicyError[] =;

class ManagementPolicyMock : public ManagementPolicy::Provider {};

class TestExtensionSystem : public MockExtensionSystem {};

}  // namespace

class PolicyCheckTest : public ExtensionsTest {};

// Tests an allowed extension.
TEST_F(PolicyCheckTest, PolicySuccess) {}

// Tests a disallowed extension.
TEST_F(PolicyCheckTest, PolicyFailure) {}

}  // namespace extensions