#include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h"
#include <memory>
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_profile.h"
#include "components/prefs/pref_service.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/fake_service_worker_context.h"
#include "content/public/test/test_storage_partition.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace {
class TestSchemeClassifier : public AutocompleteSchemeClassifier { … };
metrics::OmniboxInputType TestSchemeClassifier::GetInputTypeForScheme(
const std::string& scheme) const { … }
}
class ChromeAutocompleteProviderClientTest : public testing::Test { … };
TEST_F(ChromeAutocompleteProviderClientTest, StartServiceWorker) { … }
TEST_F(ChromeAutocompleteProviderClientTest,
DontStartServiceWorkerInIncognito) { … }
TEST_F(ChromeAutocompleteProviderClientTest,
DontStartServiceWorkerIfSuggestDisabled) { … }
TEST_F(ChromeAutocompleteProviderClientTest, TestStrippedURLsAreEqual) { … }