chromium/chrome/browser/extensions/forced_extensions/force_installed_test_base.cc

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

#include "chrome/browser/extensions/forced_extensions/force_installed_test_base.h"
#include "base/memory/raw_ptr.h"

#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/extensions/external_provider_impl.h"
#include "chrome/browser/extensions/forced_extensions/install_stage_tracker.h"
#include "chrome/test/base/testing_browser_process.h"
#include "components/policy/core/common/policy_service_impl.h"
#include "components/prefs/pref_service.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/pref_names.h"
#include "extensions/common/extension_builder.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace extensions {

// The extension ids used here should be valid extension ids.
const char ForceInstalledTestBase::kExtensionId1[] =;
const char ForceInstalledTestBase::kExtensionId2[] =;
const char ForceInstalledTestBase::kExtensionName1[] =;
const char ForceInstalledTestBase::kExtensionName2[] =;
const char ForceInstalledTestBase::kExtensionUpdateUrl[] =;  // URL of Chrome Web
                                                        // Store backend.
const char ForceInstalledTestBase::kOffStoreUpdateUrl[] =;

ForceInstalledTestBase::ForceInstalledTestBase() = default;
ForceInstalledTestBase::~ForceInstalledTestBase() = default;

void ForceInstalledTestBase::SetUp() {}

void ForceInstalledTestBase::SetupForceList(ExtensionOrigin origin) {}

void ForceInstalledTestBase::SetupEmptyForceList() {}

scoped_refptr<const Extension> ForceInstalledTestBase::CreateNewExtension(
    const std::string& extension_name,
    const std::string& extension_id,
    const ForceInstalledTracker::ExtensionStatus& status) {}

}  // namespace extensions