blob: f644880412613563be5eb166432d15d40a631093 [file] [log] [blame]
// 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 "components/omnibox/browser/mock_autocomplete_provider_client.h"
#include <memory>
#include "components/omnibox/browser/omnibox_triggered_feature_service.h"
MockAutocompleteProviderClient::MockAutocompleteProviderClient() {
shared_factory_ =
base::MakeRefCounted<network::WeakWrapperSharedURLLoaderFactory>(
&test_url_loader_factory_);
remote_suggestions_service_ =
std::make_unique<RemoteSuggestionsService>(GetURLLoaderFactory());
document_suggestions_service_ = std::make_unique<DocumentSuggestionsService>(
/*identity_manager=*/nullptr, GetURLLoaderFactory());
omnibox_triggered_feature_service_ =
std::make_unique<OmniboxTriggeredFeatureService>();
}
MockAutocompleteProviderClient::~MockAutocompleteProviderClient() = default;