blob: 4333cc8a9bc99c5f313121b2f3c9d60ed3b5f091 [file] [log] [blame]
// Copyright 2015 The Chromium 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 "components/omnibox/browser/mock_autocomplete_provider_client.h"
#include <memory>
MockAutocompleteProviderClient::MockAutocompleteProviderClient() {
shared_factory_ =
base::MakeRefCounted<network::WeakWrapperSharedURLLoaderFactory>(
&test_url_loader_factory_);
contextual_suggestions_service_ =
std::make_unique<ContextualSuggestionsService>(
/*identity_manager=*/nullptr, GetURLLoaderFactory());
document_suggestions_service_ = std::make_unique<DocumentSuggestionsService>(
/*identity_manager=*/nullptr, GetURLLoaderFactory());
pedal_provider_ = std::make_unique<OmniboxPedalProvider>(*this);
browser_update_available_ = false;
}
MockAutocompleteProviderClient::~MockAutocompleteProviderClient() {
}