#include "components/omnibox/browser/remote_suggestions_service.h"
#include <memory>
#include <string>
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "components/search_engines/search_engines_test_environment.h"
#include "components/search_engines/template_url_service.h"
#include "components/variations/scoped_variations_ids_provider.h"
#include "net/base/load_flags.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/metrics_proto/omnibox_event.pb.h"
namespace {
class TestObserver : public RemoteSuggestionsService::Observer { … };
}
class RemoteSuggestionsServiceTest : public testing::Test { … };
TEST_F(RemoteSuggestionsServiceTest, EnsureAttachCookies_ZeroPrefixSuggest) { … }
TEST_F(RemoteSuggestionsServiceTest, EnsureAttachCookies_Suggest) { … }
TEST_F(RemoteSuggestionsServiceTest, EnsureAttachCookies_DeleteSuggest) { … }
TEST_F(RemoteSuggestionsServiceTest, EnsureBypassCache) { … }
TEST_F(RemoteSuggestionsServiceTest, EnsureObservers) { … }
TEST_F(RemoteSuggestionsServiceTest, EnsureCrOSOverridenOrAppendedQueryParams) { … }
TEST_F(RemoteSuggestionsServiceTest, EnsureLensOverridenOrAppendedQueryParams) { … }