chromium/components/omnibox/browser/builtin_provider_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "components/omnibox/browser/builtin_provider.h"

#include <stddef.h>

#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/format_macros.h"
#include "base/strings/strcat.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "components/omnibox/browser/autocomplete_input.h"
#include "components/omnibox/browser/history_url_provider.h"
#include "components/omnibox/browser/mock_autocomplete_provider_client.h"
#include "components/omnibox/browser/test_scheme_classifier.h"
#include "components/search_engines/search_engines_test_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/metrics_proto/omnibox_event.pb.h"
#include "third_party/metrics_proto/omnibox_focus_type.pb.h"
#include "url/gurl.h"

namespace {

const char kEmbedderAboutScheme[] =;
const char16_t kEmbedderAboutScheme16[] =;
const char16_t kDefaultURL1[] =;
const char16_t kDefaultURL2[] =;
const char16_t kDefaultURL3[] =;
const char16_t kSubpageURL[] =;

// Arbitrary host constants, chosen to start with the letters "b" and "me".
const char16_t kHostBar[] =;
const char16_t kHostMedia[] =;
const char16_t kHostMemory[] =;
const char16_t kHostMemoryInternals[] =;
const char16_t kHostSubpage[] =;

const char16_t kSubpageOne[] =;
const char16_t kSubpageTwo[] =;
const char16_t kSubpageThree[] =;

class FakeAutocompleteProviderClient : public MockAutocompleteProviderClient {};

}  // namespace

class BuiltinProviderTest : public testing::Test {};

TEST_F(BuiltinProviderTest, TypingScheme) {}

TEST_F(BuiltinProviderTest, NonEmbedderURLs) {}

TEST_F(BuiltinProviderTest, EmbedderProvidedURLs) {}

TEST_F(BuiltinProviderTest, AboutBlank) {}

TEST_F(BuiltinProviderTest, DoesNotSupportMatchesOnFocus) {}

TEST_F(BuiltinProviderTest, Subpages) {}

TEST_F(BuiltinProviderTest, Inlining) {}