chromium/chrome/browser/extensions/extension_migrator_unittest.cc

// Copyright 2015 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/extension_migrator.h"

#include <memory>

#include "base/files/file_util.h"
#include "base/run_loop.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_service_test_base.h"
#include "chrome/browser/extensions/external_provider_impl.h"
#include "chrome/browser/extensions/pending_extension_manager.h"
#include "chrome/test/base/testing_profile.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_builder.h"

namespace extensions {

namespace {

const char kOldId[] =;
const char kNewId[] =;

scoped_refptr<const Extension> CreateExtension(
    const std::string& id,
    mojom::ManifestLocation location) {}

}  // namespace

class ExtensionMigratorTest : public ExtensionServiceTestBase {};

TEST_F(ExtensionMigratorTest, NoExistingOld) {}

TEST_F(ExtensionMigratorTest, HasExistingOld) {}

TEST_F(ExtensionMigratorTest, KeepExistingNew) {}

TEST_F(ExtensionMigratorTest, HasBothOldAndNew) {}

// Tests that a previously-force-installed extension can be uninstalled.
// crbug.com/1416682
TEST_F(ExtensionMigratorTest, HasPreviouslyForceInstalledNew) {}

}  // namespace extensions